/* ============================================
   40ER FASCHT 2026 - Neon party easter egg
   ============================================

   A second palette for the same layout: nothing here changes a position, a
   size or a font — only colour. Every rule is scoped under `html.neon-party`,
   which the inline script in _layouts/default.html adds before first paint.
   With the class absent this file is completely inert.

   Two things to know before editing:

   1. Each rule copies its selector from style.css / program.css / menu.css and
      prefixes it with `html.neon-party `. That adds one type + one class, so a
      neon rule always outranks the original no matter which file loads first —
      which matters, because this file is linked in <head> while program.css
      and menu.css are linked mid-body by the pages that use them.

   2. Most of the work is done by the token block below. Only colours that were
      hardcoded in the source stylesheets need a rule of their own, and they are
      grouped here in the same order they appear there.
   ============================================ */

/* ---- TOKENS ---- */

html.neon-party {
  color-scheme: dark;

  /* Surfaces. --surface / --surface-inverse / --mix-base are the role aliases
     added to :root in style.css; repointing them here is what turns every
     panel dark without touching the ~60 places where --festival-white is the
     ink on a dark photo rather than a background. */
  --surface: #150a2b;
  --surface-inverse: #05010d;
  --mix-base: #150a2b;
  --festival-bg-soft: #120826;
  --festival-light: #1f1040;
  --festival-light-mid: #2b1755;

  /* Ink. --festival-white keeps its light role and becomes the near-white. */
  --festival-white: #f4ecff;
  --festival-dark-text: #f4ecff;
  --festival-charcoal: #f4ecff;
  --festival-dark: #f4ecff;
  --festival-gray: #b9a6e8;

  /* Accents: magenta, aqua, violet and acid lime, in that order of weight. */
  --festival-teal: #00ffd0;
  --festival-teal-dark: #00b895;
  --festival-green: #7cff3d;
  --festival-green-dark: #2fc21f;
  --festival-pink: #ff3ea5;
  --festival-pink-dark: #ff5cb8;
  --festival-cyan: #22e2ff;
  --festival-cyan-dark: #00a6d6;
  --festival-blue: #8a5cff;
  --festival-blue-dark: #5a2ee0;
  --festival-coral: #ff2bd6;
  --festival-mint: rgb(0 255 208 / 14%);

  /* Shadows become glows. */
  --shadow-sm: 0 0 8px rgb(0 255 208 / 20%);
  --shadow-md: 0 0 20px rgb(138 92 255 / 32%);
  --shadow-lg: 0 0 36px rgb(255 43 214 / 38%);
  --shadow-glow-teal: 0 0 24px rgb(0 255 208 / 65%);
  --shadow-glow-green: 0 0 24px rgb(124 255 61 / 65%);

  /* Neon-only helpers. --neon-ink is the ink for anything sitting on a full
     neon fill: white on hot magenta is about 3.5:1, near-black is about 10:1. */
  --neon-ink: #0b0417;
  --neon-page: #0b0417;
  --neon-line: rgb(255 62 165 / 28%);
}

/* The page sits a shade below the panels so cards read as raised. */
html.neon-party body {
  background-color: var(--neon-page);
}

/* ---- HEADER ---- */

html.neon-party .site-header {
  box-shadow: 0 1px 0 var(--neon-line), var(--shadow-md);
}

html.neon-party .site-header__nav a:hover {
  background-color: rgb(0 255 208 / 12%);
}

html.neon-party .site-header__nav a.active {
  background-color: rgb(0 255 208 / 28%);
}

/* ---- FOOTER ---- */

html.neon-party .site-footer {
  border-top: 1px solid var(--neon-line);
}

/* ---- BUTTONS ---- */

