/* Professional Countdown Timer CSS - Matches Reference Image */

.countdown-timer-container {
    max-width: 100%;
    margin: 20px auto;
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

.countdown-timer-card {
    background: linear-gradient(135deg, hsl(215, 25%, 18%) 0%, hsl(215, 25%, 15%) 100%);
    border: 2px solid hsl(215, 25%, 25%);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    color: hsl(210, 15%, 95%);
}

.countdown-header {
    font-size: 1.25rem;
    font-weight: 500;
    color: hsl(210, 15%, 70%);
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.countdown-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-bottom: 1.5rem;
}

.time-unit {
    text-align: center;
}

.time-value {
    font-size: 4rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Color-coded numbers matching reference image */
.time-value.hours {
    color: hsl(0, 70%, 60%); /* Red */
}

.time-value.minutes {
    color: hsl(45, 90%, 55%); /* Yellow */
}

.time-value.seconds {
    color: hsl(120, 50%, 55%); /* Green */
}

.time-label {
    font-size: 1rem;
    color: hsl(210, 15%, 70%);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-footer {
    margin-top: 1rem;
}

.target-date-display {
    font-size: 0.875rem;
    color: hsl(210, 15%, 60%);
    line-height: 1.4;
}

.timezone {
    font-size: 0.75rem;
    color: hsl(210, 15%, 50%);
}

/* Responsive sizing */
.countdown-timer-container.small {
    max-width: 320px;
}

.countdown-timer-container.small .time-value {
    font-size: 2.5rem;
}

.countdown-timer-container.small .countdown-display {
    gap: 1.5rem;
}

.countdown-timer-container.medium {
    max-width: 480px;
}

.countdown-timer-container.large {
    max-width: 640px;
}

.countdown-timer-container.large .time-value {
    font-size: 5rem;
}

.countdown-timer-container.large .countdown-display {
    gap: 4rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .countdown-display {
        gap: 1.5rem !important;
    }
    
    .time-value {
        font-size: 2.5rem !important;
    }
    
    .countdown-header {
        font-size: 1rem;
    }
    
    .countdown-timer-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .countdown-display {
        gap: 1rem !important;
        flex-wrap: wrap;
    }
    
    .time-value {
        font-size: 2rem !important;
    }
    
    .time-label {
        font-size: 0.75rem;
    }
    
    .countdown-timer-card {
        padding: 1rem;
    }
}

/* Animation for number changes */
.time-value {
    transition: all 0.3s ease-in-out;
}

.time-value.updating {
    transform: scale(1.05);
}

/* Expired state */
.countdown-timer-card.expired {
    background: linear-gradient(135deg, hsl(0, 25%, 18%) 0%, hsl(0, 25%, 15%) 100%);
    border-color: hsl(0, 25%, 25%);
}

.countdown-timer-card.expired .countdown-header {
    color: hsl(0, 70%, 60%);
}

.countdown-timer-card.expired .time-value {
    color: hsl(0, 70%, 60%) !important;
}

/* Widget styles */
.widget .countdown-timer-container {
    margin: 10px 0;
}

.widget .countdown-timer-card {
    padding: 1rem;
}

.widget .time-value {
    font-size: 2rem;
}

.widget .countdown-display {
    gap: 1rem;
}

/* Block editor styles */
.wp-block-countdown-timer {
    margin: 20px 0;
}

/* Accessibility */
.countdown-timer-container:focus-within {
    outline: 2px solid hsl(215, 70%, 60%);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .countdown-timer-card {
        background: white !important;
        color: black !important;
        border: 2px solid #000 !important;
        box-shadow: none !important;
    }
    
    .time-value {
        color: black !important;
    }
}