/* =============================================================================
   header.css
   Styles for the top announcement strip and navbar.
   Loaded via header.blade.php.

   Contents:
     1. Top strip — announcement bar (fixed at top)
     2. Badge — "LIVE DEALS" pill
     3. Strip text
     4. Shop Now button
     5. Icon buttons (Google Play, Order Tracking)
     6. Navbar body offset
     7. Responsive — tablet, mobile, small screens
============================================================================= */


/* -----------------------------------------------------------------------------
   1. TOP STRIP
   Fixed green bar at the very top of every page.
   Background color is overridden per-deal by the deals rotator JS.
----------------------------------------------------------------------------- */
.top-strip {
    width: 100%;
    background: var(--brand-dark);
    color: #ffffff;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    column-gap: 2rem;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
}

/* Left section: badge + text + mobile button */
.top-strip-left {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    column-gap: 28px;
}

/* Right section: desktop button + icon links */
.top-strip-actions {
    display: flex;
    align-items: center;
    column-gap: 10px;
    flex-shrink: 0;
}

.top-strip-right {
    display: flex;
    align-items: center;
    column-gap: 8px;
}


/* -----------------------------------------------------------------------------
   2. BADGE — "LIVE DEALS" pill
----------------------------------------------------------------------------- */
.badge1 {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    border-radius: 999px;
    color: #fffbfb;
    background: rgba(208, 66, 66, 0.12);
    border: 1px solid #000000;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

/* Animated dot inside the badge */
.badge-dot {
    width: 0.3rem;
    height: 0.3rem;
    margin: 0.1rem;
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--brand-text-mid);
    background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent-hot));
}


/* -----------------------------------------------------------------------------
   3. STRIP TEXT — deal headline
----------------------------------------------------------------------------- */
.top-strip-text {
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    white-space: normal;
    word-wrap: break-word;
    transition: opacity 0.35s ease;
}


/* -----------------------------------------------------------------------------
   4. SHOP NOW BUTTON
   Pill-shaped CTA with a slide-in background on hover.
----------------------------------------------------------------------------- */
.shop-now-btn {
    position: relative;
    overflow: hidden;
    padding: 7px 18px;
    border-radius: 999px;
    border: none;
    background: #ffffff;
    color: var(--brand-dark);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 0 0 1px var(--brand-bg), 0 6px 14px var(--brand-text-mid);
    transition: color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    z-index: 1;
}

/* Slide-in background layer on hover */
.shop-now-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
    z-index: 0;
}

/* Keep text/icon above the background layer */
.shop-now-btn span,
.shop-now-btn i {
    position: relative;
    z-index: 1;
}

.shop-now-btn:hover::before { transform: scaleX(1); }
.shop-now-btn:hover {
    color: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}
.shop-now-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

/* Blink animation for special deals */
.blink-btn {
    animation: blinkGlow 1.2s infinite;
}

@keyframes blinkGlow {
    0%   { outline: 0   solid rgba(245, 180, 0, 0.7); outline-offset: 0; }
    70%  { outline: 6px solid rgba(245, 180, 0, 0);   outline-offset: 6px; }
    100% { outline: 0   solid rgba(245, 180, 0, 0);   outline-offset: 0; }
}

/* Desktop button hidden on mobile (shown via media query below) */
.desktop-view-top-button { display: none !important; }


/* -----------------------------------------------------------------------------
   5. ICON BUTTONS (Google Play + Order Tracking)
   Circular white icon links in the top-strip right section.
----------------------------------------------------------------------------- */
.top-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    color: var(--brand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease,
                background 0.18s ease, color 0.18s ease;
    box-shadow: 0 0 0 1px rgba(15, 107, 59, 0.1),
                0 4px 10px rgba(0, 0, 0, 0.25);
}

.top-icon:hover {
    transform: translateY(-1px) scale(1.05);
    background: var(--brand-tint-lighter);
    color: var(--brand-primary-hover);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4);
}


/* -----------------------------------------------------------------------------
   6. NAVBAR BODY OFFSET
   Because top-strip is position:fixed, the navbar needs top padding.
   .page-content pushes the page body below the strip height.
----------------------------------------------------------------------------- */
.page-content {
    padding-top: 48px;
}


/* -----------------------------------------------------------------------------
   7. RESPONSIVE
----------------------------------------------------------------------------- */

/* Tablet (≤ 992px) */
@media (max-width: 992px) {
    .top-strip       { padding: 8px 14px; }
    .top-strip-text  { font-size: 12px; }
    .shop-now-btn    { padding: 7px 16px; font-size: 11.5px; }
    .top-icon        { width: 30px; height: 30px; font-size: 13px; }
}

/* Mobile (≤ 640px) — two-row layout */
@media (max-width: 640px) {
    .desktop-view-top-button { display: block !important; }
    .mobile-view-top-button  { display: none  !important; }

    .top-strip {
        flex-direction: column;
        align-items: stretch;
        row-gap: 6px;
        padding: 8px 12px;
    }

    /* Row 1: badge + text centered */
    .top-strip-left {
        width: 100%;
        justify-content: center;
    }

    /* Hide badge on mobile to save space */
    .badge1 { display: none; }

    .top-strip-text { font-size: 12px; }

    /* Row 2: button + icons centered */
    .top-strip-actions {
        width: 100%;
        justify-content: center;
        column-gap: 10px;
    }

    .shop-now-btn { padding: 6px 16px; font-size: 11.5px; }
    .top-icon     { width: 30px; height: 30px; font-size: 13px; }

    /* Extra padding because strip is 2 rows tall on mobile */
    .page-content { padding-top: 71px; }
}

/* Very small screens (≤ 400px) */
@media (max-width: 400px) {
    .shop-now-btn { padding: 6px 10px; }
}