/**
 * Calendrier de l'Avent - Styles
 */

.membres-advent-calendar-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* En-tête */
.membres-advent-header {
    background: linear-gradient(135deg, #dc2626 0%, #059669 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    color: #fff;
    box-shadow: 0 10px 40px rgba(220, 38, 38, 0.3);
    position: relative;
    overflow: hidden;
}

.membres-advent-header::before {
    content: '🎄';
    position: absolute;
    font-size: 200px;
    opacity: 0.1;
    right: -20px;
    top: -40px;
    transform: rotate(15deg);
}

.membres-advent-header-content {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.membres-advent-title {
    margin: 0 0 10px 0;
    font-size: 42px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.membres-advent-title i {
    margin-right: 12px;
    animation: giftWiggle 2s ease-in-out infinite;
}

@keyframes giftWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.membres-advent-year {
    font-size: 24px;
    opacity: 0.9;
    margin-left: 8px;
}

.membres-advent-subtitle {
    margin: 0;
    font-size: 18px;
    opacity: 0.95;
}

/* Stats */
.membres-advent-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.membres-advent-stat {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.membres-advent-stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.membres-advent-stat-content {
    flex: 1;
}

.membres-advent-stat-label {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.membres-advent-stat-value {
    font-size: 28px;
    font-weight: 700;
}

/* Barre de progression */
.membres-advent-progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.membres-advent-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 20px;
    transition: width 0.5s ease;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.6);
}

/* Grille du calendrier */
.membres-advent-calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Bandeau mode aperçu */
.membres-advent-preview-banner {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3); }
    50% { box-shadow: 0 4px 20px rgba(245, 158, 11, 0.5); }
}

/* Jour du calendrier */
.membres-advent-day {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.membres-advent-day::before {
    content: '❄️';
    position: absolute;
    font-size: 60px;
    opacity: 0.05;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.membres-advent-day > * {
    position: relative;
    z-index: 1;
}

/* Badge spécial */
.membres-advent-day-special-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
    animation: starPulse 2s ease-in-out infinite;
    z-index: 2;
}

@keyframes starPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Pulse pour le jour actuel */
.membres-advent-day-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    border: 3px solid #10b981;
    border-radius: 16px;
    animation: pulse 2s ease-out infinite;
    z-index: 0;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0;
    }
}

/* Numéro du jour */
.membres-advent-day-number {
    font-size: 32px;
    font-weight: 800;
    color: #dc2626;
    margin-bottom: 12px;
}

