﻿/* ===== RANKING PAGE ===== */
.ranking-hero {
    text-align: center;
    padding: 60px 20px 40px;
    background: linear-gradient(135deg, rgba(99,102,241,0.05) 0%, rgba(139,92,246,0.04) 50%, rgba(236,72,153,0.03) 100%);
    border-radius: var(--radius-xl);
    margin-bottom: 30px;
}

.ranking-hero h1 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.ranking-hero p {
    font-size: 16px;
    color: var(--text-secondary);
}

.ranking-container {
    max-width: 800px;
    margin: 0 auto;
}

.ranking-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.ranking-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--theme-duration) var(--theme-easing);
}

.ranking-tab:hover {
    background: rgba(99,102,241,0.06);
    border-color: rgba(99,102,241,0.3);
    color: var(--text-primary);
}

.ranking-tab.active {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.ranking-tab.active svg {
    color: #fff;
    stroke: #fff;
}

.ranking-content {
    animation: fadeIn 0.4s ease;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.ranking-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(99,102,241,0.2);
}

.ranking-item:nth-child(1) { animation-delay: 0.05s; }
.ranking-item:nth-child(2) { animation-delay: 0.1s; }
.ranking-item:nth-child(3) { animation-delay: 0.15s; }
.ranking-item:nth-child(4) { animation-delay: 0.2s; }
.ranking-item:nth-child(5) { animation-delay: 0.25s; }
.ranking-item:nth-child(6) { animation-delay: 0.3s; }
.ranking-item:nth-child(7) { animation-delay: 0.35s; }
.ranking-item:nth-child(8) { animation-delay: 0.4s; }
.ranking-item:nth-child(9) { animation-delay: 0.45s; }
.ranking-item:nth-child(10) { animation-delay: 0.5s; }

.ranking-rank {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    flex-shrink: 0;
}

.ranking-rank.gold {
    background: linear-gradient(135deg, #FCD34D, #F59E0B);
    color: #fff;
}

.ranking-rank.silver {
    background: linear-gradient(135deg, #CBD5E1, #94A3B8);
    color: #fff;
}

.ranking-rank.bronze {
    background: linear-gradient(135deg, #FDBA74, #F97316);
    color: #fff;
}

.ranking-rank.other {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.ranking-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.ranking-info {
    flex: 1;
    min-width: 0;
}

.ranking-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.ranking-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0;
}

.vpn-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #F97316;
    background: rgba(249, 115, 22, 0.12);
    border-radius: 6px;
    flex-shrink: 0;
    letter-spacing: 0.3px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s, transform 0.15s;
}

.vpn-badge:hover {
    background: rgba(249, 115, 22, 0.22);
    transform: scale(1.04);
}

.vpn-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #F97316;
    margin-right: 5px;
    animation: vpn-pulse 2s ease-in-out infinite;
}

@keyframes vpn-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.ranking-desc {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.ranking-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ranking-meta-item svg {
    width: 14px;
    height: 14px;
}

.ranking-visit { color: #6366F1; }
.ranking-fav { color: #EC4899; }
.ranking-date { color: #10B981; }

.ranking-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(99,102,241,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.ranking-arrow:hover {
    background: rgba(99,102,241,0.15);
    transform: translateX(4px);
}

.ranking-arrow svg {
    width: 18px;
    height: 18px;
    color: #6366F1;
    stroke: #6366F1;
}

@media (max-width: 768px) {
    .ranking-hero {
        padding: 40px 20px 25px;
    }
    
    .ranking-hero h1 {
        font-size: 28px;
    }
    
    .ranking-hero p {
        font-size: 14px;
    }
    
    .ranking-tabs {
        gap: 8px;
    }
    
    .ranking-tab {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .ranking-item {
        padding: 16px;
        gap: 12px;
    }
    
    .ranking-rank {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .ranking-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
    
    .ranking-meta {
        gap: 10px;
        font-size: 12px;
    }
}

[data-theme="dark"] .ranking-hero {
    background: rgba(99, 102, 241, 0.08);
}

[data-theme="dark"] .ranking-item {
    background: rgba(30, 41, 59, 0.6);
}

[data-theme="dark"] .ranking-item:hover {
    background: rgba(51, 65, 85, 0.8);
}

[data-theme="dark"] .ranking-rank.other {
    background: #334155;
}

[data-theme="dark"] .ranking-arrow {
    background: rgba(99, 102, 241, 0.15);
}

[data-theme="dark"] .ranking-arrow:hover {
    background: rgba(99, 102, 241, 0.25);
}

