/* ============================================
   MARMOTTE WORLD - TOP 100 LEADERBOARD CSS
   ============================================

   Note: Les styles principaux du Top 100
   sont dans style.css (lb-pro-wrapper, etc.)

   Ce fichier contient des styles additionnels
   pour le leaderboard professionnel.

   (c) 2025 Solal Zanovello - Tous droits reserves
   ============================================ */

/* === ANIMATIONS LEADERBOARD === */
@keyframes rankPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes goldShine {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes newEntry {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* === BADGES TOP 100 === */
.lb-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lb-badge-gold {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #1a1a1a;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.4);
}

.lb-badge-silver {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
    color: #1a1a1a;
    box-shadow: 0 2px 10px rgba(192, 192, 192, 0.4);
}

.lb-badge-bronze {
    background: linear-gradient(135deg, #cd7f32, #b8860b);
    color: #fff;
    box-shadow: 0 2px 10px rgba(205, 127, 50, 0.4);
}

/* === EFFETS SPECIAUX TOP 3 === */
.lb-entry.rank-1 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 170, 0, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.3);
    animation: rankPulse 2s ease-in-out infinite;
}

.lb-entry.rank-2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.15), rgba(160, 160, 160, 0.1));
    border: 1px solid rgba(192, 192, 192, 0.3);
}

.lb-entry.rank-3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.15), rgba(184, 134, 11, 0.1));
    border: 1px solid rgba(205, 127, 50, 0.3);
}

/* === INDICATEUR JOUEUR ACTUEL === */
.lb-entry.current-player {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(124, 58, 237, 0.15));
    border: 2px solid var(--primary, #8b5cf6);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.lb-entry.current-player::before {
    content: '👤';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

/* === NOUVELLE ENTREE ANIMATION === */
.lb-entry.new-entry {
    animation: newEntry 0.5s ease-out forwards;
}

/* === CHARGEMENT LEADERBOARD === */
.lb-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 20px;
}

.lb-loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(139, 92, 246, 0.2);
    border-top-color: var(--primary, #8b5cf6);
    border-radius: 50%;
    animation: spinLoader 1s linear infinite;
}

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

.lb-loading-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

/* === ETAT VIDE === */
.lb-empty {
    text-align: center;
    padding: 60px 20px;
}

.lb-empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
    opacity: 0.5;
}

.lb-empty-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.lb-empty-hint {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* === FILTRES ET NAVIGATION === */
.lb-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    margin-bottom: 20px;
    gap: 15px;
    flex-wrap: wrap;
}

.lb-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lb-filter-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 600;
}

/* === PAGINATION === */
.lb-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.lb-page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lb-page-btn:hover {
    background: rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

.lb-page-btn.active {
    background: var(--primary, #8b5cf6);
    border-color: var(--primary, #8b5cf6);
}

.lb-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .lb-badge {
        font-size: 0.65rem;
        padding: 3px 8px;
    }

    .lb-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .lb-pagination {
        flex-wrap: wrap;
    }

    .lb-page-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}
