﻿/* Premium Standalone Promo Banner Component Styles (Self-contained, no :root variables) */

.promo-banner {
    width: 100%;
    height: 100px;
   /* padding: 5px 0;*/
    background-color: transparent;
    position: relative;
    overflow: hidden;
    z-index: 1000;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.promo-banner--hidden {
    height: 0 !important;
    opacity: 0 !important;
    border-bottom: none !important;
    pointer-events: none;
}

.promo-banner__container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Banner Clickable Link wrapper */
.promo-banner__link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    z-index: 10;
}

.promo-banner__bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.promo-banner__link:hover .promo-banner__bg-img {
    transform: scale(1.02);
}

/* Smooth white overlay on the left to perfectly blend in with light images and shield text */
.promo-banner__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
            to right,
            rgba(248, 250, 252, 0.92) 0%,
            rgba(248, 250, 252, 0.7) 15%,
            rgba(248, 250, 252, 0) 40%,
            rgba(248, 250, 252, 0) 70%,
            rgba(248, 250, 252, 0.3) 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* ----------------------------------------------------
   Foreground Banner Content
---------------------------------------------------- */
.promo-banner__content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Align timer to the left side in RTL */
    height: 100%;
    pointer-events: none;
}

/* ----------------------------------------------------
   Minimal Timer (Original Amber/Yellow Theme)
---------------------------------------------------- */
.promo-timer-card {
    display: flex;
    align-items: center;
    pointer-events: auto;
}

/* Countdown Clock Element */
.promo-timer-card__countdown {
    display: flex;
    align-items: center;
    gap: 6px;
    direction: ltr; /* Timers and numbers should always be read left-to-right */
}

.timer__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.85); /* Dark slate gray box like Quera */
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    min-width: 46px;
    height: 48px;
    padding: 4px;
    gap: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.timer__container:hover {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.timer__value {
    font-family: 'Orbitron', -apple-system, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffb703; /* Restored original radiant amber gold */
    text-shadow: 0 0 8px rgba(255, 183, 3, 0.3);
    min-width: 24px;
    text-align: center;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.timer__caption {
    font-size: 9px;
    color: #cbd5e1; /* Restored original clean light grey */
    font-weight: 400;
    line-height: 1;
}

.timer-separator {
    color: #cbd5e1; /* Restored original clean light grey */
    font-family: 'Orbitron', -apple-system, sans-serif;
    font-size: 16px;
    font-weight: 700;
    opacity: 0.8;
    animation: blink 1.2s infinite step-end;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* ----------------------------------------------------
   Responsive Styles
---------------------------------------------------- */

/* Large Tablets & Small Laptops */
@media (max-width: 1024px) {
    .promo-banner__content {
        padding: 0 30px;
    }
}

/* Tablets & Mobile Screens (Timer flows underneath the banner image) */
@media (max-width: 768px) {
    .promo-banner {
        height: auto !important;
    }

    .promo-banner__container {
        display: flex;
        flex-direction: column;
        height: auto !important;
    }

    .promo-banner__bg-img {
        position: relative !important;
        width: 100%;
        height: 100px !important;
        object-fit: cover;
        z-index: 1;
    }

    .promo-banner__overlay {
        height: 100px !important; /* Limit overlay to the image height only */
        background: rgba(255, 255, 255, 0.1) !important; /* Extremely soft light overlay */
    }

    .promo-banner__content {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100%;
        height: auto !important;
        padding: 10px 16px !important;
        background: #f8fafc !important; /* Smooth white / clean light background under the banner image */
        display: flex !important;
        justify-content: center !important; /* Center the timer below the banner */
        border-top: 1px solid #e2e8f0;
        border-bottom: 1px solid #e2e8f0;
    }

    .timer__container {
        background: rgba(15, 23, 42, 0.85) !important; /* Kept original dark container for maximum visibility */
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
    }
}

/* Extra Mobile Optimizations */
@media (max-width: 480px) {
    .promo-banner__bg-img {
        height: 80px !important; /* Slightly shorter banner on small mobile screens */
    }

    .promo-banner__overlay {
        height: 80px !important;
    }

    .promo-banner__content {
        padding: 8px 12px !important;
    }

    .promo-timer-card__countdown {
        gap: 4px;
    }

    .timer__container {
        min-width: 38px;
        height: 38px;
        border-radius: 3px;
        gap: 1px;
        padding: 2px;
    }

    .timer__value {
        font-size: 14px;
    }

    .timer__caption {
        font-size: 8px;
    }

    .timer-separator {
        font-size: 12px;
        margin: 0 2px;
    }
}
