/**
 * Styles pour le Top 10 des Joueurs de Mots-Croisés
 */

.top10-container {
    font-family: 'Montserrat', sans-serif;
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Tabs */
.top10-tabs {
    display: flex;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    padding: 0;
    flex-wrap: wrap;
}

.top10-tab {
    flex: 1;
    text-align: center;
    padding: 18px 5px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top10-tab.active {
    color: #fff;
    font-weight: 700;
}

.top10-tab.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background-color: #fff;
    border-radius: 2px 2px 0 0;
}

/* Tab Content */
.top10-content {
    padding: 0;
    position: relative;
    min-height: 500px;
}

.top10-tab-content {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.top10-tab-content.active {
    display: block;
}

/* Panel */
.top10-panel {
    padding: 20px;
}

.top10-titre {
    text-align: center;
    color: #4a4a4a;
    font-size: 20px;
    margin-bottom: 25px;
    font-weight: 600;
}

/* Tableau */
.top10-tableau {
    padding: 10px;
}

.joueur-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 10px;
    background: #f9f9f9;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.joueur-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.joueur-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.joueur-avatar {
    margin-right: 15px;
}

.top10-avatar {
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.joueur-details {
    flex: 1;
}

.joueur-nom {
    font-weight: 600;
    color: #333;
    font-size: 16px;
    margin-bottom: 4px;
}

.joueur-score {
    color: #777;
    font-size: 14px;
}

.joueur-score span {
    font-weight: 700;
    color: #6e8efb;
    font-size: 16px;
}

/* Badges */
.badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    margin-right: 15px;
    flex-shrink: 0;
}

.badge.gold {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
}

.badge.silver {
    background: linear-gradient(135deg, #C0C0C0, #E8E8E8);
    box-shadow: 0 3px 10px rgba(192, 192, 192, 0.3);
}

.badge.bronze {
    background: linear-gradient(135deg, #cd7f32, #e6bb88);
    box-shadow: 0 3px 10px rgba(205, 127, 50, 0.3);
}

.badge.standard {
    background: linear-gradient(135deg, #a777e3, #6e8efb);
    box-shadow: 0 3px 10px rgba(167, 119, 227, 0.3);
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .top10-tabs {
        flex-direction: column;
    }
    
    .top10-tab {
        font-size: 14px;
        padding: 15px 5px;
    }
    
    .joueur-nom {
        font-size: 14px;
    }
    
    .joueur-score {
        font-size: 12px;
    }
    
    .joueur-score span {
        font-size: 14px;
    }
    
    .badge {
        width: 30px;
        height: 30px;
        margin-right: 10px;
    }
    
    .top10-avatar {
        width: 40px !important;
        height: 40px !important;
    }
}

/* Message d'absence de données */
.no-data {
    text-align: center;
    padding: 30px;
    color: #999;
    font-style: italic;
}

/* Effet de survol pour les badges */
.joueur-item:hover .badge {
    transform: scale(1.1) rotate(5deg);
    transition: all 0.3s ease;
}

/* Effet de confetti pour les 3 premiers */
.joueur-item:nth-child(1),
.joueur-item:nth-child(2),
.joueur-item:nth-child(3) {
    position: relative;
    overflow: hidden;
}

.joueur-item:nth-child(1)::after,
.joueur-item:nth-child(2)::after,
.joueur-item:nth-child(3)::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 100%);
    transform: skewX(-15deg) translateX(100%);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: skewX(-15deg) translateX(-150%); }
    100% { transform: skewX(-15deg) translateX(300%); }
}
