/* Leaderboard Specific Styles */

.content {
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.page-header {
    margin-bottom: 3rem;
}

.header-content {
    text-align: center;
    margin-bottom: 2rem;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

/* Filters */
.filters {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.select-box {
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.select-box:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.select-box:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

/* Leaderboard Container */
.leaderboard-container {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.leaderboard-header {
    display: grid;
    grid-template-columns: 80px 1fr repeat(3, 150px);
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-cell {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-cell {
    text-align: center;
}

/* Leaderboard List */
.leaderboard-list {
    min-height: 400px;
}

.player-row {
    display: grid;
    grid-template-columns: 80px 1fr repeat(3, 150px);
    gap: 1rem;
    padding: 1.5rem 2rem;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
    cursor: pointer;
}

.player-row:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.player-row:last-child {
    border-bottom: none;
}

/* Rank Cell */
.rank {
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    color: var(--text-secondary);
}

.rank.top-1 {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rank.top-2 {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rank.top-3 {
    background: linear-gradient(135deg, #cd7f32, #ff9f5e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Player Info */
.player-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.player-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.player-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.player-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.player-country {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.flag-icon {
    width: 20px;
    height: 15px;
    border-radius: 2px;
}

/* Stats */
.stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-primary);
}

.stat-value.pp {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-value.acc {
    color: var(--accent-tertiary);
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    gap: 1.5rem;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-state p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    gap: 1rem;
}

.empty-state-icon {
    font-size: 4rem;
    opacity: 0.3;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.page-info {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.page-info span {
    color: var(--accent-primary);
}

/* Button Sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.925rem;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Responsive */
@media (max-width: 1024px) {

    .leaderboard-header,
    .player-row {
        grid-template-columns: 60px 1fr 120px 100px;
    }

    .stat-cell:nth-child(5),
    .stat-value:nth-child(5) {
        display: none;
    }
}

@media (max-width: 768px) {
    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .select-box {
        width: 100%;
    }

    .leaderboard-header {
        display: none;
    }

    .player-row {
        grid-template-columns: 50px 1fr;
        padding: 1.25rem 1rem;
    }

    .player-row>.stat-value {
        display: none;
    }

    .pagination {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        display: none;
    }

    .navbar {
        padding: 1.5rem 1rem;
        grid-template-columns: auto 1fr auto;
    }
}

/* Animation */
.player-row {
    animation: slideIn 0.4s ease-out backwards;
}

.player-row:nth-child(1) {
    animation-delay: 0.05s;
}

.player-row:nth-child(2) {
    animation-delay: 0.1s;
}

.player-row:nth-child(3) {
    animation-delay: 0.15s;
}

.player-row:nth-child(4) {
    animation-delay: 0.2s;
}

.player-row:nth-child(5) {
    animation-delay: 0.25s;
}

.player-row:nth-child(6) {
    animation-delay: 0.3s;
}

.player-row:nth-child(7) {
    animation-delay: 0.35s;
}

.player-row:nth-child(8) {
    animation-delay: 0.4s;
}

.player-row:nth-child(9) {
    animation-delay: 0.45s;
}

.player-row:nth-child(10) {
    animation-delay: 0.5s;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}