/* ===== Christmas theme: berry red and gold on deep pine =====
   Loads after storefront.css (see config/themes.php). The variable names say "violet" because
   that's the everyday brand colour; they mean "accent". Status colours (green, amber, error red)
   and filament swatches are deliberately left alone.

   Contrast: white on the accent is 4.1:1 and the accent on the background 4.5:1 (the everyday
   violet manages 3.9:1 and 5.0:1). */
:root[data-season="christmas"] {
    --bg:          #0c1512;  /* deep pine */
    --bg-rgb:      12, 21, 18;
    --bg-alt:      #060c0a;
    --violet:      #e04358;  /* berry red */
    --violet-rgb:  224, 67, 88;
    --violet-deep: #8e1230;
    --violet-lite: #f5cd7a;  /* candle gold */
}

/* The gold hover background is too pale for a white icon. */
:root[data-season="christmas"] .tc-quick-add:hover { color: var(--bg); }

/* A still scatter of snow in place of the grid. */
:root[data-season="christmas"] .bg-grid {
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.16) 1.2px, transparent 1.8px),
        radial-gradient(circle, rgba(255, 255, 255, 0.09) 1px, transparent 1.6px),
        radial-gradient(circle, rgba(245, 205, 122, 0.12) 1px, transparent 1.6px);
    background-size: 90px 90px, 130px 130px, 170px 170px;
    background-position: 12px 20px, 70px 95px, 40px 130px;
}

/* A little more warmth at the top of the page. */
:root[data-season="christmas"] .bg-glow {
    background: radial-gradient(ellipse, rgba(var(--violet-rgb), 0.2) 0%, transparent 70%);
}

/* ----- Decoration ----- */

/* A garland hanging from the navbar. z-index -1 keeps it behind the mobile search drop-down, which
   opens in the same spot, and it never takes a click. Page content starts at least 104px down, so at
   30px deep it covers nothing at the top of a page; further down it would hang over what's being
   read, so it fades out (storefront.js adds .scrolled after 30px). */
:root[data-season="christmas"] .tc-navbar::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 30px;
    z-index: -1;
    pointer-events: none;
    background: url('../../img/themes/christmas/garland.svg') repeat-x top center / 160px 30px;
    transition: opacity 0.25s;
}
:root[data-season="christmas"] .tc-navbar.scrolled::after { opacity: 0; }

/* A Santa hat on the nav logo, laid over the picture so the logo file stays as it is.
   The logo is 38px tall and centred, so the top is measured from the middle. */
:root[data-season="christmas"] .tc-navbar .navbar-brand { position: relative; }
:root[data-season="christmas"] .tc-navbar .navbar-brand::before {
    content: '';
    position: absolute;
    left: -9px;
    top: calc(50% - 29px);
    width: 27px;
    height: 22px;
    transform: rotate(-22deg);
    pointer-events: none;
    background: url('../../img/themes/christmas/santa-hat.svg') no-repeat center / contain;
}

/* The footer logo has its own dark backing, which shows against the pine; round it off. */
:root[data-season="christmas"] .footer-logo { border-radius: 8px; }
