/* WP Bakery Countdown Timer Styles */

.wp-bakery-countdown-timer {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 1rem 0;
    text-align: center;
    transition: all 0.3s ease;
}

.wp-bakery-countdown-timer:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.countdown-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.countdown-label {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.countdown-expired {
    font-size: 1.5rem;
    font-weight: 600;
    color: #dc3545;
    text-align: center;
    padding: 2rem;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 8px;
    border: 2px solid #dc3545;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wp-bakery-countdown-timer {
        padding: 1rem;
    }
    
    .countdown-container {
        gap: 1rem;
    }
    
    .countdown-item {
        min-width: 60px;
        padding: 0.75rem;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .countdown-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .countdown-container {
        gap: 0.5rem;
    }
    
    .countdown-item {
        min-width: 50px;
        padding: 0.5rem;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .countdown-label {
        font-size: 0.625rem;
    }
}

/* Animation for number changes */
.countdown-number {
    animation: pulse 0.5s ease-in-out;
}

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

/* Loading state */
.wp-bakery-countdown-timer.loading {
    opacity: 0.7;
}

.wp-bakery-countdown-timer.loading .countdown-number {
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .countdown-item {
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
    }
    
    .countdown-label {
        opacity: 0.7;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .wp-bakery-countdown-timer {
        border: 2px solid currentColor;
    }
    
    .countdown-item {
        border: 1px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .wp-bakery-countdown-timer,
    .countdown-item,
    .countdown-number {
        transition: none;
        animation: none;
    }
    
    .wp-bakery-countdown-timer:hover,
    .countdown-item:hover {
        transform: none;
    }
} 