/* =========================================================
   Bumblequill seasonal layer (assets/js/seasons.js + seasons-config.js)
   Everything themed sits under html[data-season]; with no theme the site is unchanged.
   Decorations never take clicks or taps (pointer-events: none).
   ========================================================= */

/* ---------- "New on the shelves" (all year) ---------- */
.news-pill {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
  padding: 7px 14px 7px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(17, 17, 19, 0.55);
  color: var(--cream);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.news-pill:hover { border-color: var(--honey); background: rgba(246, 223, 145, 0.08); }
.news-pill__tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--honey);
  color: var(--midnight);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.hero__inner .news-pill + .eyebrow { display: flex; }

/* ---------- Winter light on the background ---------- */
[data-season="christmas"] .bq-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 42% at 50% -6%, rgba(220, 232, 245, 0.10), transparent 70%),
    radial-gradient(38% 30% at 86% 14%, rgba(246, 223, 145, 0.07), transparent 70%);
}

/* ---------- Snowfall ---------- */
/* z-index keeps it above the silk canvas, which silk.js adds after this one */
.season-snow { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }

/* ---------- String lights ---------- */
.season-lights {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 24px;
  overflow: hidden;
  pointer-events: none;
  /* the wire: one gentle dip every 64px, lined up with the bulbs */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='24'%3E%3Cpath d='M0 2 Q32 16 64 2' fill='none' stroke='%23D5AD58' stroke-opacity='.55' stroke-width='1'/%3E%3C/svg%3E") repeat-x 0 0 / 64px 24px;
}
.season-bulb {
  position: absolute;
  top: 9px;
  width: 6px;
  height: 9px;
  margin-left: -3px;
  border-radius: 45% 45% 50% 50% / 40% 40% 60% 60%;
  background: var(--bulb, #F6DF91);
  box-shadow: 0 0 6px 1px var(--bulb, #F6DF91), 0 0 14px 2px color-mix(in srgb, var(--bulb, #F6DF91) 45%, transparent);
  opacity: 0.85;
  animation: bqTwinkle 4.2s ease-in-out infinite;
}
.season-bulb::before { /* little gold cap */
  content: "";
  position: absolute;
  left: 1px;
  top: -2px;
  width: 4px;
  height: 3px;
  border-radius: 1px;
  background: #b08d45;
}
.season-bulb--1 { --bulb: var(--season-bulb-1, #F6DF91); }
.season-bulb--2 { --bulb: var(--season-bulb-2, #D5AD58); }
.season-bulb--3 { --bulb: var(--season-bulb-3, #FFF5DB); }
.season-bulb--4 { --bulb: var(--season-bulb-4, #E9B8A8); }
.season-bulb--5 { --bulb: var(--season-bulb-5, #B9D3B0); }
@keyframes bqTwinkle {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
.site-header.menu-open .season-lights { display: none; }

/* ---------- Logo star and sprig ---------- */
[data-season] .site-header .brand__mark { position: relative; }
.season-logo {
  position: absolute;
  max-width: none;
  overflow: visible;
  pointer-events: none;
}
.season-logo--star { right: -6px; top: -7px; width: 16px; height: 16px; }
.season-logo--sprig { left: -10px; bottom: -8px; width: 22px; height: 22px; }
.season-logo__sprig { stroke: var(--season-evergreen, #6E8F72); }
.season-logo__berry { fill: #D5AD58; }
.season-logo__star { fill: #FFF1C2; filter: drop-shadow(0 0 3px rgba(246, 223, 145, 0.8)); }

/* ---------- Hanging ornaments in the homepage hero ---------- */
[data-season] .hero > .container { position: relative; z-index: 1; }
.season-ornaments {
  position: absolute;
  top: 0;
  right: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  width: 300px;
  height: 320px;
  pointer-events: none;
  z-index: 0;
}
.season-hang {
  position: absolute;
  top: 0;
  transform-origin: 30px 0;
  animation: bqSway 7s ease-in-out infinite;
  filter: drop-shadow(0 6px 18px rgba(246, 223, 145, 0.18));
}
.season-hang svg { display: block; overflow: visible; }
.season-hang--a { right: 210px; animation-duration: 8s; }
.season-hang--star { right: 140px; animation-duration: 6.5s; animation-delay: -2s; }
.season-hang--b { right: 70px; animation-duration: 7.5s; animation-delay: -4s; }
.season-hang--c { right: 0; animation-duration: 9s; animation-delay: -1s; }
@keyframes bqSway {
  0%, 100% { transform: rotate(-2.2deg); }
  50% { transform: rotate(2.2deg); }
}
@media (max-width: 1100px) { .season-ornaments { transform: scale(0.8); transform-origin: top right; } }
@media (max-width: 900px) { .season-ornaments { display: none; } }

/* ---------- Star marks on featured sections ---------- */
[data-season] .season-mark .section-head .eyebrow::before {
  width: 12px;
  height: 12px;
  opacity: 1;
  background: var(--honey);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* ---------- Winter shelf ---------- */
.season-shelf { padding-top: clamp(24px, 4vw, 48px); }
.season-callout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  padding: clamp(40px, 5vw, 56px) clamp(20px, 3vw, 40px) clamp(20px, 3vw, 36px);
  margin-bottom: clamp(28px, 4vw, 44px);
  overflow: hidden;
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(220, 232, 245, 0.06), transparent 60%),
    var(--surface);
}
.season-garland {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 52px;
  pointer-events: none;
}
.season-callout__cover img { width: 100%; height: auto; border-radius: var(--r-sm); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7); }
.season-callout__body h3 { margin: 6px 0 10px; font-size: clamp(24px, 2.6vw, 32px); }
.season-callout__body p { margin: 0 0 10px; color: var(--muted); }
.season-callout__feat { font-size: 15px; }
.season-callout__price { color: var(--cream) !important; font-size: 17px; }
.season-callout__price strong { font-family: var(--font-display); font-size: 26px; font-weight: 500; color: var(--honey); }
.season-callout__price span { color: var(--faint); font-size: 14px; }
.season-callout .btn { margin-top: 6px; }
@media (max-width: 640px) {
  .season-callout { grid-template-columns: 1fr; }
  .season-callout__cover { max-width: 200px; }
}

/* ---------- Footer note and switch ---------- */
.season-foot { display: inline-flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.season-toggle {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.season-toggle:hover { color: var(--honey); }

/* ---------- Library "New" chip ---------- */
.chip--new::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--honey);
  vertical-align: 1px;
}

/* ---------- Still mode ----------
   seasons.js adds .season-still when the visitor's device asks for reduced motion
   (unless the address has ?motion, for previews) or when they press "Turn off snowfall". */
.season-still .season-bulb,
.season-still .season-hang { animation: none; }
.season-still .season-bulb { opacity: 0.85; }
