/* ============================================================
   Halloween 2026 Theme — Heroradio
   Vollständiges, atmosphärisches Halloween-Design
   ============================================================ */

.theme-halloween {
  --bg:        #0a0409;
  --bg-2:      #180a12;
  --bg-3:      #241019;
  --fg:        #ffe8c9;
  --muted:     #c4a08a;
  --primary:   #ff6b1a;
  --secondary: #2d0e1a;
  --accent:    #b266ff;
  --danger:    #ff2e3a;
  --warning:   #ffb400;
  --success:   #7cff5a;
  --card:      rgba(30, 12, 22, .82);
  --card-border: rgba(255, 107, 26, .28);
  --shadow-glow: 0 0 24px rgba(255,107,26,.35), 0 0 60px rgba(178,102,255,.22);
}

.theme-halloween body {
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(255,107,26,.18), transparent 60%),
    radial-gradient(900px 600px at 90% 110%, rgba(178,102,255,.20), transparent 60%),
    radial-gradient(600px 400px at 50% 50%, rgba(120,10,40,.15), transparent 70%),
    linear-gradient(180deg, #0a0409 0%, #180a12 60%, #0a0409 100%);
  color: var(--fg);
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
}

.theme-halloween .bg-grain {
  background-image:
    radial-gradient(circle at 20% 10%, rgba(255,107,26,.18), transparent 40%),
    radial-gradient(circle at 90% 60%, rgba(178,102,255,.16), transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(255,46,58,.12), transparent 40%);
  opacity: .9;
}

/* ---------- Header / Navigation ---------- */
.theme-halloween .site-header {
  background: linear-gradient(180deg, rgba(10,4,9,.96), rgba(24,10,18,.82));
  border-bottom: 1px solid rgba(255,107,26,.35);
  box-shadow: 0 4px 24px rgba(255,107,26,.15);
}
.theme-halloween .brand-mark {
  background: linear-gradient(135deg, #ff6b1a, #b266ff);
  box-shadow: 0 0 22px rgba(255,107,26,.55);
}
.theme-halloween .brand-text strong {
  background: linear-gradient(90deg, #ff8a3d, #ffb400, #b266ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(255,107,26,.35);
  letter-spacing: .5px;
}
.theme-halloween .site-nav a {
  color: var(--fg);
  transition: color .2s, text-shadow .2s;
}
.theme-halloween .site-nav a:hover,
.theme-halloween .site-nav a.active {
  color: #ff8a3d;
  text-shadow: 0 0 12px rgba(255,107,26,.7);
}

/* ---------- Buttons ---------- */
.theme-halloween .btn,
.theme-halloween .btn-pill.primary {
  background: linear-gradient(135deg, #ff6b1a, #ff2e3a);
  color: #fff;
  border: none;
  box-shadow: 0 6px 18px rgba(255,107,26,.35);
  transition: transform .15s, box-shadow .2s, filter .2s;
}
.theme-halloween .btn:hover,
.theme-halloween .btn-pill.primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 10px 26px rgba(255,107,26,.55), 0 0 24px rgba(178,102,255,.35);
}
.theme-halloween .btn-pill.ghost {
  border: 1px solid rgba(178,102,255,.55);
  color: #e6d3ff;
  background: rgba(45,14,26,.6);
}
.theme-halloween .btn-pill.admin {
  background: linear-gradient(135deg, #b266ff, #6a0dad);
  color: #fff;
  box-shadow: 0 0 18px rgba(178,102,255,.55);
}

/* ---------- Cards / Panels ---------- */
.theme-halloween .card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 30px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,107,26,.08);
  position: relative;
  overflow: hidden;
}
.theme-halloween .card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 10% -10%, rgba(255,107,26,.12), transparent 60%);
  pointer-events: none;
}
.theme-halloween h1, .theme-halloween h2, .theme-halloween h3 {
  color: #ff8a3d;
  text-shadow: 0 0 18px rgba(255,107,26,.35);
  letter-spacing: .4px;
}
.theme-halloween a { color: #d9a6ff; }
.theme-halloween a:hover { color: #ff8a3d; text-shadow: 0 0 8px rgba(255,138,61,.5); }

.theme-halloween .mini-player {
  background: linear-gradient(90deg, #180a12, #2d0e1a);
  border: 1px solid rgba(255,107,26,.35);
  box-shadow: 0 0 22px rgba(178,102,255,.25);
}
.theme-halloween .mp-status {
  color: #ff2e3a;
  animation: hw-blink 1.4s infinite;
  text-shadow: 0 0 10px rgba(255,46,58,.7);
}
@keyframes hw-blink { 0%,100%{opacity:1} 50%{opacity:.35} }

/* ---------- Halloween Decorations (rendered from header.php) ---------- */
.hw-fog {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(600px 220px at 20% 90%, rgba(178,102,255,.18), transparent 70%),
    radial-gradient(700px 260px at 80% 10%, rgba(255,107,26,.14), transparent 70%);
  animation: hw-fog-drift 22s ease-in-out infinite alternate;
}
@keyframes hw-fog-drift {
  0%   { transform: translateX(-30px) translateY(0); }
  100% { transform: translateX(30px)  translateY(-14px); }
}

.hw-moon {
  position: fixed;
  top: 60px;
  right: 40px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff6d5 0%, #ffd88a 55%, #b47a2a 100%);
  box-shadow:
    0 0 40px rgba(255,214,138,.55),
    0 0 90px rgba(255,214,138,.35),
    inset -10px -14px 22px rgba(120,60,10,.4);
  z-index: 2;
  pointer-events: none;
}
.hw-moon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(6px 6px at 30% 40%, rgba(120,60,10,.4), transparent 70%),
    radial-gradient(8px 8px at 65% 30%, rgba(120,60,10,.3), transparent 70%),
    radial-gradient(5px 5px at 55% 65%, rgba(120,60,10,.35), transparent 70%);
}

/* Cobwebs in corners */
.hw-web {
  position: fixed;
  width: 180px;
  height: 180px;
  pointer-events: none;
  z-index: 3;
  opacity: .75;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.6));
}
.hw-web.tl { top: 0; left: 0; }
.hw-web.tr { top: 0; right: 0; transform: scaleX(-1); }
.hw-web.bl { bottom: 0; left: 0; transform: scaleY(-1); }
.hw-web.br { bottom: 0; right: 0; transform: scale(-1,-1); }

