/* ==========================================================================
   VIBE.PT — Seasonal Decorations
   Logo-centric symbol bursts (firework style). No header particle strip.
   Applied via body[data-season="…"] set by assets/js/seasonal.js
   ========================================================================== */

body[data-season] {
  --season-accent: var(--season-a, #00ff00);
  --season-accent-2: var(--season-b, #00ff00);
  --season-glow: 0 0 20px color-mix(in srgb, var(--season-accent) 35%, transparent);
  --season-border: color-mix(in srgb, var(--season-accent) 28%, transparent);
}

body[data-season="christmas"] {
  --season-a: #9ecfff;
  --season-b: #e8f4ff;
}
body[data-season="newyear"] {
  --season-a: #e8c872;
  --season-b: #fff4d6;
}
body[data-season="valentine"] {
  --season-a: #e8a0b0;
  --season-b: #f5d0d8;
}
body[data-season="easter"] {
  --season-a: #b8e0a8;
  --season-b: #d4c4f0;
}
body[data-season="halloween"] {
  --season-a: #c084fc;
  --season-b: #fb923c;
}
body[data-season="summer"] {
  --season-a: #38bdf8;
  --season-b: #fbbf24;
}
body[data-season="carnival"] {
  --season-a: #f472b6;
  --season-b: #facc15;
}

body[data-season] header.fixed,
body[data-season] .mod-desk-topbar {
  border-bottom-color: var(--season-border) !important;
  box-shadow: 0 0 24px color-mix(in srgb, var(--season-accent) 12%, transparent) !important;
}

body[data-season] a.mod-desk-logo,
body[data-season] header.fixed > a.font-headline-lg,
body[data-season] header.fixed > a[class*="font-headline"],
.vibe-season-logo {
  color: var(--season-accent) !important;
  transition: color 0.5s ease, text-shadow 0.5s ease;
  position: relative;
  z-index: 2;
}

.vibe-season-logo {
  animation: vibe-season-logo-pulse 3.2s ease-in-out infinite;
}

@keyframes vibe-season-logo-pulse {
  0%, 100% {
    text-shadow:
      0 0 12px color-mix(in srgb, var(--season-accent) 35%, transparent),
      0 0 28px color-mix(in srgb, var(--season-accent) 18%, transparent);
  }
  50% {
    text-shadow:
      0 0 20px color-mix(in srgb, var(--season-accent) 55%, transparent),
      0 0 40px color-mix(in srgb, var(--season-accent) 28%, transparent);
  }
}

.vibe-season-logo[data-season-logo="newyear"] {
  animation: vibe-season-logo-nye 2.4s ease-in-out infinite;
}
@keyframes vibe-season-logo-nye {
  0%, 100% {
    text-shadow:
      0 0 10px color-mix(in srgb, #e8c872 40%, transparent),
      0 0 24px color-mix(in srgb, #e8c872 20%, transparent);
  }
  50% {
    text-shadow:
      0 0 22px color-mix(in srgb, #fff4d6 65%, transparent),
      0 0 48px color-mix(in srgb, #e8c872 35%, transparent);
  }
}

.vibe-season-logo[data-season-logo="christmas"] {
  animation: vibe-season-logo-frost 3.6s ease-in-out infinite;
}
@keyframes vibe-season-logo-frost {
  0%, 100% {
    text-shadow:
      0 0 10px color-mix(in srgb, #9ecfff 30%, transparent),
      0 0 22px color-mix(in srgb, #e8f4ff 15%, transparent);
  }
  50% {
    text-shadow:
      0 0 18px color-mix(in srgb, #9ecfff 55%, transparent),
      0 0 36px color-mix(in srgb, #e8f4ff 30%, transparent);
  }
}

body[data-season] .glass-card:hover,
body[data-season] .on-air-card {
  border-color: var(--season-border) !important;
}
body[data-season] .on-air-card {
  box-shadow: 0 0 18px color-mix(in srgb, var(--season-accent) 30%, transparent) !important;
}
body[data-season] .text-electric-green,
body[data-season] .active-nav,
body[data-season] .nav-link.active-nav {
  color: var(--season-accent) !important;
}
body[data-season] .selection\:bg-electric-green::selection,
body[data-season] ::selection {
  background-color: color-mix(in srgb, var(--season-accent) 55%, transparent);
}

body[data-season] #info-bar .text-electric-green,
body[data-season] #info-bar i.fa-solid {
  color: var(--season-accent) !important;
}

body[data-season="halloween"]::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: radial-gradient(
    ellipse 120% 80% at 50% 0%,
    transparent 55%,
    color-mix(in srgb, #1a0520 55%, transparent) 100%
  );
  opacity: 0.45;
  mix-blend-mode: multiply;
}

body[data-season="christmas"] header.fixed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--season-accent) 50%, transparent) 30%,
    color-mix(in srgb, var(--season-accent) 70%, transparent) 50%,
    color-mix(in srgb, var(--season-accent) 50%, transparent) 70%,
    transparent 100%
  );
  pointer-events: none;
}

body[data-season="newyear"] header.fixed::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--season-accent) 60%, transparent),
    transparent
  );
  pointer-events: none;
}

/* Symbol bursts around the logo */
.vibe-season-burst {
  position: fixed;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 55;
  transform: translate(-50%, -50%);
}

.vibe-season-spark {
  position: absolute;
  left: 0;
  top: 0;
  line-height: 1;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
  text-shadow: 0 0 8px currentColor, 0 0 16px currentColor;
  animation-name: vibe-symbol-burst;
  animation-timing-function: cubic-bezier(0.15, 0.75, 0.25, 1);
  animation-fill-mode: forwards;
  opacity: 0;
  will-change: transform, opacity;
  user-select: none;
}

@keyframes vibe-symbol-burst {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.4) rotate(0deg);
  }
  8% {
    opacity: 0.95;
  }
  55% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(0.9) rotate(var(--rot));
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-season] a.mod-desk-logo,
  body[data-season] header.fixed > a,
  .vibe-season-logo {
    text-shadow: none !important;
    transition: none !important;
    animation: none !important;
  }
  .vibe-season-burst {
    display: none !important;
  }
  body[data-season="halloween"]::before {
    opacity: 0.25;
  }
}

#vibe-season-preview-badge {
  position: fixed;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--season-accent, #00ff00) 18%, #0a0a0f);
  border: 1px solid color-mix(in srgb, var(--season-accent, #00ff00) 40%, transparent);
  color: var(--season-accent, #00ff00);
  pointer-events: none;
  white-space: nowrap;
}
