/* QBoosts base theme: primary buttons, logo, navbar capsule and checkout actions.
   Loaded on every public page (shared/_aura_bg.html). Colours come from the palette tokens in
   aura-bg.css (magenta-violet accent); seasonal themes (see seasonal_themes/) layer on top.
   `html:root` keeps these rules at the same strength they had when they were seasonal-only. */

:root {
    /* Primary buttons: magenta-violet gradient with white text (theme accent, aura-bg.css) */
    --btn-fg: #ffffff;
    --btn-bg: linear-gradient(135deg, #c523df 0%, #a315c8 100%);
    --btn-hover: linear-gradient(135deg, #d23cec 0%, #b322d8 100%);
    --btn-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(255, 255, 255, .07),
                     0 1px 2px rgba(0, 0, 0, .4), 0 8px 20px -8px rgba(197, 35, 223, .55);
    --btn-shadow-hover: inset 0 1px 0 rgba(255, 255, 255, .26), inset 0 0 0 1px rgba(255, 255, 255, .1),
                           0 2px 4px rgba(0, 0, 0, .4), 0 12px 26px -8px rgba(197, 35, 223, .65);
}

/* ── Primary actions ──
   Rounded rectangles rather than pills, a fine inner highlight and a tight shadow:
   reads as a crisp modern button, not a toy. */
html:root :is(.v2-btn-primary, .tc-buy-btn, .nav-cta, #mobile-menu .mm-cta, .buy-now-btn:not(:disabled), #mob-buy-btn, .bcalc-pick-btn, .co-btn-submit, .dp-btn) {
    background: var(--btn-bg);
    color: var(--btn-fg);
    border-radius: 10px;
    box-shadow: var(--btn-shadow);
    letter-spacing: -.005em;
    transition: transform .2s var(--ease-out, ease), box-shadow .2s ease, background .2s ease;
}
/* The Q logo is a cutout, not a square tile: no frame, just a warm glow */
html:root body :is(.nav-logo-img, .sf-logo img, .inv-brand-mark) {
    border-radius: 0; box-shadow: none; object-fit: contain; background: none;
    filter: drop-shadow(0 2px 8px rgba(197, 35, 223, .35));
}

/* Logo + "Boosts" read as one word: the mark is the Z, the text follows straight on in white */
html:root body .nav-logo--mark { gap: 1px; }
html:root body .nav-logo--mark .nav-logo-img { margin-right: -3px; }   /* the art has a little side padding */
html:root body .nav-logo--mark .nav-brand .accent { color: var(--aura-ink); }

html:root body .sf-logo--mark { gap: 1px; }
html:root body .sf-logo--mark img { margin-right: -3px; }

/* Checkout and invoice actions: drop the old teal border, the shine sweep and the pulsing glow */
html:root .co-btn-submit { border-color: transparent; animation: none; letter-spacing: .01em; }
html:root .co-btn-submit::after { content: none; }
html:root .co-btn-submit:disabled { background: var(--btn-bg); box-shadow: none; }
html:root .dp-btn:disabled { background: var(--btn-bg); }

/* The currency switch sits beside Shop: same corner shape, warm text instead of old mint */
html:root body .nav-cur { border-radius: 10px; }
html:root body #cur-symbol { color: var(--aura-ink) !important; }
html:root :is(.v2-btn-primary, .tc-buy-btn, .nav-cta, #mobile-menu .mm-cta, .buy-now-btn, #mob-buy-btn, .bcalc-pick-btn, .co-btn-submit, .dp-btn):focus-visible {
    outline: 2px solid var(--aura-teal);
    outline-offset: 2px;
}
@media (hover: hover) {
    html:root :is(.v2-btn-primary, .tc-buy-btn, .nav-cta, #mobile-menu .mm-cta, .buy-now-btn:not(:disabled), #mob-buy-btn, .bcalc-pick-btn, .co-btn-submit:not(:disabled), .dp-btn:not(:disabled)):hover,
    html:root .new-product-card:hover .tc-buy-btn {
        background: var(--btn-hover);
        box-shadow: var(--btn-shadow-hover);
        transform: translateY(-1px);
    }
}

/* ── Navbar: a clean flat bar ──
   Logo left, plain text links centred, actions right. No capsule or sliding pill around
   the links; the current page gets a short accent underline. The bar is transparent at
   the top and turns into a solid strip once scrolled (navbar-v2.css .nav-scrolled). */
html:root body .nav-links {
    background: none; border: 0; box-shadow: none; padding: 0;
    gap: 4px;
}
html:root body #nav-backdrop { display: none; }
html:root body .nav-container { color: var(--aura-ink); }   /* replaces the old mint text-[#beffe2] */
html:root body .nav-item {
    padding: 8px 14px;
    border-radius: 8px;
    background: none;
    font-size: .94rem; font-weight: 500;
    color: var(--aura-muted);
}
html:root body .nav-item:hover { color: var(--aura-ink); background: none; }
html:root body .nav-item.active { color: var(--aura-ink); background: none; }
html:root body .nav-item::after {
    display: block;
    left: 50%; right: auto; bottom: 0; width: 18px; margin-left: -9px; height: 2px;
    background: var(--aura-teal);
}
html:root body .nav-item.active::after { transform: scaleX(1); opacity: 1; }
/* Hide/show is a solid slide: no opacity fade, which left the bar half see-through mid-slide */
html:root body .nav-container { transition: transform .35s var(--ease-out), background-color .1s linear, border-color .1s linear; }
html:root body .nav-container.nav-hidden { opacity: 1; }
html:root body .nav-container.nav-scrolled {
    /* Fully opaque: at .97 the headline ghosted through the bar */
    background: rgb(var(--aura-panel-deep-rgb));
    border-bottom-color: rgba(255, 255, 255, .06);
    box-shadow: none;
}

/* Right side: a dark secondary button (currency), a thin divider, then the primary Shop button */
html:root body .nav-right { gap: 12px; }
html:root body .nav-cur {
    height: 40px; padding: 0 14px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
}
html:root body .nav-cur:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .14); }
html:root body #currency-wrap { padding-right: 12px; border-right: 1px solid rgba(255, 255, 255, .1); }
html:root body .nav-cta { height: 40px; padding: 0 18px; font-size: .9rem; }
html:root body #mobile-menu-btn { border-radius: 10px; background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .08); }
/* With the Q logo the text is only "Boosts", short enough to keep on the narrowest phones */
@media (max-width: 380px) {
    html:root body .nav-logo--mark .nav-brand { display: inline; font-size: 1rem; }
}
@media (max-width: 767px) {
    html:root body .nav-right { gap: 8px; }
    html:root body #currency-wrap { padding-right: 0; border-right: 0; }
    html:root body :is(.nav-cur, .nav-cta) { height: 38px; }
}

/* Phone menu: same dark surface, accent-tinted active link */
html:root body #mobile-menu {
    background: rgba(18, 14, 24, .96) !important;
    border-color: rgba(255, 255, 255, .08) !important;
}
html:root body #mobile-menu .mm-link.active { background: rgba(var(--aura-teal-rgb), .12); color: var(--aura-ink); }
html:root body #mobile-menu .mm-link.active i { color: var(--aura-teal); }

/* Footer wordmark: a faint accent tint */
html:root .sf-word { color: rgba(var(--aura-teal-rgb), .05); }
