/* =====================================================================
   YardSaleHQ: Halloween decor (theme id "halloween", themes.json's
   "decor":"halloween" hook -- see src/seasonal-theme.js).

   Adapted from an earlier standalone Halloween mockup package
   (seasonal-theme/halloween-theme.{css,js} + pumpkin-pin.svg). That
   package's own date-activation JS, its own top banner, and its DOM-
   scanned pumpkin pin overlay are gone -- all three are now handled
   generically by the seasonal theme engine (activation: themes.json;
   banner: src/seasonal-theme.js's shared banner; map pins: a real
   google.maps.Marker icon, set from themes.json's pinIcon field). What's
   left here is purely visual: color retinting, a small pumpkin accent on
   the wordmark, and a subtle corner cobweb/bats decoration.

   CSS-only, pointer-events:none on every decorative element, no
   animation (so there's nothing to gate under prefers-reduced-motion --
   the glows below are static box-shadows, not transitions/keyframes).
   Loaded unconditionally as a <link>; everything is scoped under
   html.theme-halloween so it's a no-op on every other theme/no theme.
   ===================================================================== */

html.theme-halloween {
  --hq-purple: #5B2A86;
  --hq-purple-lt: #b79be0;
  --hq-glow: 0 0 0 1px rgba(255,90,31,.45), 0 0 16px rgba(255,90,31,.45), 0 0 34px rgba(255,90,31,.18);
  --hq-glow-purple: 0 0 0 1px rgba(155,107,208,.45), 0 0 16px rgba(91,42,134,.75);
  --hq-pumpkin: url("/seasonal-theme/pumpkin-pin.svg");
  --hq-cobweb: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22%3E%3Cg fill=%22none%22 stroke=%22%23c9b6e8%22 stroke-width=%22.7%22 stroke-linecap=%22round%22%3E%3Cline x1=%22100%22 y1=%220%22 x2=%22100.0%22 y2=%22140.0%22/%3E%3Cline x1=%22100%22 y1=%220%22 x2=%2263.8%22 y2=%22135.2%22/%3E%3Cline x1=%22100%22 y1=%220%22 x2=%2230.0%22 y2=%22121.2%22/%3E%3Cline x1=%22100%22 y1=%220%22 x2=%221.0%22 y2=%2299.0%22/%3E%3Cline x1=%22100%22 y1=%220%22 x2=%22-21.2%22 y2=%2270.0%22/%3E%3Cline x1=%22100%22 y1=%220%22 x2=%22-35.2%22 y2=%2236.2%22/%3E%3Cline x1=%22100%22 y1=%220%22 x2=%22-40.0%22 y2=%220.0%22/%3E%3Cpath d=%22M100.0 14.0 Q98.4 12.1 96.4 13.5 Q95.3 11.3 93.0 12.1 Q92.6 9.7 90.1 9.9 Q90.3 7.4 87.9 7.0 Q88.7 4.7 86.5 3.6 Q87.9 1.6 86.0 0.0%22/%3E%3Cpath d=%22M100.0 28.0 Q96.8 24.2 92.8 27.0 Q90.7 22.6 86.0 24.2 Q85.1 19.4 80.2 19.8 Q80.6 14.9 75.8 14.0 Q77.4 9.3 73.0 7.2 Q75.8 3.2 72.0 0.0%22/%3E%3Cpath d=%22M100.0 44.0 Q95.0 38.1 88.6 42.5 Q85.3 35.5 78.0 38.1 Q76.6 30.5 68.9 31.1 Q69.5 23.4 61.9 22.0 Q64.5 14.7 57.5 11.4 Q61.9 5.0 56.0 0.0%22/%3E%3Cpath d=%22M100.0 62.0 Q92.9 53.6 84.0 59.9 Q79.3 50.0 69.0 53.7 Q67.1 42.9 56.2 43.8 Q57.1 32.9 46.3 31.0 Q50.0 20.7 40.1 16.0 Q46.4 7.1 38.0 0.0%22/%3E%3Cpath d=%22M100.0 82.0 Q90.7 70.9 78.8 79.2 Q72.6 66.1 59.0 71.0 Q56.4 56.8 42.0 58.0 Q43.2 43.6 29.0 41.0 Q33.9 27.4 20.8 21.2 Q29.1 9.3 18.0 0.0%22/%3E%3Cline x1=%2272%22 y1=%220%22 x2=%2272%22 y2=%2234%22 stroke-width=%22.5%22/%3E%3C/g%3E%3Cg fill=%22%23c9b6e8%22%3E%3Ccircle cx=%2272%22 cy=%2236%22 r=%222.4%22/%3E%3Ccircle cx=%2272%22 cy=%2232.6%22 r=%221.5%22/%3E%3C/g%3E%3C/svg%3E");
  --hq-bats: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 160 70%22%3E%3Cg fill=%22%239d79cf%22%3E%3Cuse href=%22%23b%22 transform=%22translate(4 30) scale(.55) rotate(-8)%22/%3E%3Cuse href=%22%23b%22 transform=%22translate(70 4) scale(.38) rotate(6)%22/%3E%3Cuse href=%22%23b%22 transform=%22translate(118 38) scale(.3) rotate(-4)%22/%3E%3C/g%3E%3Cdefs%3E%3Cpath id=%22b%22 d=%22M32 9c-1.2-2.6-2.6-4-2.6-4l.2 3.6C25 6 19 2 12 1c2.8 2.4 4 5.4 3.4 8.6C12 8 6.6 8.4 2 11.6c3.6.8 6.2 3.2 7 6.8 3.6-2 8.6-1.6 11.4 1.4 1.4-3 4.2-4.6 8-5.2L32 29l3.6-14.4c3.8.6 6.6 2.2 8 5.2 2.8-3 7.8-3.4 11.4-1.4.8-3.6 3.4-6 7-6.8-4.6-3.2-10-3.6-13.4-2C48 6.4 49.2 3.4 52 1c-7 1-13 5-17.6 7.6l.2-3.6S33.2 6.4 32 9z%22/%3E%3C/defs%3E%3C/svg%3E");
  /* site tokens retinted toward near-black purple; accent orange unchanged */
  --bg: #09070d;
  --bg2: #0e0a14;
  --bg3: #161020;
  --card: #120d19;
  --border: rgba(167,125,220,0.14);
}
html.theme-halloween body { background-color: var(--bg); }

