/* ==========================================================================
   LEADERBOARD PAGE STYLES
   ========================================================================== */

body {
    background-color: #030712;
    color: #e2e8f0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* HERO SECTION */
.leaderboard-hero {
    position: relative;
    padding: 100px 20px 60px;
    text-align: center;
    background: radial-gradient(circle at top, #1e293b 0%, #030712 80%);
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

.leaderboard-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #ffffff;
    animation: fadeInDown 1s ease-out;
}

.leaderboard-title span.gold-text {
    color: #fbbf24;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
}

.leaderboard-subtitle {
    font-size: 1.2rem;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out;
}

/* PODIUM SECTION (TOP 3) */
.podium-section {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    padding: 60px 10%;
    margin-top: -30px;
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.podium-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #94a3b8;
    border: 3px solid #334155;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.podium-rank-2 .podium-avatar { border-color: #cbd5e1; color: #cbd5e1; width: 90px; height: 90px; font-size: 2.5rem; }
.podium-rank-1 .podium-avatar { border-color: #fbbf24; color: #fbbf24; width: 110px; height: 110px; font-size: 3rem; box-shadow: 0 0 20px rgba(251, 191, 36, 0.4); }
.podium-rank-3 .podium-avatar { border-color: #b45309; color: #b45309; width: 80px; height: 80px; font-size: 2rem; }

.podium-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: #f8fafc;
    margin-bottom: 5px;
}

.podium-score {
    font-size: 0.9rem;
    color: #38bdf8;
    font-weight: bold;
    margin-bottom: 15px;
}

.podium-base {
    width: 100px;
    background: linear-gradient(to bottom, #1e293b, #0f172a);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    border-bottom: none;
    display: flex;
    justify-content: center;
    padding-top: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #475569;
}

.podium-rank-2 .podium-base { height: 120px; border-top-color: #cbd5e1; color: #cbd5e1; }
.podium-rank-1 .podium-base { height: 160px; border-top-color: #fbbf24; color: #fbbf24; width: 120px; }
.podium-rank-3 .podium-base { height: 90px; border-top-color: #b45309; color: #b45309; }

/* LEADERBOARD LIST */
.leaderboard-list-section {
    padding: 40px 10% 80px;
}

.leaderboard-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
}

.table-header {
    display: grid;
    grid-template-columns: 80px 2fr 1fr;
    padding: 20px 30px;
    background: rgba(30, 41, 59, 0.8);
    font-weight: bold;
    color: #94a3b8;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.table-row {
    display: grid;
    grid-template-columns: 80px 2fr 1fr;
    padding: 20px 30px;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s ease;
}

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

.table-row:hover {
    background: rgba(56, 189, 248, 0.05);
}

.rank-cell {
    font-size: 1.2rem;
    font-weight: bold;
    color: #64748b;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
}

.user-name {
    color: #f8fafc;
    font-weight: bold;
}

.score-cell {
    font-weight: bold;
    color: #38bdf8;
}

/* ANIMATIONS */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .podium-section {
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
    }
    .podium-rank-1 { order: -1; width: 100%; margin-bottom: 20px; }
    .podium-base { width: 100%; }
    .table-header, .table-row {
        grid-template-columns: 60px 1fr 80px;
        padding: 15px;
    }
}