/* ========================================
   PRE HEADER STYLES
   ======================================== */

.pre-header {
    background: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 25%, #45B7D1 50%, #96CEB4 75%, #FFEAA7 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease-in-out infinite;
    color: #FFFFFF;
    padding: 5px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.pre-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.1) 75%, transparent 75%, transparent);
    background-size: 20px 20px;
    animation: moveStripes 2s linear infinite;
    opacity: 0.3;
}

.pre-header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    text-align: center;
    position: relative;
    z-index: 2;
    align-items: center;
    height: 50px;
}

.offer-icon {
    font-size: 1.25rem;
    animation: pulse 2s infinite;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.offer-text {
    font-weight: 500;
    font-size: 0.875rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    white-space: nowrap;
}

/* Countdown Timer Styles */
.countdown-timer {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(0,0,0,0.5);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.countdown-item {
    /* display: flex; */
    flex-direction: column;
    align-items: center;
    min-width: 40px;
}

.countdown-number {
    font-size: 1.125rem;
    font-weight: 700;
    font-family: 'Poppins', 'Georgia', 'Times New Roman', serif;
    color: #FFFFFF;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    animation: countdownPulse 1s ease-in-out infinite;
    display: inline-block;
    min-width: 1.2em;
    text-align: center;
}

.countdown-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.countdown-separator {
    font-size: 1.125rem;
    font-weight: 700;
    color: #FFFFFF;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    animation: separatorBlink 1s ease-in-out infinite;
    margin-top: -8px;
}

/* Pre-header Animations */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes moveStripes {
    0% { transform: translateX(0); }
    100% { transform: translateX(20px); }
}

@keyframes countdownPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes separatorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ========================================
   RESPONSIVE DESIGN FOR PRE-HEADER
   ======================================== */

/* Tablet Styles */
@media (max-width: 1024px) {
    .pre-header-content {
        gap: 0.75rem;
    }
    
    .offer-text {
        font-size: 0.8rem;
    }
    
    .countdown-timer {
        padding: 0.4rem 0.8rem;
    }
    
    .countdown-number {
        font-size: 1rem;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .pre-header {
        padding: 0.75rem 0;
    }
    
    .pre-header-content {
        /* flex-direction: column; */
        gap: 0.5rem;
    }
    
    .offer-text {
        font-size: 0.75rem;
        white-space: normal;
        line-height: 1.3;
        max-width: 280px;
    }
    
    .countdown-timer {
        padding: 0.5rem 0.75rem;
        gap: 0.2rem;
    }
    
    .countdown-item {
        min-width: 35px;
    }
    
    .countdown-number {
        font-size: 0.9rem;
    }
    
    .countdown-label {
        font-size: 0.7rem;
    }
    
    .countdown-separator {
        font-size: 0.9rem;
        margin-top: -6px;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .pre-header {
        padding: 0.5rem 0;
        height: 90px;
    }
    
    .offer-icon {
        font-size: 1rem;
    }
    
    .offer-text {
        font-size: 0.7rem;
        max-width: 250px;
    }
    
    .countdown-timer {
        padding: 0.4rem 0.6rem;
        gap: 0.15rem;
    }
    
    .countdown-item {
        min-width: 30px;
    }
    
    .countdown-number {
        font-size: 0.8rem;
    }
    
    .countdown-label {
        font-size: 0.65rem;
    }
    
    .countdown-separator {
        font-size: 0.8rem;
        margin-top: -5px;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .pre-header-content {
        flex-direction: row;
        gap: 0.75rem;
    }
    
   
    
    .countdown-timer {
        padding: 0.4rem 0.8rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .countdown-timer {
        border-width: 0.5px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .pre-header {
        animation: none;
    }
    
    .pre-header::before {
        animation: none;
    }
    
    .countdown-number {
        animation: none;
    }
    
    .countdown-separator {
        animation: none;
    }
    
    .offer-icon {
        animation: none;
    }
}