/* Icône d'état */
.membres-advent-day-icon {
    font-size: 40px;
    margin-bottom: 12px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Récompense */
.membres-advent-day-reward {
    font-size: 16px;
    font-weight: 600;
    color: #f59e0b;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Récompense mystère (mode aperçu) */
.membres-advent-day-reward-mystery {
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-style: italic;
}

.membres-advent-day.preview .membres-advent-day-reward-mystery {
    color: #f59e0b;
    animation: mysteryPulse 2s ease-in-out infinite;
}

@keyframes mysteryPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Bouton réclamer */
.membres-advent-day-btn {
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.membres-advent-day-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}

.membres-advent-day-btn:active {
    transform: translateY(0);
}

/* Status */
.membres-advent-day-status {
    font-size: 13px;
    font-weight: 600;
    padding: 8px;
    border-radius: 6px;
}

.membres-advent-day-status.claimed {
    background: #d1fae5;
    color: #065f46;
}

.membres-advent-day-status.locked {
    background: #f1f5f9;
    color: #64748b;
}

/* États des jours */
.membres-advent-day.available {
    border-color: #10b981;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
}

.membres-advent-day.available:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.membres-advent-day.available .membres-advent-day-icon {
    color: #10b981;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.membres-advent-day.claimed {
    background: #f0fdf4;
    border-color: #bbf7d0;
    opacity: 0.8;
}

.membres-advent-day.claimed .membres-advent-day-icon {
    color: #10b981;
}

.membres-advent-day.claimed .membres-advent-day-number {
    color: #059669;
}

.membres-advent-day.locked {
    background: #f8fafc;
    border-color: #e2e8f0;
    cursor: not-allowed;
    opacity: 0.6;
}

.membres-advent-day.locked .membres-advent-day-icon {
    color: #94a3b8;
}

.membres-advent-day.locked .membres-advent-day-number {
    color: #64748b;
}

.membres-advent-day.locked .membres-advent-day-reward {
    color: #94a3b8;
}

/* Mode aperçu (novembre) */
.membres-advent-day.preview {
    opacity: 0.85;
    cursor: default;
}

.membres-advent-day.preview:hover {
    transform: none;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
}

.membres-advent-day.preview .membres-advent-day-number {
    color: #f59e0b;
}

.membres-advent-day.preview .membres-advent-day-icon {
    color: #f59e0b;
}

.membres-advent-day.preview .membres-advent-day-reward {
    color: #f59e0b;
}

/* Jour actuel (aujourd'hui) */
.membres-advent-day.today.available {
    border-color: #10b981;
    border-width: 3px;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

/* Jours spéciaux (bonus) */
.membres-advent-day.special {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.membres-advent-day.special .membres-advent-day-number {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Message de complétion */
.membres-advent-completion-message {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    color: #fff;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.3);
}

.membres-advent-completion-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: celebrate 1s ease-in-out infinite alternate;
}

@keyframes celebrate {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.1) rotate(10deg); }
}

.membres-advent-completion-message h3 {
    margin: 0 0 16px 0;
    font-size: 36px;
    font-weight: 800;
}

.membres-advent-completion-message p {
    margin: 0;
    font-size: 18px;
    opacity: 0.95;
}

/* Responsive */
@media (max-width: 1024px) {
    .membres-advent-calendar-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .membres-advent-header {
        padding: 30px 20px;
    }
    
    .membres-advent-title {
        font-size: 32px;
    }
    
    .membres-advent-calendar-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }
    
    .membres-advent-day {
        padding: 16px;
    }
    
    .membres-advent-day-number {
        font-size: 28px;
    }
    
    .membres-advent-day-icon {
        font-size: 32px;
        height: 40px;
    }
    
    .membres-advent-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .membres-advent-calendar-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .membres-advent-day {
        padding: 12px;
    }
    
    .membres-advent-day-number {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .membres-advent-day-icon {
        font-size: 28px;
        height: 35px;
        margin-bottom: 8px;
    }
    
    .membres-advent-day-reward {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .membres-advent-day-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body:not(.light-mode) .membres-advent-day {
        background: #0f172a;
        border-color: #334155;
    }
    
    body:not(.light-mode) .membres-advent-day.available {
        background: #0f172a;
    }
    
    body:not(.light-mode) .membres-advent-day.claimed {
        background: #064e3b;
        border-color: #059669;
    }
    
    body:not(.light-mode) .membres-advent-day.locked {
        background: #1e293b;
    }
    
    body:not(.light-mode) .membres-advent-day-status.claimed {
        background: #064e3b;
        color: #6ee7b7;
    }
    
    body:not(.light-mode) .membres-advent-day-status.locked {
        background: #1e293b;
        color: #94a3b8;
    }
}

body.dark-mode .membres-advent-day {
    background: #0f172a !important;
    border-color: #334155 !important;
}

body.dark-mode .membres-advent-day.available {
    background: #0f172a !important;
}

body.dark-mode .membres-advent-day.claimed {
    background: #064e3b !important;
    border-color: #059669 !important;
}

body.dark-mode .membres-advent-day.locked {
    background: #1e293b !important;
}

body.dark-mode .membres-advent-day-status.claimed {
    background: #064e3b !important;
    color: #6ee7b7 !important;
}

body.dark-mode .membres-advent-day-status.locked {
    background: #1e293b !important;
    color: #94a3b8 !important;
}
