/* Leaderboards Page Styles */

.leaderboards-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.leaderboards-header {
    text-align: center;
    margin-bottom: 40px;
}

.leaderboards-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: 10px;
    text-shadow: 0 0 20px var(--primary-glow);
}

.leaderboards-header h1 i {
    color: var(--premium-gold);
    margin-right: 15px;
}

.leaderboards-subtitle {
    font-size: 1.1rem;
    color: var(--muted-text);
    margin: 0;
}

/* Category Tabs */
.leaderboard-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.leaderboard-tab {
    background: var(--dark-card);
    border: 2px solid var(--dark-border);
    color: var(--light-text);
    padding: 15px 25px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
}

.leaderboard-tab:hover {
    background: var(--dark-card-hover);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.leaderboard-tab.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.leaderboard-tab i {
    font-size: 1.2rem;
}

/* Loading and Error States */
.loading-state,
.error-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted-text);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--dark-border);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.error-state i {
    font-size: 3rem;
    color: var(--error-color);
    margin-bottom: 15px;
}

/* Podium Container */
.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 50px;
    padding: 0 20px;
}

.podium-place {
    background: var(--dark-card);
    border: 2px solid var(--dark-border);
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    min-width: 200px;
    transition: all 0.3s ease;
    position: relative;
}

.podium-place:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.podium-place.first {
    border-color: var(--premium-gold);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
    order: 2;
}

.podium-place.second {
    border-color: #c0c0c0;
    box-shadow: 0 4px 20px rgba(192, 192, 192, 0.2);
    order: 1;
}

.podium-place.third {
    border-color: #cd7f32;
    box-shadow: 0 4px 20px rgba(205, 127, 50, 0.2);
    order: 3;
}

.podium-medal {
    font-size: 3rem;
    margin-bottom: 15px;
}

.podium-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--dark-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 2rem;
    color: var(--muted-text);
}

.podium-place.first .podium-avatar {
    background: linear-gradient(135deg, var(--premium-gold) 0%, var(--premium-gold-dark) 100%);
    color: var(--dark-bg);
}

.podium-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: 8px;
    word-break: break-word;
}

.podium-value {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.podium-rank {
    font-size: 0.9rem;
    color: var(--muted-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Leaderboard Table */
.leaderboard-table-container {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table thead {
    background: var(--dark-bg-alt);
}

.leaderboard-table th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 700;
    color: var(--light-text);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--dark-border);
}

.leaderboard-table td {
    padding: 15px 20px;
    color: var(--light-text);
    border-bottom: 1px solid var(--dark-border);
}

.leaderboard-table tbody tr {
    transition: all 0.2s ease;
}

.leaderboard-table tbody tr:hover {
    background: var(--dark-card-hover);
}

.leaderboard-table tbody tr:last-child td {
    border-bottom: none;
}

/* Highlight top 3 in table */
.leaderboard-table tbody tr.rank-1 {
    background: rgba(255, 215, 0, 0.05);
}

.leaderboard-table tbody tr.rank-2 {
    background: rgba(192, 192, 192, 0.05);
}

.leaderboard-table tbody tr.rank-3 {
    background: rgba(205, 127, 50, 0.05);
}

.rank-col {
    width: 80px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.player-col {
    font-weight: 600;
}

.value-col {
    width: 200px;
    text-align: right;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.no-data {
    text-align: center;
    color: var(--muted-text);
    padding: 40px 20px !important;
    font-style: italic;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    padding: 20px;
}

.btn-load-more {
    background: var(--dark-card);
    border: 2px solid var(--dark-border);
    color: var(--light-text);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    background: var(--dark-card-hover);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .leaderboards-header h1 {
        font-size: 2rem;
    }

    .leaderboard-tabs {
        gap: 10px;
    }

    .leaderboard-tab {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .leaderboard-tab span {
        display: none;
    }

    .leaderboard-tab i {
        font-size: 1.5rem;
    }

    .podium-container {
        flex-direction: column;
        align-items: center;
    }

    .podium-place {
        min-width: 100%;
        max-width: 350px;
    }

    .podium-place.first,
    .podium-place.second,
    .podium-place.third {
        order: initial;
    }

    .leaderboard-table th,
    .leaderboard-table td {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .rank-col {
        width: 60px;
    }

    .value-col {
        width: 120px;
        font-size: 1rem;
    }
}

