/* ============================================================================
   FLOODSHOW.LIVE — SPOOKY SEASON THEME (Halloween 2026)
   ----------------------------------------------------------------------------
   Loaded on top of the base styles in index.html. Everything here is scoped
   under `html.spooky`, which spooky.js adds only during the season
   (through 2026-11-02). When the season is over the site returns to normal
   with no edits — but the markup is also hidden by default, so the banner
   never shows if the JS fails.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Nosifer&family=Frighten+One&display=swap');

/* ---------------------------------------------------------------- palette */
html.spooky {
  --gold: #ffa62b;        /* pumpkin */
  --pink: #e0245e;        /* blood */
  --cyan: #6bff9e;        /* poison green */
  --dark-bg: #0b0410;
  --card-bg: #180a20;
}

html.spooky body {
  background:
    radial-gradient(1100px 620px at 78% -12%, rgba(255,140,30,0.17), transparent 62%),
    radial-gradient(900px 520px at 8% 6%, rgba(150,40,200,0.18), transparent 64%),
    linear-gradient(180deg, #0b0410 0%, #17061f 45%, #0b0410 100%) !important;
  background-attachment: fixed;
}

/* the base starfield becomes drifting embers */
html.spooky body::before {
  background-image:
    radial-gradient(2px 2px at 20px 30px, #ff9d2e, transparent),
    radial-gradient(2px 2px at 40px 70px, #ff5e3a, transparent),
    radial-gradient(1px 1px at 90px 40px, #c86bff, transparent),
    radial-gradient(1px 1px at 130px 80px, #ffd27a, transparent),
    radial-gradient(2px 2px at 160px 30px, #6bff9e, transparent);
  background-size: 200px 100px;
  opacity: 0.28;
  animation: emberDrift 28s linear infinite;
}
@keyframes emberDrift {
  from { background-position: 0 0; }
  to   { background-position: -200px 420px; }
}

/* low fog rolling across the page */
html.spooky body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 38% at 18% 100%, rgba(130,60,170,0.20), transparent 70%),
    radial-gradient(55% 34% at 82% 92%, rgba(255,120,40,0.14), transparent 72%);
  filter: blur(34px);
  animation: fogRoll 36s ease-in-out infinite alternate;
}
@keyframes fogRoll {
  from { transform: translate3d(-3%, 0, 0) scale(1); }
  to   { transform: translate3d(3%, -2%, 0) scale(1.08); }
}

/* ------------------------------------------------------------------ chrome */
html.spooky .nav {
  background: rgba(9, 3, 14, 0.92);
  border-bottom: 2px solid rgba(255,140,30,0.35);
}
html.spooky .nav-logo { text-shadow: 0 0 12px rgba(255,140,30,0.55); }
html.spooky .nav-links a:hover { color: #ff9d2e; }

html.spooky .ticker-wrap {
  background: rgba(9, 3, 14, 0.92);
  border-top: 2px solid rgba(255,140,30,0.30);
  border-bottom: 2px solid rgba(255,140,30,0.30);
}

html.spooky h1.site-title {
  /* background-image, NOT the `background` shorthand: the shorthand would reset
     background-clip back to border-box and the clipped title text would vanish. */
  background-image: linear-gradient(90deg, #ff7a18, #ffd27a, #e0245e, #ff7a18);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 24px rgba(255,110,30,0.55));
  animation: shimmer 3s ease infinite, titleFlicker 8s infinite;
}
@keyframes titleFlicker {
  0%, 95%, 100% { opacity: 1; }
  96%  { opacity: 0.72; }
  97.5%{ opacity: 1; }
  98.4%{ opacity: 0.84; }
  99.2%{ opacity: 1; }
}

/* a ghost pops out when you hover the title */
html.spooky h1.site-title:hover::after {
  content: '👻';
  position: absolute;
  margin-left: 14px;
  font-size: 0.55em;
  filter: drop-shadow(0 0 10px rgba(180,120,255,0.8));
  animation: ghostBob 1.2s ease-in-out infinite alternate;
}
@keyframes ghostBob {
  from { transform: translateY(0) rotate(-6deg); }
  to   { transform: translateY(-10px) rotate(6deg); }
}

html.spooky .section-title {
  color: #ffb04a;
  text-shadow: 0 0 18px rgba(255,120,20,0.45);
}
html.spooky .movie-banner {
  background: linear-gradient(90deg, #1a0a2e, #3a1a0a, #1a0a2e) !important;
  border-color: #ffa62b !important;
}

html.spooky .show-card,
html.spooky .cal-card,
html.spooky .news-card,
html.spooky .music-card {
  background: rgba(24, 10, 32, 0.72);
  border-color: rgba(255,140,30,0.22);
}
html.spooky .show-card:hover,
html.spooky .cal-card:hover,
html.spooky .news-card:hover {
  border-color: #ffa62b;
  box-shadow: 0 8px 26px rgba(255,90,0,0.18);
}

html.spooky .platform-pill:hover { border-color: #ffa62b; color: #ffa62b; }
html.spooky .link-pill:hover { border-color: #ffa62b; color: #ffa62b; }

/* the AI Top 40 promo picks up the season palette */
html.spooky .top40-promo {
  border-color: rgba(255,140,30,0.5);
  background: linear-gradient(100deg, rgba(255,120,20,0.12), rgba(150,40,200,0.14) 60%, rgba(255,215,0,0.08));
  box-shadow: 0 0 34px rgba(255,90,0,0.16);
}
html.spooky .top40-promo:hover { border-color:#ffa62b; box-shadow:0 12px 34px rgba(255,120,20,0.28); }
html.spooky .top40-kicker { color:#ffb04a; }
html.spooky .top40-name { color:#ffd27a; text-shadow:0 0 14px rgba(255,120,20,0.6); }
html.spooky .top40-sub { color:#c9a7e0; }
html.spooky .top40-badge { filter:drop-shadow(0 0 10px rgba(255,140,30,0.7)); }
html.spooky .top40-cta { background:linear-gradient(135deg,#ffa62b,#ffd27a); }

/* ------------------------------------------------------- halloween banner */
.spooky-only { display: none !important; }
html.spooky .spooky-only { display: block !important; }

.spooky-banner {
  position: relative;
  margin: 30px auto 10px;
  max-width: 1100px;
  padding: 0 20px;
}
.spooky-banner-inner {
  position: relative;
  border: 2px solid rgba(255,140,30,0.55);
  border-radius: 18px;
  padding: 26px 24px 24px;
  text-align: center;
  background:
    radial-gradient(600px 220px at 50% 0%, rgba(255,120,20,0.16), transparent 70%),
    linear-gradient(180deg, rgba(30,8,40,0.92), rgba(12,4,18,0.92));
  box-shadow: 0 0 50px rgba(255,90,0,0.18), inset 0 0 60px rgba(0,0,0,0.5);
  overflow: hidden;
}
.spooky-banner-inner::before,
.spooky-banner-inner::after {
  content: '';
  position: absolute;
  top: 0;
  width: 120px;
  height: 90px;
  background: no-repeat center/contain;
  opacity: 0.5;
  pointer-events: none;
}
/* cobwebs in the top corners */
.spooky-banner-inner::before {
  left: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 90'%3E%3Cg fill='none' stroke='%23e8e0d0' stroke-width='1'%3E%3Cpath d='M0 0 L120 0 M0 0 L86 34 M0 0 L64 64 M0 0 L38 84 M0 0 L18 90'/%3E%3Cpath d='M0 0 A120 120 0 0 1 120 0 A86 86 0 0 1 86 34 A64 64 0 0 1 64 64 A38 38 0 0 1 38 84 A18 18 0 0 1 18 90'/%3E%3Cpath d='M22 0 A22 22 0 0 1 44 0 M40 0 A40 40 0 0 1 80 0 M58 0 A58 58 0 0 1 116 0'/%3E%3C/g%3E%3C/svg%3E");
}
.spooky-banner-inner::after {
  right: 0;
  transform: scaleX(-1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 90'%3E%3Cg fill='none' stroke='%23e8e0d0' stroke-width='1'%3E%3Cpath d='M0 0 L120 0 M0 0 L86 34 M0 0 L64 64 M0 0 L38 84 M0 0 L18 90'/%3E%3Cpath d='M0 0 A120 120 0 0 1 120 0 A86 86 0 0 1 86 34 A64 64 0 0 1 64 64 A38 38 0 0 1 38 84 A18 18 0 0 1 18 90'/%3E%3Cpath d='M22 0 A22 22 0 0 1 44 0 M40 0 A40 40 0 0 1 80 0 M58 0 A58 58 0 0 1 116 0'/%3E%3C/g%3E%3C/svg%3E");
}

.spooky-kicker {
  font-family: 'Frighten One', 'Poppins', sans-serif;
  font-size: 13px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #ffb04a;
  text-shadow: 0 0 14px rgba(255,120,20,0.6);
  animation: ghostBob 3s ease-in-out infinite alternate;
}
.spooky-title {
  font-family: 'Nosifer', 'Poppins', sans-serif;
  font-size: clamp(34px, 7vw, 64px);
  line-height: 1.05;
  margin: 6px 0 2px;
  background: linear-gradient(90deg, #ff7a18, #ffd27a, #e0245e, #ff7a18);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s ease infinite;
  filter: drop-shadow(0 0 18px rgba(255,90,0,0.5));
}
.spooky-sub {
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(16px, 2.6vw, 22px);
  color: #ffd27a;
  letter-spacing: 1px;
}
.spooky-when {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #b79bd6;
}
.spooky-count {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 20px auto 4px;
  flex-wrap: wrap;
}
.sc-box {
  min-width: 78px;
  padding: 10px 6px 8px;
  border: 1px solid rgba(255,140,30,0.45);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(50,14,6,0.85), rgba(20,4,12,0.9));
  box-shadow: inset 0 0 22px rgba(255,90,0,0.18), 0 0 18px rgba(255,90,0,0.12);
}
.sc-num {
  display: block;
  font-family: 'Nosifer', 'Poppins', sans-serif;
  font-size: 30px;
  line-height: 1;
  color: #ffb04a;
  text-shadow: 0 0 14px rgba(255,120,20,0.7);
}
.sc-lab {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #9a7fb8;
}
.spooky-bats {
  margin-top: 6px;
  font-size: 26px;
  letter-spacing: 14px;
  opacity: 0.85;
  animation: batFly 5s ease-in-out infinite alternate;
}
@keyframes batFly {
  from { transform: translateX(-10px) rotate(-6deg); }
  to   { transform: translateX(10px) rotate(6deg); }
}
.spooky-spider {
  position: absolute;
  top: 0;
  right: 34px;
  font-size: 16px;
  animation: spiderDrop 6s ease-in-out infinite;
}
@keyframes spiderDrop {
  0%, 100% { transform: translateY(-14px) rotate(-4deg); }
  50%      { transform: translateY(6px) rotate(4deg); }
}

/* --------------------------------------------- saltine show highlight */
html.spooky .cal-card.saltine-card,
html.spooky .show-card.saltine-card {
  border: 1px solid #ffa62b !important;
  border-left-width: 4px !important;
  border-left-color: #ffa62b !important;
  background: linear-gradient(135deg, rgba(60,16,8,0.85), rgba(24,8,30,0.9)) !important;
  box-shadow: 0 0 26px rgba(255,120,20,0.28);
  animation: saltinePulse 2.6s ease-in-out infinite;
}
html.spooky .show-card.show-halloween { border-left-color: #ffa62b !important; }
html.spooky .show-card.show-halloween .show-name { color: #ffb04a !important; }
@keyframes saltinePulse {
  0%, 100% { box-shadow: 0 0 22px rgba(255,120,20,0.20); }
  50%      { box-shadow: 0 0 34px rgba(255,140,20,0.42); }
}
html.spooky .cal-card.saltine-card::after,
html.spooky .show-card.saltine-card::after {
  content: '🎃';
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 18px;
  filter: drop-shadow(0 0 8px rgba(255,120,20,0.8));
}
html.spooky .cal-card.saltine-card,
html.spooky .show-card.saltine-card { position: relative; }
html.spooky .cal-card.saltine-card .cal-show,
html.spooky .show-card.saltine-card .show-name { color: #ffb04a !important; }

/* --------------------------------------------------------- accessibility */
@media (max-width: 520px) {
  .spooky-banner { padding: 0 14px; }
  .spooky-banner-inner { padding: 20px 14px 18px; border-radius: 14px; }
  .spooky-count { gap: 8px; margin-top: 16px; }
  .sc-box { min-width: 66px; padding: 8px 4px 6px; border-radius: 10px; }
  .sc-num { font-size: 23px; }
  .sc-lab { font-size: 9px; letter-spacing: 1px; }
  .spooky-when { font-size: 10px; letter-spacing: 2px; }
  .spooky-spider { right: 14px; }
  /* the base stylesheet has no mobile rules at all, so the 72px hero title is
     clipped on a phone. Fix it for the season so the promo link reads right. */
  html.spooky .hero { padding: 34px 12px 22px; }
  html.spooky .hero-crown { font-size: 38px; }
  html.spooky h1.site-title { font-size: 36px; letter-spacing: 1px; }
  html.spooky .hero-sub { font-size: 11px; letter-spacing: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html.spooky body::before,
  html.spooky body::after,
  html.spooky h1.site-title,
  html.spooky .spooky-kicker,
  html.spooky .spooky-bats,
  html.spooky .spooky-spider,
  html.spooky .cal-card.saltine-card,
  html.spooky .show-card.saltine-card {
    animation: none !important;
  }
}
