/* === SECTION ÉVÉNEMENTS === */

/* STYLES POUR LES NOUVEAUX BADGES */
.badge-boost {
    background: linear-gradient(135deg, #8B5CF6 0%, #F59E0B 100%);
    color: white;
    font-weight: 600;
}

.badge-reward {
    background: linear-gradient(135deg, #F59E0B 0%, #A855F7 100%);
    color: white;
    font-weight: 600;
}

.badge-dice {
    background: linear-gradient(135deg, #10B981 0%, #0EA5E9 100%);
    color: white;
    font-weight: 600;
}

.events-section {
    padding: var(--section-padding);
    background: var(--bg-mid);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.event-card {
    background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-dark) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-blue);
}

.event-card.giveaway {
    border-color: rgba(245, 158, 11, 0.3);
}

.event-card.giveaway:hover {
    border-color: var(--primary-gold);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.2);
}

.event-card.discord_event {
    border-color: rgba(88, 101, 242, 0.3);
}

.event-card.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-gold), var(--primary-blue));
    animation: shimmer 2s linear infinite;
}

.event-card.expired {
    opacity: 0.6;
    filter: grayscale(0.5);
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.event-type {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-type-icon {
    font-size: 1.2rem;
}

.event-type-label {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9rem;
}

.event-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-status.active {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.event-status.upcoming {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.event-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-content {
    padding: 20px;
}

.event-title {
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.event-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === EVENT STATS - 3 COLONNES === */
.event-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* ✅ 3 colonnes égales */
    gap: 12px;
    margin-bottom: 16px;
}

.event-stat,
.event-countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 8px; /* ✅ Padding réduit pour 3 colonnes */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .event-stats {
        grid-template-columns: 1fr; /* ✅ 1 colonne sur mobile */
        gap: 8px;
    }
}

.stat-icon,
.countdown-icon {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.stat-value,
.countdown-value {
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1;
}

.stat-label,
.countdown-label {
    color: var(--text-muted);
    font-size: 0.7rem;
    margin-top: 2px;
}

.countdown-value {
    color: var(--primary-gold);
}

.event-countdown.expired .countdown-value {
    color: #ef4444;
}

.event-reactions {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.reaction {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.event-footer {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-event-join {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #4f46e5 100%);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.event-card.giveaway .btn-event-join {
    background: linear-gradient(135deg, var(--primary-gold) 0%, #d97706 100%);
}

.btn-event-join:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}

.event-card.giveaway .btn-event-join:hover {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.btn-icon {
    font-size: 0.9rem;
}

.event-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.event-date {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* États spéciaux */
.no-events,
.events-error {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-events-icon,
.error-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.no-events h3,
.events-error h3 {
    color: var(--text-light);
    margin: 0 0 12px 0;
}

.no-events p,
.events-error p {
    margin: 0 0 24px 0;
}

.events-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Responsive */
@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .event-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .event-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .btn-event-join {
        justify-content: center;
    }
}

/* === STYLES SPÉCIFIQUES PAR TYPE D'ÉVÉNEMENT === */

/* Giveaways */
.event-card.giveaway {
    border-color: rgba(245, 158, 11, 0.4);
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(245, 158, 11, 0.05) 100%);
}

.event-card.giveaway::before {
    background: linear-gradient(90deg, #f59e0b, #d97706, #f59e0b);
}

.event-card.giveaway .event-type-icon {
    color: #f59e0b;
}

.event-card.giveaway .btn-event-join {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Concours de cartes */
.event-card.card_contest {
    border-color: rgba(139, 69, 19, 0.4);
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(139, 69, 19, 0.05) 100%);
}

.event-card.card_contest::before {
    background: linear-gradient(90deg, #8b4513, #a0522d, #8b4513);
}

.event-card.card_contest .event-type-icon {
    color: #cd853f;
}

.event-card.card_contest .btn-event-join {
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
}

/* Événements Discord */
.event-card.discord_event {
    border-color: rgba(88, 101, 242, 0.4);
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(88, 101, 242, 0.05) 100%);
}

.event-card.discord_event::before {
    background: linear-gradient(90deg, #5865f2, #4f46e5, #5865f2);
}

.event-card.discord_event .event-type-icon {
    color: #5865f2;
}

/* === INFORMATIONS SPÉCIFIQUES === */
.event-prize,
.event-card-info,
.event-requirement {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 4px 4px 0 0;
    font-weight: 600;
}

.event-prize {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.event-card-info {
    background: rgba(139, 69, 19, 0.2);
    color: #cd853f;
}

.event-requirement {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

/* =================================
   STYLE PREMIUM BLEUTÉ POUR PARTENAIRES
   ================================= */

.giveaway-partner {
    background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 50%, #60A5FA 100%) !important;
    border: 2px solid #3B82F6 !important;
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.4) !important;
    position: relative;
    overflow: hidden;
}

.giveaway-partner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

.partner-badge {
    background: linear-gradient(45deg, #3B82F6, #60A5FA);
    color: white;
    font-weight: 900;
    font-size: 0.7rem;
    border-radius: 15px;
    padding: 6px 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.5);
    animation: partnerPulse 2s ease-in-out infinite;
}

@keyframes partnerPulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.5);
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 4px 15px rgba(59, 130, 246, 0.8);
    }
}

/* =================================
   BADGE POUR CONCOURS CARTES
   ================================= */

.card-contest-badge {
    background: linear-gradient(45deg, #7C3AED, #A855F7);
    color: white;
    font-weight: 900;
    font-size: 0.7rem;
    border-radius: 15px;
    padding: 6px 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.5);
    animation: cardPulse 2.5s ease-in-out infinite;
}

@keyframes cardPulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 2px 8px rgba(124, 58, 237, 0.5);
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 4px 15px rgba(124, 58, 237, 0.8);
    }
}

/* =================================
   BADGE GIVEAWAY CARTES
   ================================= */

.giveaway-card-badge {
    background: linear-gradient(45deg, #EC4899, #F472B6);
    color: white;
    font-weight: 900;
    font-size: 0.7rem;
    border-radius: 15px;
    padding: 6px 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.5);
    animation: giveawayCardPulse 2.2s ease-in-out infinite;
}

@keyframes giveawayCardPulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 2px 8px rgba(236, 72, 153, 0.5);
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 4px 15px rgba(236, 72, 153, 0.8);
    }
}

/* =================================
   ÉLÉMENTS SPÉCIAUX PARTENAIRES
   ================================= */

.guarantee-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    margin: 8px 0;
    font-size: 0.85rem;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 2px 0;
}

.claim-timeout {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    margin-top: 8px;
}

.excluded-roles {
    background: rgba(107, 114, 128, 0.1);
    border: 1px solid rgba(107, 114, 128, 0.3);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-top: 8px;
}

.unsubscribe-notice {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3B82F6;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-top: 8px;
}

/* Animation shimmer pour effet premium */
@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* =================================
   MONOPOLYGO FR - EVENTS STYLES
   Styles modernes pour les cartes et événements
   ================================= */

/* Conteneur moderne des cartes */
.card-display-modern {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    margin: 8px 0;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    max-width: 100%; /* ✅ CORRECTION DÉBORDEMENT */
    overflow: hidden; /* ✅ CORRECTION DÉBORDEMENT */
}

.card-display-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ✅ LAYOUT CARTES CORRIGÉ - ÉVITER DÉBORDEMENTS */
.card-modern-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    text-align: center;
    min-height: 60px; /* ✅ Hauteur minimale consistante */
    justify-content: center;
    align-items: center;
}

/* Étoiles modernes */
.card-stars {
    display: flex;
    align-items: center;
    gap: 1px;
    font-size: 0.8rem; /* ✅ Taille réduite */
    justify-content: center;
    line-height: 1;
}

.star {
    transition: all 0.2s ease;
    display: inline-block;
}

.star.filled {
    transform: scale(1);
    filter: drop-shadow(0 0 4px currentColor);
    animation: starGlow 2s ease-in-out infinite;
}

.star.empty {
    opacity: 0.3;
    transform: scale(0.8);
}

@keyframes starGlow {
    0%, 100% { filter: drop-shadow(0 0 4px currentColor); }
    50% { filter: drop-shadow(0 0 8px currentColor); }
}

/* Type de carte moderne */
.card-type {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
    text-align: center;
}

.card-icon {
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.card-icon.gold {
    animation: goldShine 3s ease-in-out infinite;
    filter: drop-shadow(0 0 6px #FFD700);
}

.card-icon.normal {
    opacity: 0.9;
}

@keyframes goldShine {
    0%, 100% { 
        transform: scale(1); 
        filter: drop-shadow(0 0 6px #FFD700);
    }
    50% { 
        transform: scale(1.1); 
        filter: drop-shadow(0 0 12px #FFD700);
    }
}

.card-rarity {
    font-size: 0.75rem; /* ✅ Plus petit */
    font-weight: 600;
    line-height: 1.1;
    word-break: break-word;
    max-width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* Fallback simple */
.card-fallback {
    color: var(--text-muted);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Container des infos spécifiques */
.event-specific-info {
    margin: 16px 0;
}

/* ✅ GESTION DES DÉBORDEMENTS */
.event-card-section {
    margin: 12px 0;
    overflow: hidden; /* Empêche le débordement */
}

.card-set-info {
    text-align: center;
    margin-top: 4px;
}

.set-name {
    font-size: 0.65rem; /* ✅ Très petit */
    opacity: 0.8;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* ✅ RESPONSIVE POUR CARTES */
@media (max-width: 768px) {
    .card-modern-container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .card-stars { 
        font-size: 0.7rem; 
        justify-content: center;
    }
    
    .card-type {
        justify-content: center;
    }
    
    .card-rarity { 
        font-size: 0.7rem; 
    }
    
    .set-name { 
        font-size: 0.6rem; 
    }
}

/* === CARTES OR - EFFETS COMBINÉS === */

/* Bordure dorée animée (Option 1) */
.card-display-modern.gold {
    position: relative;
    border: 2px solid #FFD700;
    box-shadow: 
        0 0 15px rgba(255, 215, 0, 0.4),
        inset 0 0 15px rgba(255, 215, 0, 0.1);
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(255, 215, 0, 0.1) 100%);
    animation: goldPulse 2s ease-in-out infinite;
    overflow: visible;
}

/* Badge couronne flottant (Option 2) */
.card-display-modern.gold::after {
    content: '👑';
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.6);
    animation: crownBounce 2s ease-in-out infinite;
    z-index: 10;
}

/* Effet de brillance qui traverse la carte */
.card-display-modern.gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 215, 0, 0.4), 
        transparent);
    animation: goldShine 3s infinite;
    z-index: 1;
}

/* Animations */
@keyframes goldPulse {
    0%, 100% { 
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
        transform: scale(1.02);
    }
}

@keyframes crownBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-3px) rotate(5deg); }
}

@keyframes goldShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Icône dorée avec éclat */
.card-icon.gold {
    filter: drop-shadow(0 0 8px #FFD700);
    animation: iconGlow 2s ease-in-out infinite;
}

@keyframes iconGlow {
    0%, 100% { filter: drop-shadow(0 0 8px #FFD700); }
    50% { filter: drop-shadow(0 0 12px #FFD700); }
}

/* =================================
   TESTIMONIALS GRID - 6 CARTES OPTIMISÉ
   ================================= */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* Sur grand écran : 3 colonnes pour 6 cartes */
@media (min-width: 1200px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* Sur écran moyen : 2 colonnes */
@media (min-width: 768px) and (max-width: 1199px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Sur mobile : 1 colonne */
@media (max-width: 767px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .testimonial-card {
        padding: 20px;
    }
}

/* Effet staggered pour 6 cartes */
.testimonial-card[data-dynamic="true"]:nth-child(1) { animation-delay: 0s; }
.testimonial-card[data-dynamic="true"]:nth-child(2) { animation-delay: 0.1s; }
.testimonial-card[data-dynamic="true"]:nth-child(3) { animation-delay: 0.2s; }
.testimonial-card[data-dynamic="true"]:nth-child(4) { animation-delay: 0.3s; }
.testimonial-card[data-dynamic="true"]:nth-child(5) { animation-delay: 0.4s; }
.testimonial-card[data-dynamic="true"]:nth-child(6) { animation-delay: 0.5s; }

/* Couleurs par rareté */
.rarity-mythique { color: #FF6B6B !important; }
.rarity-legendaire { color: #4ECDC4 !important; }
.rarity-epique { color: #A78BFA !important; }
.rarity-rare { color: #FFA726 !important; }
.rarity-commune { color: #90A4AE !important; }