/* ===== WALL OF FAME ===== */

.wall-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.wall-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.wall-modal-backdrop {
    position: absolute;
    inset: 0;
}

.wall-modal {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(26, 26, 26, 0.95));
    border: 3px solid var(--gold);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.wall-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: linear-gradient(135deg, var(--gold), var(--light-gold));
}

.wall-modal-header h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 900;
    color: #000;
    letter-spacing: 1px;
}

.wall-close {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    color: #000;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wall-close:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: rotate(90deg);
}

.wall-modal-body {
    padding: 30px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

.wall-modal-body::-webkit-scrollbar {
    width: 8px;
}

.wall-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.wall-modal-body::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}

/* Rang de l'utilisateur */
.wall-user-rank {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background: rgba(212, 175, 55, 0.15);
    border: 2px solid var(--gold);
    border-radius: 15px;
    margin-bottom: 30px;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
    }
}

.wall-user-rank-icon {
    font-size: 32px;
}

.wall-user-rank-text {
    font-size: 16px;
    color: white;
    font-weight: 600;
}

.wall-user-rank-text strong {
    font-size: 24px;
    color: var(--gold);
    font-weight: 900;
}

/* Podium */
/* Podium */
.wall-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 40px;
    padding: 40px 20px; /* ✅ Augmenté pour éviter le débordement */
}

.podium-fan {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 30px 20px; /* ✅ Augmenté le padding vertical */
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    width: 200px;
    min-height: 280px; /* ✅ Hauteur minimale pour tout afficher */
    transition: all 0.3s ease;
    position: relative;
    overflow: visible; /* ✅ Changé de hidden à visible */
}

.podium-fan::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    animation: shimmer 3s linear infinite;
    pointer-events: none; /* ✅ Évite les interactions */
}

@keyframes shimmer {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.podium-fan:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.4);
    z-index: 10; /* ✅ Passe au-dessus lors du hover */
}

.podium-fan:nth-child(1) {
    border-color: #FFD700;
    height: 320px; /* ✅ Plus grand pour le 1er */
}

.podium-fan:nth-child(2) {
    border-color: #C0C0C0;
    height: 280px; /* ✅ Moyen pour le 2ème */
}

.podium-fan:nth-child(3) {
    border-color: #CD7F32;
    height: 260px; /* ✅ Plus petit pour le 3ème */
}

.podium-fan.is-current-user {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.podium-rank {
    font-size: 48px;
    filter: drop-shadow(0 0 10px currentColor);
    flex-shrink: 0;
}

.podium-avatar {
    font-size: 60px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    /* ✅ AJOUTEZ CES LIGNES */
    color: #FFD700; /* Doré */
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
}

.podium-name {
    font-size: 16px;
    font-weight: 700;
    color: white;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 10px;
}

.podium-stats {
    display: flex;
    gap: 15px;
    width: 100%;
    margin-top: auto; /* ✅ Pousse les stats en bas */
}

.podium-stat {
    flex: 1;
    text-align: center;
}

.podium-stat-value {
    font-size: 20px;
    font-weight: 900;
    color: var(--gold);
}

.podium-stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

/* Liste */
.wall-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wall-list-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.wall-list-item:hover {
    background: rgba(212, 175, 55, 0.05);
    border-color: var(--gold);
    transform: translateX(10px);
}

.wall-list-item.is-current-user {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
}

.wall-list-rank {
    font-size: 24px;
    font-weight: 900;
    color: var(--gold);
    min-width: 50px;
}

.wall-list-avatar {
    font-size: 40px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.wall-list-info {
    flex: 1;
}

.wall-list-name {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.wall-list-stats {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

/* Empty state */
.wall-empty {
    text-align: center;
    padding: 60px 20px;
}

.wall-empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.wall-empty h3 {
    font-size: 24px;
    color: white;
    margin-bottom: 10px;
}

.wall-empty p {
    color: rgba(255, 255, 255, 0.7);
}

/* Mobile */
/* Mobile */
@media (max-width: 768px) {
    .wall-modal {
        width: 95%;
    }
    
    .wall-podium {
        flex-direction: column;
        align-items: stretch;
        padding: 30px 15px; /* ✅ Ajusté pour mobile */
    }
    
    .podium-fan {
        width: 100%;
        min-height: auto; /* ✅ Hauteur auto sur mobile */
        height: auto !important; /* ✅ Force la hauteur auto */
        padding: 25px 20px;
    }
    
    .podium-fan:nth-child(1),
    .podium-fan:nth-child(2),
    .podium-fan:nth-child(3) {
        height: auto !important; /* ✅ Toutes les cartes même hauteur */
    }
    
    .podium-avatar {
        font-size: 50px; /* ✅ Légèrement réduit sur mobile */
        width: 80px;
        height: 80px;
    }
    
    .wall-list-item {
        flex-wrap: wrap;
        padding: 15px;
    }
    
    .wall-list-rank {
        font-size: 20px;
        min-width: 40px;
    }
    
    .wall-list-avatar {
        font-size: 32px;
        width: 50px;
        height: 50px;
    }
    
    .wall-list-name {
        font-size: 16px;
    }
    
    .wall-list-stats {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .wall-podium {
        padding: 20px 10px;
    }
    
    .podium-fan {
        padding: 20px 15px;
    }
    
    .podium-rank {
        font-size: 40px;
    }
    
    .podium-avatar {
        font-size: 45px;
        width: 70px;
        height: 70px;
    }
    
    .podium-name {
        font-size: 14px;
    }
    
    .podium-stat-value {
        font-size: 18px;
    }
}