/**
 * PassionVaradero - Compte à Rebours
 * Styles
 */

.pv-countdown-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 30px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    text-align: center;
    color: white;
    max-width: 900px;
    margin: 40px auto;
}

/* Animation de fond */
.pv-countdown-container::before {
    content: '⏰';
    position: absolute;
    top: -100px;
    right: -100px;
    font-size: 400px;
    opacity: 0.05;
    animation: pulse 3s ease-in-out infinite;
}

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

/* Header */
.pv-countdown-header {
    margin-bottom: 40px;
}

.pv-countdown-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s ease;
}

.pv-countdown-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin: 0;
    animation: fadeInUp 1s ease;
}

/* Display du compte à rebours */
.pv-countdown-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pv-countdown-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 25px;
    border-radius: 15px;
    min-width: 120px;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease;
}

.pv-countdown-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.pv-countdown-number {
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    font-family: 'Courier New', monospace;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.pv-countdown-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
    opacity: 0.9;
}

.pv-countdown-separator {
    font-size: 48px;
    font-weight: 700;
    opacity: 0.5;
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.1; }
}

/* Message */
.pv-countdown-message {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    border-radius: 15px;
    margin: 40px 0 20px 0;
    text-align: left;
    animation: fadeInUp 1.2s ease;
}

.pv-countdown-message-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.pv-countdown-message-content {
    font-size: 16px;
    line-height: 1.8;
    white-space: pre-line;
}

/* Badge J-X */
.pv-countdown-day-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    background: linear-gradient(135deg, #E63946, #F77F00);
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(230, 57, 70, 0.5);
    animation: bounceIn 1s ease;
}

.badge-text {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Animation du jour J */
.pv-countdown-launch {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #E63946 0%, #F77F00 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    animation: slideIn 1s ease;
}

.launch-animation {
    font-size: 120px;
    animation: bounce 1s ease infinite;
}

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

.pv-countdown-launch h3 {
    font-size: 56px;
    margin: 20px 0;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.pv-countdown-launch p {
    font-size: 24px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.pv-countdown-btn {
    background: white;
    color: #E63946;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.pv-countdown-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: #E63946;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .pv-countdown-container {
        padding: 40px 20px;
        margin: 20px;
    }
    
    .pv-countdown-title {
        font-size: 32px;
    }
    
    .pv-countdown-subtitle {
        font-size: 16px;
    }
    
    .pv-countdown-display {
        gap: 10px;
    }
    
    .pv-countdown-item {
        padding: 15px;
        min-width: 80px;
    }
    
    .pv-countdown-number {
        font-size: 36px;
    }
    
    .pv-countdown-label {
        font-size: 11px;
    }
    
    .pv-countdown-separator {
        font-size: 32px;
    }
    
    .pv-countdown-day-badge {
        top: 15px;
        right: 15px;
        padding: 10px 20px;
    }
    
    .badge-text {
        font-size: 18px;
    }
    
    .pv-countdown-message {
        padding: 20px;
        font-size: 14px;
    }
    
    .launch-animation {
        font-size: 80px;
    }
    
    .pv-countdown-launch h3 {
        font-size: 36px;
    }
    
    .pv-countdown-launch p {
        font-size: 18px;
    }
}

/* Version sombre */
@media (prefers-color-scheme: dark) {
    .pv-countdown-item,
    .pv-countdown-message {
        background: rgba(0, 0, 0, 0.3);
        border-color: rgba(255, 255, 255, 0.1);
    }
}