/* ---------- Logo accents ---------- */
.theme-halloween .nav-logo { display: inline-flex; align-items: center; }
.theme-halloween .nav-logo::before {
  content: ""; width: 15px; height: 15px; margin-right: 7px; pointer-events: none;
  background: var(--hq-pumpkin) center/contain no-repeat;
  filter: drop-shadow(0 0 4px rgba(255,90,31,.55));
}
.theme-halloween .logo-icon { position: relative; overflow: visible !important;
  box-shadow: 0 0 0 1px rgba(255,140,66,.35), 0 0 22px rgba(255,90,31,.45), 0 0 40px rgba(91,42,134,.45) !important; }
.theme-halloween .logo-icon::after {
  content: ""; position: absolute; right: -7px; top: -8px; width: 17px; height: 17px; pointer-events: none;
  background: var(--hq-pumpkin) center/contain no-repeat;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.7));
}

/* ---------- Corner decoration: cobweb (top-right) + bats ----------
   Scoped per-context instead of a global fixed body::before, so it never
   sits on top of interactive content:
   - /app: only while on the Map screen's Map sub-view -- not List (see
     body.hq-list-view, toggled by setView()), and not Post/Listings/More
     (those already clear body.hq-on-map via setScreenContext).
     position:fixed is fine here since the map screen is a static
     single-viewport screen, not a scrolling page.
   - Landing + blog index: attached to .hero, position:absolute, so it
     scrolls away with the hero instead of staying pinned over content
     below.
   - Blog post pages (no .hero): attached to .wrap for the same reason. */
