/* ========================================
   COUNTDOWN TIMER STYLES
   Modern countdown timer for order deadline
   ======================================== */

/* Urgency Banner */
.urgency-banner {
    background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%);
    border: 2px solid #F59E0B;
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
    animation: urgency-pulse 2s infinite;
    position: relative;
    overflow: hidden;
}

.urgency-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: urgency-shimmer 3s infinite;
}

@keyframes urgency-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes urgency-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Countdown Timer Container */
.countdown-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

/* Individual Timer Badges */
.countdown-timer .badge {
    background: linear-gradient(135deg, #EF5350 0%, #E53935 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(239, 83, 80, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.countdown-timer .badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 83, 80, 0.6);
}

.countdown-timer .badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.countdown-timer .badge:hover::before {
    left: 100%;
}

/* Timer Number Animation */
.countdown-timer span {
    display: inline-block;
    transition: all 0.3s ease;
}

.countdown-timer span.changing {
    animation: number-change 0.3s ease;
}

@keyframes number-change {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); color: #ff4444; }
    100% { transform: scale(1); }
}

/* Urgency Effects */
.countdown-timer.urgent {
    animation: urgent-pulse 1s infinite;
}

@keyframes urgent-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .urgency-banner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 12px 16px;
    }
    
    .countdown-timer {
        justify-content: center;
        gap: 6px;
    }
    
    .countdown-timer .badge {
        padding: 6px 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .countdown-timer {
        gap: 4px;
    }
    
    .countdown-timer .badge {
        padding: 4px 8px;
        font-size: 11px;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .urgency-banner {
        border: 3px solid #000000;
        background: #FFFFFF;
        color: #000000;
    }
    
    .countdown-timer .badge {
        background: #000000;
        color: #FFFFFF;
        border: 2px solid #FFFFFF;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .urgency-banner,
    .countdown-timer .badge,
    .countdown-timer span {
        animation: none;
        transition: none;
    }
    
    .urgency-banner::before {
        animation: none;
    }
}
