/* ========================================
   Leaderboard Styles
   ======================================== */

/* ========================================
   Leaderboard Item
   ======================================== */

/* Animasi masuk HANYA untuk baris yang benar-benar baru muncul di top 20
   (ditambahkan lewat JS via class ini, lalu dilepas setelah animasi selesai)
   - bukan permanen di setiap baris, supaya tidak retrigger tiap update. */

/* Glow lembut yang "bernapas" pelan - BUKAN blink/berkedip tajam.
   Hanya intensitas box-shadow yang naik-turun halus, tidak ada opacity
   flashing sama sekali supaya nyaman dipandang lama. */
@keyframes gentleGlowGold {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.15); }
    50%      { box-shadow: 0 0 22px rgba(255, 215, 0, 0.35); }
}
@keyframes gentleGlowSilver {
    0%, 100% { box-shadow: 0 0 10px rgba(192, 192, 192, 0.15); }
    50%      { box-shadow: 0 0 22px rgba(192, 192, 192, 0.35); }
}
@keyframes gentleGlowBronze {
    0%, 100% { box-shadow: 0 0 10px rgba(205, 127, 50, 0.15); }
    50%      { box-shadow: 0 0 22px rgba(205, 127, 50, 0.35); }
}

/* Efek saat poin seorang pemain bertambah (sebelum bergeser naik posisi) */

@keyframes scoreBoostZoom {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.05); box-shadow: 0 0 24px rgba(63, 224, 176, 0.5); }
    100% { transform: scale(1); }
}

/* Rank Badge */

/* User Info */

/* Points Badge */

/* ========================================
   Leaderboard Table (Final)
   ======================================== */

.leaderboard-table {
    margin-top: 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(131, 56, 236, 0.05);
}

.leaderboard-head {
    display: grid;
    grid-template-columns: 50px 60px 1fr 100px 80px;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(131, 56, 236, 0.1);
    border-bottom: 2px solid var(--border);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.leaderboard-body {
    display: flex;
    flex-direction: column;
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 50px 60px 1fr 100px 80px;
    gap: 16px;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    animation: slideInLeft 0.4s ease;
}

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

.leaderboard-row:hover {
    background: rgba(0, 217, 255, 0.05);
}

.leaderboard-row.top-1 {
    background: rgba(255, 215, 0, 0.08);
}

.leaderboard-row.top-2 {
    background: rgba(192, 192, 192, 0.08);
}

.leaderboard-row.top-3 {
    background: rgba(205, 127, 50, 0.08);
}

.col {
    display: flex;
    align-items: center;
    gap: 8px;
}

.col.rank {
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.col.name {
    flex-direction: column;
    gap: 4px;
}

.col-username {
    font-weight: 600;
    color: var(--text-primary);
}

.col-method {
    font-size: 11px;
    color: var(--text-muted);
}

.col.points small {
    margin-left: 2px;
    font-size: 11px;
    font-weight: 600;
    opacity: 0.8;
}

.col.points {
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    background: linear-gradient(135deg, var(--success) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.col.badge {
    justify-content: center;
    font-size: 16px;
}

/* Tabel akhir kelompok memakai 4 kolom: peringkat | nama | poin | status */
.leaderboard-table .leaderboard-head,
.leaderboard-table .leaderboard-row {
    grid-template-columns: 60px 1fr 100px 80px;
}

/* ========================================
   Responsive Leaderboard
   ======================================== */

@media (max-width: 768px) {
    .leaderboard-table {
        margin-top: 16px;
    }
    
    .leaderboard-head,
    .leaderboard-row {
        grid-template-columns: 40px 1fr 80px 60px;
        gap: 12px;
        padding: 12px 16px;
        font-size: 11px;
    }
    
    
    
    
}

@media (max-width: 480px) {
    .leaderboard-head,
    .leaderboard-row {
        grid-template-columns: 35px 1fr 60px;
        gap: 8px;
        padding: 10px 12px;
    }
    
    .col.points {
        font-size: 14px;
    }
    
    .col.badge {
        font-size: 14px;
    }
}