.theme-halloween body.hq-on-map:not(.hq-list-view)::before {
  content: ""; position: fixed; pointer-events: none; z-index: 48;
  top: calc(var(--banner-h, 0px) + 150px); right: 0; width: 120px; height: 120px;
  background: var(--hq-cobweb) top right/contain no-repeat; opacity: .4;
}
.theme-halloween .hero,
.theme-halloween .wrap { position: relative; }
.theme-halloween .hero::before,
.theme-halloween .wrap::before {
  content: ""; position: absolute; pointer-events: none; z-index: 1;
  top: 0; right: 0; width: 120px; height: 120px;
  background: var(--hq-cobweb) top right/contain no-repeat; opacity: .32;
}
.theme-halloween .hero::after {
  content: ""; position: absolute; pointer-events: none; left: calc(50% + 190px); top: calc(var(--banner-h, 0px) + 96px); width: 130px; height: 58px;
  background: var(--hq-bats) center/contain no-repeat; opacity: .6;
}
@media (max-width: 700px) {
  .theme-halloween .hero::after { right: auto; left: 14px; top: calc(var(--banner-h, 0px) + 92px); width: 112px; height: 50px; opacity: .55; }
}

/* ---------- Header / tab bar ---------- */
.theme-halloween .app-nav { background: rgba(10,7,15,.95) !important; border-bottom: 1px solid rgba(155,107,208,.16); }
.theme-halloween .tab-bar { background: rgba(10,7,15,.96) !important; border-top: 1px solid rgba(155,107,208,.18) !important; }
.theme-halloween .tab-item.active { text-shadow: 0 0 12px rgba(255,90,31,.6); }
.theme-halloween .tab-item.active svg { filter: drop-shadow(0 0 6px rgba(255,90,31,.6)); }

/* ---------- Map: soft purple vignette on the map edges ---------- */
.theme-halloween #map-screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  box-shadow: inset 0 0 70px rgba(40,12,66,.38);
}
.theme-halloween .map-search-bar { border: 1px solid rgba(155,107,208,.30) !important; box-shadow: 0 6px 22px rgba(20,6,34,.55) !important; }

/* ---------- Buttons: slight glow ---------- */
.theme-halloween .view-toggle-btn.active,
.theme-halloween .list-sort-chip.active,
.theme-halloween .filter-chip.active,
.theme-halloween .btn-full,
.theme-halloween .nav-cta,
.theme-halloween .mobile-menu-cta,
.theme-halloween .map-fab,
.theme-halloween .route-fab,
.theme-halloween .signup-box button { box-shadow: var(--hq-glow) !important; }
.theme-halloween .view-toggle { border: 1px solid rgba(155,107,208,.30) !important; }
.theme-halloween .locate-fab,
.theme-halloween .filter-fab { border: 1px solid rgba(155,107,208,.45) !important; box-shadow: var(--hq-glow-purple) !important; background: #120c1a !important; }
.theme-halloween .list-sort-chip:not(.active) { border-color: rgba(155,107,208,.32) !important; }

/* ---------- Sale cards (list) ---------- */
.theme-halloween .sale-card { background: linear-gradient(160deg, #161021 0%, #100b16 100%) !important; border-color: rgba(155,107,208,.20) !important; }
.theme-halloween .sale-card-thumb { background: #1c1229 !important; }
.theme-halloween .sale-card-type { color: var(--hq-purple-lt) !important; }
.theme-halloween .save-btn { border-color: rgba(155,107,208,.35) !important; }
.theme-halloween .save-btn.saved { box-shadow: var(--hq-glow) !important; }

/* ---------- Landing ---------- */
.theme-halloween .orb-2 { background: radial-gradient(circle, rgba(91,42,134,.55), transparent 70%) !important; }
.theme-halloween .hero-eyebrow, .theme-halloween .nav-badge { border-color: rgba(155,107,208,.45) !important; }
.theme-halloween .fcard, .theme-halloween .feature-card, .theme-halloween .step-card,
.theme-halloween .audience-card { border-color: rgba(155,107,208,.22) !important; }