/* Bats flying across */
.hw-bats {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
}
.hw-bats span {
  position: absolute;
  top: -60px;
  font-size: 26px;
  color: #1a0a10;
  filter:
    brightness(1.35)
    drop-shadow(0 0 6px rgba(255,107,26,.75))
    drop-shadow(0 0 14px rgba(178,102,255,.55));
  animation: hw-bat-fly linear infinite;
  will-change: transform;
}
@keyframes hw-bat-fly {
  0%   { transform: translate(0, 0) rotate(-8deg); }
  25%  { transform: translate(-40vw, 20vh) rotate(6deg); }
  50%  { transform: translate(-80vw, 40vh) rotate(-6deg); }
  75%  { transform: translate(-60vw, 65vh) rotate(8deg); }
  100% { transform: translate(-110vw, 90vh) rotate(-4deg); }
}

/* Floating ghosts */
.hw-ghosts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}
.hw-ghosts span {
  position: absolute;
  bottom: -80px;
  font-size: 34px;
  color: rgba(255,255,255,.85);
  text-shadow: 0 0 18px rgba(255,255,255,.55), 0 0 30px rgba(178,102,255,.5);
  animation: hw-ghost-rise linear infinite;
  opacity: .85;
}
@keyframes hw-ghost-rise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: .85; }
  50%  { transform: translateY(-55vh) translateX(30px); }
  90%  { opacity: .85; }
  100% { transform: translateY(-110vh) translateX(-30px); opacity: 0; }
}

/* Pumpkin banner with blood drip */
.hw-banner {
  position: relative;
  background: linear-gradient(90deg, #ff6b1a 0%, #b266ff 100%);
  color: #fff;
  text-align: center;
  padding: 12px 16px 22px;
  font-weight: 800;
  letter-spacing: .5px;
  font-size: 1rem;
  z-index: 5;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
  box-shadow: 0 4px 22px rgba(255,107,26,.4);
  margin-bottom: 20px;
}
.hw-banner .hw-drip {
  position: absolute;
  left: 0; right: 0; bottom: -14px;
  height: 16px;
  background:
    radial-gradient(circle at 5%  100%, #8a0010 6px, transparent 7px),
    radial-gradient(circle at 18% 100%, #8a0010 9px, transparent 10px),
    radial-gradient(circle at 32% 100%, #8a0010 5px, transparent 6px),
    radial-gradient(circle at 48% 100%, #8a0010 11px, transparent 12px),
    radial-gradient(circle at 63% 100%, #8a0010 6px, transparent 7px),
    radial-gradient(circle at 78% 100%, #8a0010 9px, transparent 10px),
    radial-gradient(circle at 92% 100%, #8a0010 7px, transparent 8px),
    linear-gradient(180deg, #a30014 0 55%, transparent 55%);
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.4));
}

/* Flicker for "candle" accents */
@keyframes hw-flicker {
  0%,100% { opacity: 1; text-shadow: 0 0 16px rgba(255,107,26,.9), 0 0 30px rgba(255,107,26,.6); }
  50%     { opacity: .78; text-shadow: 0 0 6px rgba(255,107,26,.6); }
}
.theme-halloween .brand-text strong { animation: hw-flicker 3.6s infinite; }

/* Ensure content above decorations */
.theme-halloween .site-header,
.theme-halloween .container,
.theme-halloween main,
.theme-halloween footer { position: relative; z-index: 10; }

/* Footer */
.theme-halloween .site-footer {
  background: linear-gradient(180deg, rgba(10,4,9,.7), rgba(24,10,18,.95));
  border-top: 1px solid rgba(255,107,26,.28);
}

/* Forms */
.theme-halloween input,
.theme-halloween textarea,
.theme-halloween select {
  background: rgba(24,10,18,.85);
  color: var(--fg);
  border: 1px solid rgba(255,107,26,.35);
  border-radius: 10px;
}
.theme-halloween input:focus,
.theme-halloween textarea:focus,
.theme-halloween select:focus {
  outline: none;
  border-color: #b266ff;
  box-shadow: 0 0 0 3px rgba(178,102,255,.28);
}

/* Reduce motion for those who prefer it */
@media (prefers-reduced-motion: reduce) {
  .hw-bats span, .hw-ghosts span, .hw-fog { animation: none !important; }
  .theme-halloween .brand-text strong { animation: none !important; }
}
