/* Halloween look, switched on in October by js/season.js (<html data-season="halloween">).
   It only changes theme.css's names, so every page follows. Delete this file to skip Halloween. */

:root[data-season="halloween"] {
  --color-bg: #0D0618;
  --color-panel: #1A0D2E;
  --color-well: #120823;
  --color-line: #3B1F57;
  --color-line-strong: #5A2D7A;
  --color-text-muted: #C2A9DE;

  --color-accent: #FF7A1A;        /* pumpkin orange */
  --color-on-accent: #1F0A00;
  --color-accent-2: #B77CFF;      /* witchy purple */
  --color-on-accent-2: #12061F;
  --color-danger: #FF7A1A;

  --color-cabinet-top: #2A1240;
  --color-cabinet-bottom: #150A26;

  --tone-1: #FF7A1A;
  --tone-2: #B77CFF;
  --tone-3: #FFD84D;
  --tone-4: #7CFF6B;
  --tone-5: #FF4D6D;
  --tone-6: #9EE7FF;

  --page-glow-1: rgba(255, 122, 26, .18);
  --page-glow-2: rgba(183, 124, 255, .16);

  --glow-accent: 0 0 6px rgba(255, 122, 26, .85), 0 0 24px rgba(255, 122, 26, .45);
  --glow-accent-2: 0 0 6px rgba(183, 124, 255, .8), 0 0 24px rgba(183, 124, 255, .4);
  --glow-cabinet:
    0 0 0 1px rgba(255, 122, 26, .4),
    0 0 40px rgba(255, 122, 26, .22),
    0 0 90px rgba(183, 124, 255, .14);
}

/* A pumpkin after the logo, and a few bats drifting across the top of the page */
:root[data-season="halloween"] .logo::after { content: "🎃"; font: 400 .45em var(--font-ui); margin-left: 6px; vertical-align: middle; }
:root[data-season="halloween"] body::before {
  content: "🦇   🦇      🦇";
  position: fixed;
  top: 12px;
  left: -40%;
  z-index: 0;
  white-space: pre;
  font-size: 22px;
  opacity: .5;
  pointer-events: none;
  animation: bats-fly 38s linear infinite;
}
@keyframes bats-fly {
  from { transform: translateX(0) translateY(0); }
  50% { transform: translateX(90vw) translateY(14px); }
  to { transform: translateX(180vw) translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  :root[data-season="halloween"] body::before { animation: none; left: auto; right: 16px; }
}

/* Labels that only show during Halloween (e.g. "🎃 Halloween cases" on the home page) */
.season-only { display: none; }
:root[data-season="halloween"] .season-only {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  color: var(--color-on-accent);
  background: var(--color-accent);
  vertical-align: middle;
}
