/* ===================================
   CSS POUR LA PAGE TOP 49 - top-likes.php
   =================================== */

/* STYLES GÉNÉRAUX */
.main {
    padding: 1em 0 0 0;
}

body { 
    background-color: #223843;
}

nav.navbar.navbar-inverse.navbar-fixed-top {
    background: #223843;
}

.sidebar {
    background: #223843; 
}

.top-grids h6 { 
    color: #FFFFFF;
    font-size: 14px;
    text-align: right;	
}

.recommended-grids h3 {
    color: #FFFFFF;
    font-size: 12px;
    text-align: center;	
}

.affiche {
    margin-left: 5em;
    margin-right: 5em;
}

.affiche h2 {
    color: #FFFFFF;
    font-size: 24px;
    text-align: center;	
}

.affiche img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================
   TITRE PRINCIPAL DU TOP 49
   =================================== */
.top20-title {
    color: #FFFFFF;
    font-size: 32px;
    text-align: center;
    margin: 30px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* ===================================
   GRILLE DU TOP 49
   =================================== */
.top20-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

/* ===================================
   CARTE DE CÉLÉBRITÉ (STANDARD)
   =================================== */
.celebrity-card {
    width: 180px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* ===================================
   EFFETS SPÉCIAUX POUR LE 1ER (GAGNANT)
   =================================== */
.celebrity-card.winner {
    position: relative;
}

/* Aura lumineuse pulsante autour du 1er */
.celebrity-card.winner::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 320px;
    background: radial-gradient(ellipse, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
    filter: blur(20px);
    animation: pulse 2s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Badge qui brille pour le 1er */
.celebrity-card.winner .rank-badge {
    width: 50px;
    height: 50px;
    font-size: 24px;
    border: 4px solid white;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.8); }
    50% { box-shadow: 0 0 30px rgba(255, 215, 0, 1); }
}

/* Ombre dorée spéciale pour l'image du 1er */
.celebrity-card.winner img {
    box-shadow: inset 0 0 1em black, 0 0 3em rgba(255, 215, 0, 0.5);
}

.celebrity-card.winner:hover img {
    box-shadow: inset 0 0 1em white, 0 0 4em rgba(255, 215, 0, 0.8);
}

/* Couleur dorée pour les likes du 1er */
.celebrity-card.winner .celebrity-likes {
    color: #FFD700;
}

/* Couronne au lieu de coeur pour le 1er */
.celebrity-card.winner .celebrity-likes::before {
    content: "👑 ";
}

/* ===================================
   EFFET DE REFLET AU SURVOL DU GAGNANT
   =================================== */
.celebrity-card.winner {
    position: relative;
    transition: transform 0.3s ease;
}

.celebrity-card.winner:hover {
    transform: scale(1.05);
}

/* Reflet lumineux qui traverse l'image */
.celebrity-card.winner .image::after {
    content: "";
    position: absolute;
    top: -100%;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
    pointer-events: none;
}

.celebrity-card.winner:hover .image::after {
    top: 100%;
    left: 100%;
}

/* ===================================
   BADGES DE CLASSEMENT
   =================================== */
.rank-badge {
    position: absolute;
    top: 60px;
    left: -10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    z-index: 10;
    border: 3px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.rank-badge.gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.rank-badge.silver {
    background: linear-gradient(135deg, #C0C0C0 0%, #808080 100%);
}

.rank-badge.bronze {
    background: linear-gradient(135deg, #CD7F32 0%, #8B4513 100%);
}

/* ===================================
   CONTENEUR D'IMAGE
   =================================== */
.celebrity-card .image {
    position: relative;
    width: 180px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
}

/* ===================================
   IMAGE DE LA CÉLÉBRITÉ
   =================================== */
.celebrity-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border: 3px solid white;
    box-shadow: inset 0 0 1em black, 0 0 2em black;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.celebrity-card:hover img {
    border: 3px solid white;
    box-shadow: inset 0 0 1em white, 0 0 2em white;
}

/* ===================================
   EFFET DE REFLET AU SURVOL (TOUTES LES IMAGES)
   =================================== */
.celebrity-card {
    transition: transform 0.3s ease;
}

.celebrity-card:hover {
    transform: scale(1.05);
}

/* Reflet lumineux qui traverse l'image */
.celebrity-card .image::after {
    content: "";
    position: absolute;
    top: -100%;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
    pointer-events: none;
}

.celebrity-card:hover .image::after {
    top: 100%;
    left: 100%;
}
/* ===================================
   NOM DE LA CÉLÉBRITÉ
   =================================== */
.celebrity-card h3 {
    color: #FFFFFF;
    font-size: 14px;
    margin: 10px 0 5px 0;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* ===================================
   COMPTEUR DE LIKES
   =================================== */
.celebrity-likes {
    color: #ff6b6b;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.celebrity-likes::before {
    content: "❤️ ";
}

/* ===================================
   LIENS (SANS SOULIGNEMENT)
   =================================== */
.celebrity-card a {
    text-decoration: none;
    display: block;
}

.celebrity-card a:hover {
    text-decoration: none;
}

/* ===================================
   SÉPARATEUR ENTRE TOP 49 ET SUIVANTS
   =================================== */
.separator {
    text-align: center;
    margin: 50px auto;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    font-size: 18px;
    line-height: 1.8;
    max-width: 800px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* ===================================
   TITRE DES 49 SUIVANTS
   =================================== */
.next20-title {
    color: #FFFFFF;
    font-size: 24px;
    text-align: center;
    margin: 30px 0;
}

/* ===================================
   LISTE DES 49 SUIVANTS (5 COLONNES)
   =================================== */
.next20-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.next20-list a {
    text-decoration: none;
}

.next20-list a:hover {
    text-decoration: none;
}

/* ===================================
   MINI PHOTO DES 49 SUIVANTS
   =================================== */
.next20-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    object-position: top center;
    border-radius: 8px;
    border: 2px solid white;
    margin-right: 15px;
}

/* ===================================
   CARTE DES 49 SUIVANTS
   =================================== */
.next20-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
    cursor: pointer;
}

.next20-item:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateX(5px);
}

/* ===================================
   ÉLÉMENTS DES 49 SUIVANTS
   =================================== */
.next20-rank {
    font-weight: bold;
    color: #667eea;
    font-size: 18px;
    margin-right: 10px;
    min-width: 40px;
}

.next20-name {
    flex: 1;
    color: #FFFFFF;
    font-weight: 500;
    font-size: 14px;
}

.next20-likes {
    color: #ff6b6b;
    font-weight: bold;
    font-size: 14px;
    margin-left: 10px;
}

.next20-likes::before {
    content: "❤️ ";
}
/* ===================================
   RESPONSIVE POUR LES 50 SUIVANTS
   =================================== */

/* Tablettes et petits écrans */
@media (max-width: 992px) {
    .next20-list {
        grid-template-columns: repeat(3, 1fr); /* 3 colonnes au lieu de 5 */
        gap: 10px;
        padding: 0 10px;
    }
}

/* Smartphones */
@media (max-width: 768px) {
    .next20-list {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur mobile */
        gap: 8px;
        padding: 0 10px;
    }
    
    .next20-item {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .next20-rank {
        font-size: 14px;
        min-width: 30px;
    }
    
    .next20-name {
        font-size: 12px;
    }
    
    .next20-likes {
        font-size: 12px;
    }
    
    .next20-img {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    .next20-list {
        grid-template-columns: 1fr; /* 1 seule colonne sur très petits écrans */
    }
    
    .next20-item {
        padding: 10px;
    }
    
    .next20-img {
        width: 45px;
        height: 45px;
    }
}

/* Responsive pour le titre */
@media (max-width: 768px) {
    .next20-title {
        font-size: 20px;
    }
}