html.neon-party .btn-primary {
  background: linear-gradient(90deg, #ff2bd6 0%, #8a5cff 100%);
  color: var(--neon-ink);
}

html.neon-party .btn-primary:hover {
  box-shadow: 0 0 34px rgb(255 43 214 / 60%);
}

html.neon-party .btn-secondary {
  background: linear-gradient(90deg, #7cff3d 0%, #00ffd0 100%);
  color: var(--neon-ink);
}

html.neon-party .btn-secondary:hover {
  box-shadow: 0 0 34px rgb(124 255 61 / 60%);
}

html.neon-party .btn-pink {
  background: linear-gradient(90deg, #ff8a00 0%, #ff3ea5 100%);
  color: var(--neon-ink);
  box-shadow: 0 0 24px rgb(255 62 165 / 55%);
}

html.neon-party .btn-pink:hover {
  box-shadow: 0 0 34px rgb(255 62 165 / 65%);
}

/* ---- CARD GRADIENTS (team departments) ---- */

html.neon-party .card-gradient--teal {
  background: radial-gradient(circle at 30% 30%, #00ffd0 0%, #062b3a 100%);
}

html.neon-party .card-gradient--pink {
  background: radial-gradient(circle at 30% 30%, #ff3ea5 0%, #37062a 100%);
}

html.neon-party .card-gradient--blue {
  background: radial-gradient(circle at 30% 30%, #8a5cff 0%, #1a0a44 100%);
}

html.neon-party .card-gradient--cyan {
  background: radial-gradient(circle at 30% 30%, #22e2ff 0%, #04283a 100%);
}

html.neon-party .card-gradient--green {
  background: radial-gradient(circle at 30% 30%, #7cff3d 0%, #0f3312 100%);
}

/* Department cards carry white ink over these gradients; the neon centre is
   bright enough that the icon tile and hover glow need retuning. */
html.neon-party .department-card:hover {
  box-shadow: 0 0 30px rgb(138 92 255 / 45%);
}

/* ---- GRAIN TEXTURE ---- */

/* `overlay` lightens a dark ground into grey haze. `screen` at a lower opacity
   keeps the film grain visible without washing the neon out. */
html.neon-party .grain-texture {
  opacity: 0.08;
  mix-blend-mode: screen;
}

/* ---- HERO ---- */

/* The only lever on the hero photography: there are no url()s in the CSS, the
   four slides come from inline styles in index.html. */
html.neon-party .hero-section__bg {
  background: linear-gradient(135deg, rgb(28 0 62 / 78%) 0%, rgb(120 0 140 / 62%) 100%);
}

html.neon-party .hero-section__title {
  text-shadow: 0 0 24px rgb(0 255 208 / 70%), 0 2px 10px rgb(0 0 0 / 60%);
}

html.neon-party .hero-section__subtitle {
  text-shadow: 0 0 18px rgb(255 43 214 / 60%), 0 2px 10px rgb(0 0 0 / 60%);
}

html.neon-party .weather__day {
  box-shadow: 0 0 20px rgb(0 255 208 / 35%);
}

/* ---- CTA BAND ---- */

html.neon-party .cta-section {
  background: linear-gradient(
    90deg,
    rgb(0 255 208 / 22%) 0%,
    rgb(138 92 255 / 26%) 35%,
    rgb(255 43 214 / 26%) 65%,
    rgb(255 138 0 / 22%) 100%
  );
}

html.neon-party .cta-section__title {
  color: var(--festival-white);
  text-shadow: 0 0 20px rgb(255 43 214 / 50%);
}

/* ---- FOOD SECTION ---- */

html.neon-party .food-section__overlay {
  background: linear-gradient(to bottom, rgb(20 0 46 / 72%) 0%, rgb(38 0 60 / 88%) 100%);
}

html.neon-party .food-section__title {
  text-shadow: 0 0 26px rgb(124 255 61 / 55%), 0 4px 30px rgb(0 0 0 / 80%);
}

/* ---- MAP SECTION ---- */

/* index.html sets this gradient in a style attribute, so it needs !important. */
html.neon-party .map-section__map-bg {
  background: linear-gradient(135deg, #1a0a44 0%, #06202e 100%) !important;
}

html.neon-party .map-section__placeholder {
  background: rgb(21 10 43 / 80%);
}

/* ---- GOOGLE MAPS INFOWINDOW ---- */

/* Google injects these nodes with its own inline styles, hence !important in
   the source. The same block lives in style.css and program.css. */
html.neon-party .gm-style .gm-style-iw-c {
  background: linear-gradient(90deg, #ff2bd6 0%, #8a5cff 100%) !important;
}

html.neon-party .gm-style .gm-style-iw-tc::after {
  background: #c81fb0 !important;
}

html.neon-party .map-route-pill {
  color: var(--neon-ink);
}

html.neon-party .gm-style .gm-style-iw-c:has(.map-route-pill:hover) {
  box-shadow: 0 0 30px rgb(255 43 214 / 60%) !important;
}

html.neon-party .map-route-pill:focus-visible {
  outline: 2px solid var(--neon-ink);
}

/* ---- SPONSORS ---- */

html.neon-party .sponsors-section {
  background-color: var(--festival-bg-soft);
}

html.neon-party .sponsors-section__content {
  background: linear-gradient(135deg, #150a2b 0%, #1d0b3d 100%);
}

html.neon-party .sponsors-section__description {
  color: var(--festival-white);
}

html.neon-party .partner-card,
html.neon-party .sponsors-page-partner-card,
html.neon-party .sponsors-page-supporter-card {
  border: 1px solid var(--neon-line);
}

/* Sponsor logos are artwork drawn for a light ground, and the set is mixed:
   some are transparent PNGs with dark ink, which disappear on a dark panel,
   while the rest are JPEGs and opaque PNGs with white baked into the file.
   Inverting or recolouring them would misrepresent the brands and would not
   fix the mixed set anyway, so the plates stay light and become lightboxes on
   the dark wall — a neon frame and an outer glow make that read as deliberate.
   Pure white rather than --festival-bg-soft, so the plate matches the white
   already baked into the opaque files exactly and no rectangle shows through. */
html.neon-party .sponsors-page-logo,
html.neon-party .partner-card__logo,
html.neon-party .sponsors-page-partner-card__logo {
  background-color: #fff;
}

/* The bare tiles are the whole lightbox, so they carry the frame themselves.
   The two partner variants sit inside a card that is already framed. */
html.neon-party .sponsors-page-logo {
  border: 1px solid rgb(0 255 208 / 55%);
  box-shadow: 0 0 18px rgb(0 255 208 / 30%);
}

html.neon-party .sponsors-page-logo:hover {
  box-shadow: 0 0 30px rgb(0 255 208 / 60%);
}

html.neon-party .sponsors-page-hero {
  background: radial-gradient(circle at 30% 30%, #7cff3d 0%, #0f3312 100%);
}

/* ---- PAGE HEROES ---- */

html.neon-party .team-section,
html.neon-party .archive-page-hero,
html.neon-party .team-page-hero,
html.neon-party .program-page-hero {
  background: radial-gradient(circle at 30% 30%, #ff2bd6 0%, #1a0a44 100%);
}

html.neon-party .sponsors-page-hero__title,
html.neon-party .archive-page-hero__title,
html.neon-party .team-page-hero__title,
html.neon-party .program-page-hero__title {
  text-shadow: 0 0 22px rgb(0 255 208 / 65%);
}

/* ---- ARCHIVE CARDS ---- */

/* These sit on the light page background in the normal theme, so the
   white-fill / dark-ink pair has to swap ends. */
html.neon-party .archive-highlight-card,
html.neon-party .archive-page-card--has-image {
  background: rgb(21 10 43 / 95%);
  border: 1px solid var(--neon-line);
}

html.neon-party .archive-page-card--placeholder {
  background: rgb(21 10 43 / 55%);
  border: 1px dashed rgb(255 62 165 / 35%);
}

html.neon-party .archive-page-card__placeholder-icon {
  color: rgb(244 236 255 / 25%);
}

html.neon-party .archive-page-card--placeholder .archive-page-card__year {
  color: rgb(244 236 255 / 45%);
}

html.neon-party .archive-page-card--placeholder .archive-page-card__jahrgang {
  color: rgb(244 236 255 / 35%);
}

/* ---- TEAM PAGE ---- */

html.neon-party .team-page-members {
  background-color: var(--festival-bg-soft);
}

html.neon-party .team-page-departments__photo img {
  box-shadow: 0 0 30px rgb(138 92 255 / 35%);
}

html.neon-party .member-avatar__image {
  box-shadow: 0 0 16px rgb(0 255 208 / 30%);
}

/* ---- INK ON FULL NEON FILLS ---- */

/* Every element whose fill is a solid accent and whose label was white. */
html.neon-party .cookie-banner__btn--accept,
html.neon-party .filter-button.active,
html.neon-party .filter-button.active svg,
html.neon-party .filter-section__clear,
html.neon-party .back-to-top,
html.neon-party .event-card__tentative-badge,
html.neon-party .event-card__ticket-pill--live,
html.neon-party .event-card__ticket-pill--menu,
html.neon-party .event-card__ticket-pill--reserve,
html.neon-party .event-card__ticket-pill--spielbereich,
html.neon-party .spielbereich-filter__btn--active,
html.neon-party .spielbereich-filter__btn--active:hover,
html.neon-party .menu-tabs__btn--active,
html.neon-party .menu-tabs__btn--active:hover {
  color: var(--neon-ink);
}

/* --festival-pink-dark is bright enough now that its two full fills need dark
   ink instead of the white/deep-pink the light theme used. */
html.neon-party .event-card__ticket-pill--soldout,
html.neon-party .program-time-override,
html.neon-party .program-time-override__reset {
  color: var(--neon-ink);
}

/* ---- PROGRAM PAGE ---- */

/* Chip and pill colours arrive as inline custom properties from React, sourced
   from src/data/program-data.js — a stylesheet cannot override an inline value,
   and re-declaring --chip-color in terms of itself would be a cycle. The
   --chip-ink / --cta-ink aliases in program.css exist for exactly this: we
   derive a neon colour from the data value under a different name. Relative
   colour syntax keeps each category's hue and only lifts lightness and chroma,
   so the ten programme categories stay told apart. */
html.neon-party .filter-button,
html.neon-party .event-card__primary-category,
html.neon-party .event-card__category-chip {
  --chip-ink: var(--festival-teal);
}

html.neon-party .event-card__ticket-pill--menu,
html.neon-party .event-card__ticket-pill--reserve,
html.neon-party .event-card__ticket-pill--spielbereich {
  --cta-ink: var(--festival-coral);
}

@supports (color: oklch(from red l c h)) {
  html.neon-party .filter-button,
  html.neon-party .event-card__primary-category,
  html.neon-party .event-card__category-chip {
    --chip-ink: oklch(from var(--chip-color, var(--festival-teal)) 85% 0.28 h);
  }

  html.neon-party .event-card__ticket-pill--menu,
  html.neon-party .event-card__ticket-pill--reserve,
  html.neon-party .event-card__ticket-pill--spielbereich {
    --cta-ink: oklch(from var(--cta-color, var(--festival-coral)) 80% 0.3 h);
  }
}

html.neon-party .event-card__tentative-badge {
  background: #ffd23d;
}

html.neon-party .event-card__ticket-pill--live {
  background: #7cff3d;
}

html.neon-party .event-card__ticket-pill--live:hover {
  background: #5fe01f;
}

html.neon-party .event-card__ticket-pill--live:active {
  background: #46bd0d;
}

html.neon-party .multi-track-calendar__grid-line {
  border-left: 1px dashed rgb(244 236 255 / 12%);
}

html.neon-party .multi-track-calendar__event-label {
  background-color: rgb(11 4 23 / 85%);
}

html.neon-party .multi-track-calendar__event {
  box-shadow: 0 0 8px rgb(0 0 0 / 45%);
}

html.neon-party .map-modal {
  background: rgb(11 4 23 / 78%);
}

html.neon-party .map-modal__content {
  box-shadow: 0 0 50px rgb(138 92 255 / 40%);
}

/* ---- MENU PAGE (diet + allergen badges) ---- */

html.neon-party .menu-item__diet--vegan {
  background-color: rgb(124 255 61 / 18%);
  color: #7cff3d;
}

html.neon-party .menu-item__diet--vegetarisch {
  background-color: rgb(0 255 208 / 18%);
  color: #00ffd0;
}

html.neon-party .menu-item__flag {
  background-color: rgb(255 62 165 / 18%);
  color: var(--festival-pink);
}

/* ---- COOKIE BANNER ---- */

html.neon-party .cookie-banner {
  box-shadow: 0 0 30px rgb(255 43 214 / 35%);
  border-top: 1px solid var(--neon-line);
}
