/* Leaderboard Styles */
.leaderboard-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.leaderboard-subtitle {
    color: #CCCCCC;
    margin-bottom: 40px;
    font-size: 14px;
}

/* Your Best Stats Section */
.your-best-stats-section {
    background: rgba(255, 215, 0, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
}

.your-best-stats-section h2 {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Stats Cards */
.leaderboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255, 70, 85, 0.1) 0%, rgba(255, 70, 85, 0.05) 100%);
    border: 2px solid rgba(255, 70, 85, 0.3);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 70, 85, 0.6);
    box-shadow: 0 10px 30px rgba(255, 70, 85, 0.3);
}

.stat-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 36px;
    font-weight: bold;
    color: #FF4655;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #CCCCCC;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Leaderboard Table */
.leaderboard-table {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
}

.table-header {
    display: grid;
    grid-template-columns: 80px 1fr 150px 100px 100px;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #FF4655 0%, #FF7A85 100%);
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.table-body {
    max-height: 400px;
    overflow-y: auto;
}

.leaderboard-entry {
    display: grid;
    grid-template-columns: 80px 1fr 150px 100px 100px;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.leaderboard-entry:hover {
    background: rgba(255, 70, 85, 0.1);
}

.leaderboard-entry.current-player {
    background: rgba(255, 215, 0, 0.1);
    border-left: 4px solid #FFD700;
}

.rank-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

.rank-badge.top-1 {
    color: #FFD700;
}

.rank-badge.top-2 {
    color: #C0C0C0;
}

.rank-badge.top-3 {
    color: #CD7F32;
}

.player-name {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
}

.player-score,
.player-hs,
.your-best-stats-section {
    background: rgba(255, 215, 0, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
}

.your-best-stats-section h2 {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.player-score {
    color: #FF4655;
    font-weight: bold;
}

.player-hs {
    color: #4CAF50;
}

.player-acc {
    color: #00BCD4;
}

/* Leaderboard Note */
.leaderboard-note {
    background: rgba(138, 43, 226, 0.1);
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin-bottom: 30px;
}

.leaderboard-note p {
    margin: 5px 0;
    color: #FFFFFF;
    font-size: 14px;
}

.leaderboard-note strong {
    color: #FFD700;
    font-weight: 700;
}

/* Leaderboard Button - Letras Brancas */
.leaderboard-btn {
    display: inline-block;
    position: relative;
    overflow: visible;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
    background-size: 200% 200%;
    color: #FFF !important;
    font-weight: 900;
    border: 2px solid rgba(255, 215, 0, 0.5);
    box-shadow: 
        0 4px 15px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(255, 215, 0, 0.8),
        0 0 30px rgba(255, 215, 0, 0.5);
    animation: leaderboardPulse 3s ease-in-out infinite, leaderboardGradientShift 4s ease infinite;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

/* Gradiente animado */
@keyframes leaderboardGradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Aura brilhante atrás do botão */
.leaderboard-btn::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    background: linear-gradient(45deg, 
        #FFD700 0%, 
        #FFA500 25%, 
        #FFD700 50%, 
        #FFA500 75%, 
        #FFD700 100%);
    background-size: 400% 400%;
    border-radius: 10px;
    z-index: -1;
    opacity: 0.7;
    filter: blur(20px);
    animation: rotateLeaderboardAura 6s linear infinite, leaderboardGradientShift 3s ease infinite;
}

/* Brilho interno */
.leaderboard-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(255, 255, 255, 0) 50%,
        rgba(0, 0, 0, 0.1) 100%);
    border-radius: 8px;
    pointer-events: none;
}

/* Rotação da aura */
@keyframes rotateLeaderboardAura {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.7;
    }
    33% {
        transform: rotate(120deg) scale(1.05);
        opacity: 0.85;
    }
    66% {
        transform: rotate(240deg) scale(1.1);
        opacity: 0.9;
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 0.7;
    }
}

/* Pulsação do botão */
@keyframes leaderboardPulse {
    0%, 100% {
        box-shadow: 
            0 4px 15px rgba(255, 215, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 
            0 6px 25px rgba(255, 215, 0, 0.6),
            0 0 30px rgba(255, 215, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.4),
            inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    }
}

.leaderboard-btn:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(255, 215, 0, 0.8);
    box-shadow: 
        0 8px 30px rgba(255, 215, 0, 0.7),
        0 0 40px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    animation: leaderboardPulse 1.5s ease-in-out infinite, leaderboardGradientShift 2s ease infinite;
}

.leaderboard-btn:hover::before {
    animation: rotateLeaderboardAura 3s linear infinite, leaderboardGradientShift 2s ease infinite;
    opacity: 1;
    filter: blur(25px);
}

.leaderboard-btn:active {
    transform: translateY(-2px) scale(0.98);
}

/* Scrollbar */
.table-body::-webkit-scrollbar {
    width: 8px;
}

.table-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.table-body::-webkit-scrollbar-thumb {
    background: rgba(255, 70, 85, 0.5);
    border-radius: 4px;
}

.table-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 70, 85, 0.8);
}

/* Responsive */
@media (max-width: 768px) {
    .table-header,
    .leaderboard-entry {
        grid-template-columns: 60px 1fr 100px 80px;
        gap: 10px;
        padding: 15px;
        font-size: 12px;
    }
    
    .col-acc,
    .player-acc {
        display: none;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-icon {
        font-size: 36px;
    }
    
    .stat-value {
        font-size: 28px;
    }
}
