/**
 * Beugz Display Participants Styles
 *
 * @since 4.3.0
 */

/* Container principal */
.participants-list {
    max-width: 1200px;
    margin: 2em auto 4em;
    padding: 0 1em;
}

/* Titre */
.participants-list h2 {
    text-align: center;
    color: #ffffff;
    font-size: 2.2em;
    margin-bottom: 1.5em;
    position: relative;
}

.participants-list h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #3498db;
    margin: 0.5em auto;
    border-radius: 2px;
}

/* Grille des participants */
.participants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5em;
    margin-top: 2.5em;
}

/* Carte participant - Style par défaut (glow) */
.participant-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.15), rgba(255, 255, 255, 0.05));
    border-radius: 8px;
    padding: 1em;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Style Simple */
.style-simple .participant-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.style-simple .participant-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Style Gradient */
.style-gradient .participant-card {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2), rgba(155, 89, 182, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.style-gradient .participant-card:hover {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.3), rgba(155, 89, 182, 0.3));
    transform: translateY(-5px);
}

/* Nom du participant */
.participant-card h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.4em;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

/* Emoji */
.participant-card .emoji {
    font-size: 1.2em;
    line-height: 1;
}

/* Texte dans la carte */
.participant-card p {
    margin: 0.8em 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1em;
    line-height: 1.5;
}

/* Type de ticket */
.participant-card .ticket-type {
    display: inline-block;
    padding: 0.5em;
    font-weight: 500;
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.75);
}

/* Compteur de participants */
.participants-count {
    text-align: center;
    margin-top: 2em;
    padding: 1em;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1em;
}

/* Message si aucun participant */
.no-participants {
    text-align: center;
    padding: 3em 1em;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1em;
}

/* Message d'erreur */
.beugz-error {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.5);
    border-radius: 4px;
    padding: 1em;
    color: #fff;
    text-align: center;
}

/* Animation Glow par défaut */
@keyframes glowing {
    0% { box-shadow: 0px 0px 10px 2px rgba(0, 150, 255, 0.3); }
    50% { box-shadow: 0px 0px 20px 5px rgba(0, 150, 255, 0.7); }
    100% { box-shadow: 0px 0px 10px 2px rgba(0, 150, 255, 0.3); }
}

.participant-card.event-glow {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.participant-card.event-glow:hover {
    transform: translateY(-5px);
    animation: glowing 1.5s infinite alternate;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .participants-grid {
        grid-template-columns: 1fr;
        gap: 1.5em;
    }

    .participants-list h2 {
        font-size: 1.8em;
    }

    .participant-card {
        padding: 1.5em;
    }
}

/* Theme clair (optionnel - ajoutez la classe .light-theme au container) */
.participants-list.light-theme h2 {
    color: #333;
}

.participants-list.light-theme .participant-card {
    background: #fff;
    border-color: #e0e0e0;
}

.participants-list.light-theme .participant-card h3 {
    color: #333;
}

.participants-list.light-theme .participant-card p {
    color: #666;
}

.participants-list.light-theme .participants-count,
.participants-list.light-theme .no-participants {
    color: #666;
}