/* flipper_service — the theme of the arcade front door (`layouts/shop.php` only).
   Loaded after public/bootstrap6/css/bootstrap.min.css and nowhere else: the panels and the
   other public pages keep public/css/app.css. Views carry classes, never style attributes —
   the same rule app.css states for the rest of the site.

   What lives here: the two brand tokens, the gradients and glow that make a dark room out of a
   dark theme, and one animation. Everything structural (grid, cards, buttons, tabs, carousel) is
   Bootstrap's, so upgrading the bundle does not touch this file. */

/* ---------------------------------------------------------------- the palette
   Bootstrap 6 derives every surface, badge and button from `--bs-*-base` in oklch, so a re-brand
   is two values: the CRT cyan (primary: buttons, links, active tabs) and the marquee magenta
   (accent: the play/pause affordance, the CTA band, the card art). Overridden at :root on
   purpose — the derived tokens are computed there, so a narrower scope would not move them. */
:root {
    --bs-primary-base: oklch(78% .13 210);
    --bs-accent-base: oklch(65% .22 320);

    /* Local tokens for the art below, so the numbers appear once. */
    --shop-night: oklch(21% .04 265);
    --shop-night-deep: oklch(15% .05 265);
    --shop-neon: var(--bs-primary-base);
    --shop-marquee: var(--bs-accent-base);
    --shop-hairline: color-mix(in oklch, var(--shop-neon) 24%, transparent);
}

.shop-body {
    background-color: var(--shop-night-deep);
    background-image:
        radial-gradient(60rem 32rem at 88% -8rem, color-mix(in oklch, var(--shop-neon) 22%, transparent), transparent 62%),
        radial-gradient(48rem 28rem at -6rem 22rem, color-mix(in oklch, var(--shop-marquee) 16%, transparent), transparent 60%);
    background-attachment: fixed;
}

/* ------------------------------------------------------------------ the wordmark */
.shop-wordmark {
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--bs-body-color);
}
.shop-wordmark b { color: var(--shop-neon); font-weight: 700; }
.shop-wordmark::after {
    content: "_";
    color: var(--shop-marquee);
}

/* -------------------------------------------------------------------------- nav
   Translucent over the hero, with a hairline so the nav never floats unattached. */
.shop-nav {
    backdrop-filter: blur(.6rem);
    background-color: color-mix(in oklch, var(--shop-night) 72%, transparent);
    border-block-end: 1px solid var(--shop-hairline);
}
.shop-nav .nav-link.active { color: var(--shop-neon); }
/* The toggler icon is `background-color: currentcolor` behind a mask, so its colour is the
   toggler's `color` — the neon, so the only control on a phone screen is the one that glows. */
.shop-nav .navbar-toggler { color: var(--shop-neon); border-color: var(--shop-hairline); }

/* ------------------------------------------------------------------------- hero
   The carousel is Bootstrap's (scroll-snap in 6, faded with .carousel-fade); what is added here
   is the room it sits in: a taller stage, a floor line, and the neon behind the headline. */
.shop-hero { position: relative; overflow: hidden; }
.shop-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        to bottom,
        color-mix(in oklch, var(--bs-body-color) 4%, transparent) 0 1px,
        transparent 1px 4px
    );
    pointer-events: none;
}
.shop-hero-item { min-block-size: clamp(20rem, 42vh, 27rem); }

/* The control bar sits in the flow, under the slide and above the indicators: Bootstrap 6 gives
   the carousel no `.carousel-control-prev/next` positioning to hang on, and a bar that is part of
   the layout cannot overlap the headline on a narrow screen. */
.shop-hero-controls { justify-content: center; padding-block: var(--bs-spacer-5) 0; }
.shop-hero h1 { text-wrap: balance; text-shadow: 0 0 2.5rem color-mix(in oklch, var(--shop-neon) 45%, transparent); }
.shop-hero-art {
    inline-size: 100%;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--shop-hairline);
    border-radius: var(--bs-radius-7);
    background-image:
        radial-gradient(70% 55% at 50% 12%, color-mix(in oklch, var(--shop-neon) 30%, transparent), transparent 70%),
        linear-gradient(160deg, var(--shop-night), var(--shop-night-deep));
    display: grid;
    place-items: center;
}
.shop-hero-art > svg { inline-size: min(60%, 12rem); block-size: auto; color: var(--shop-neon); }

/* the strip of factual badges under the hero */
.shop-strip { border-block: 1px solid var(--bs-border-color); }

/* ------------------------------------------------------------------- the cards
   Icon in a lit well, so a card reads as a product tile before its text is read. */
.shop-tile-art {
    inline-size: 3.25rem;
    block-size: 3.25rem;
    display: grid;
    place-items: center;
    border-radius: var(--bs-radius-5);
    border: 1px solid var(--shop-hairline);
    background-image: linear-gradient(150deg, color-mix(in oklch, var(--shop-neon) 22%, transparent), transparent 70%);
}
.shop-tile-art > svg { inline-size: 1.75rem; block-size: 1.75rem; color: var(--shop-neon); }
.shop-icon { inline-size: 1.15em; block-size: 1.15em; flex: 0 0 auto; }

/* the machine-channel code sample inside the tabs */
.shop-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .9em;
    color: var(--shop-neon);
    background-color: var(--shop-night-deep);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-radius-3);
    padding: .2em .45em;
    display: inline-block;
}

/* the closing band: a marquee sheen, motion only for those who asked for it */
.shop-marquee {
    border: 1px solid var(--shop-hairline);
    border-radius: var(--bs-radius-7);
    background-image:
        radial-gradient(40rem 12rem at 15% -2rem, color-mix(in oklch, var(--shop-marquee) 26%, transparent), transparent 70%),
        linear-gradient(120deg, var(--shop-night), var(--shop-night-deep));
}
@media (prefers-reduced-motion: no-preference) {
    .shop-marquee { position: relative; overflow: hidden; }
    .shop-marquee::after {
        content: "";
        position: absolute;
        inset-block: 0;
        inline-size: 30%;
        inline-start: -35%;
        background-image: linear-gradient(90deg, transparent, color-mix(in oklch, var(--shop-neon) 18%, transparent), transparent);
        animation: shop-marquee 7s linear infinite;
    }
    @keyframes shop-marquee { to { inline-start: 105%; } }
}

.shop-foot { border-block-start: 1px solid var(--bs-border-color); }

/* the SVG sprite container (`partials/shop-icons.php`): symbols are referenced by id, the sheet
   itself must not take part in the layout — a style attribute in a view is not welcome. */
.shop-sprite { display: none; }
