/*
 * "viking" template: deep-space navy (#040711) with a neon signature of pink
 * (#ff2a85) leading orange (#ff6b35) and purple (#9d4edd / #7928ca): floating
 * pill header, neon-edged buttons and kickers, arch-shaped hero media and
 * gallery tiles, gradient display type, and a gradient CTA banner. Loaded only
 * for websites whose template is "viking" (see app/views/site/layout.php).
 * Structural hero, plan-card and gallery rules live in theme-stream.css; this
 * file paints and polishes them.
 */

.theme-viking {
  --hero-scrim-rgb: 4, 7, 17;
  --viking-cta: var(--brand-cta, #ff6b35);
  --viking-cta-hover: color-mix(in srgb, var(--brand-cta, #ff6b35) 88%, #fff);
  --viking-pink: var(--brand-primary, #ff2a85);
  --viking-purple: #9d4edd;
  --viking-deep: var(--brand-violet, #7928ca);
  --viking-arch-border: linear-gradient(180deg, #ff6b35 0%, #d81b60 42%, #7928ca 100%);
  --viking-grad: linear-gradient(135deg, #ff6b35 0%, #ff2a85 50%, #9d4edd 100%);
  --viking-fire: linear-gradient(90deg, #ff6b35 0%, #ff2a85 100%);
  --viking-banner: linear-gradient(135deg, #ff5e36 0%, #d81b60 50%, #8e24aa 100%);
  --viking-glow-pink: rgba(255, 42, 133, 0.2);
  --viking-glow-purple: rgba(121, 40, 202, 0.22);
  --viking-glow-orange: rgba(255, 107, 53, 0.18);
}

/* The palette variables sit on the inner .theme-viking wrapper, so <body> needs its own paint. */
body.theme-viking-body {
  background-color: var(--site-bg);
  color: var(--site-fg);
}

/* Neon aurora wash behind the whole page; sections stay transparent so the glow shows through. */
.theme-viking .site-shell {
  background-image:
    radial-gradient(ellipse 55% 38% at 6% 0%, var(--viking-glow-orange), transparent 68%),
    radial-gradient(ellipse 45% 34% at 94% 3%, var(--viking-glow-purple), transparent 70%),
    radial-gradient(ellipse 52% 30% at 50% 36%, var(--viking-glow-pink), transparent 72%);
  background-repeat: no-repeat;
}

/* Consent bar is shared markup with light utility classes; recolour it for the dark template. */
.theme-viking #consent-beacon,
body.theme-viking-body #consent-beacon {
  border-color: var(--site-border);
  background: rgba(4, 7, 17, 0.97);
  box-shadow: 0 -16px 40px -24px rgba(0, 0, 0, 0.9);
}
.theme-viking #consent-beacon p { color: var(--site-muted); }
.theme-viking #consent-beacon a { color: #ffa1c8; }
.theme-viking #consent-beacon [data-consent="denied"] {
  border-color: var(--site-border);
  background: transparent;
  color: var(--site-fg);
}
.theme-viking #consent-beacon [data-consent="denied"]:hover { background: var(--site-surface-2); }
.theme-viking #consent-beacon [data-consent="granted"] {
  background: var(--viking-cta);
  color: var(--brand-cta-contrast, #040711);
}
.theme-viking #consent-beacon [data-consent="granted"]:hover { background: var(--viking-cta-hover); }

/* The open menu is a flex child of the 4.5rem header row; take it out of flow so it hangs below the header. */
@media (max-width: 1023px) {
  .theme-viking .mobile-menu > div {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 60;
    max-height: calc(100vh - 4.5rem);
    overflow-y: auto;
    border-color: var(--site-border);
    box-shadow: 0 28px 60px -28px rgba(0, 0, 0, 0.9);
  }
}

/* ---------- Header: floating neon pill bar ---------- */
.theme-viking .site-header {
  background: transparent;
  border-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: background-color 0.25s ease;
}
/* The 4.5rem row inside the max-w-7xl container becomes the floating pill. */
.theme-viking .site-header > div.mx-auto {
  margin-top: 0.85rem;
  padding-inline: 1.1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(rgba(13, 19, 43, 0.9), rgba(13, 19, 43, 0.9)) padding-box,
    linear-gradient(92deg, rgba(255, 42, 133, 0.55), rgba(157, 78, 221, 0.4) 55%, rgba(255, 107, 53, 0.45)) border-box;
  box-shadow: 0 18px 44px -26px rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.theme-viking .site-header.is-scrolled > div.mx-auto {
  background:
    linear-gradient(rgba(8, 13, 30, 0.96), rgba(8, 13, 30, 0.96)) padding-box,
    linear-gradient(92deg, rgba(255, 42, 133, 0.75), rgba(157, 78, 221, 0.6) 55%, rgba(255, 107, 53, 0.65)) border-box;
}
.theme-viking .site-header nav a:not(.site-button) {
  padding: 0.5rem 0.15rem;
  margin-inline: 0.7rem;
  border-radius: 0;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.theme-viking .site-header nav a:not(.site-button):hover { color: #fff !important; }
.theme-viking .site-header nav a:not(.site-button) > span.absolute {
  left: 0;
  right: 0;
  bottom: -0.15rem;
  width: auto;
  height: 2px;
  border-radius: 2px;
  transform: none;
  translate: none;
  background: var(--viking-fire);
}
.theme-viking .site-header .site-button--primary {
  min-height: 2.5rem;
  padding: 0.4rem 0.45rem 0.4rem 1.15rem;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(255, 42, 133, 0.5);
  color: var(--site-fg);
  box-shadow: none;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.theme-viking .site-header .site-button--primary:hover {
  background: rgba(255, 42, 133, 0.12);
  border-color: var(--viking-pink);
}
.theme-viking .site-header .site-button__arrow { display: inline-flex; }

/* ---------- Buttons: navy pill with neon pink edge and fire arrow disc ---------- */
.theme-viking .site-button {
  min-height: 3rem;
  padding: 0.55rem 0.6rem 0.55rem 1.5rem;
  gap: 0.7rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.theme-viking .site-button--primary {
  border: 1px solid rgba(255, 42, 133, 0.5);
  background: #11183b;
  color: #fff;
  box-shadow: 0 16px 34px -20px rgba(255, 42, 133, 0.7);
}
.theme-viking .site-button--primary:hover {
  border-color: var(--viking-pink);
  background: color-mix(in srgb, var(--viking-pink) 14%, #11183b);
  box-shadow: 0 18px 38px -16px rgba(255, 42, 133, 0.8);
}
.theme-viking .site-button--ghost,
.theme-viking .site-button--outline {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--site-fg);
}
.theme-viking .site-button--ghost:hover,
.theme-viking .site-button--outline:hover {
  border-color: rgba(255, 42, 133, 0.55);
  background: var(--site-surface-2);
}
/* Every arrow chip becomes the signature fire disc. */
.theme-viking .site-button__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: -0.15rem 0;
  border-radius: 999px;
  background-image: var(--viking-fire);
  color: #fff;
}

/* ---------- Headings, kickers, cards ---------- */
.theme-viking .site-shell h1,
.theme-viking .site-shell h2,
.theme-viking .site-shell h3 {
  letter-spacing: -0.03em;
}
/* Flat neon-tinted pill eyebrow. */
.theme-viking .site-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 1rem;
  border: 1px solid rgba(255, 42, 133, 0.25);
  border-radius: 999px;
  background: rgba(255, 42, 133, 0.1);
  color: #ffa1c8 !important;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.theme-viking .site-kicker:before {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--viking-fire);
}
.theme-viking .site-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 62%), var(--site-surface);
  border-color: var(--site-border);
  border-radius: calc(var(--site-radius) + 0.15rem);
  box-shadow: none;
}
.theme-viking .site-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 42, 133, 0.45);
  box-shadow: 0 26px 60px -34px rgba(255, 42, 133, 0.5);
}
/* Feature cards take the tall arch silhouette and a gradient icon tile. */
.theme-viking article.site-card.group {
  border-radius: 2.4rem;
  background: linear-gradient(180deg, #101738 0%, #0a0e24 100%);
  border-color: rgba(255, 255, 255, 0.06);
}
.theme-viking article.site-card.group:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 42, 133, 0.35);
  box-shadow: 0 30px 60px -30px rgba(255, 42, 133, 0.4);
}
.theme-viking article.site-card.group > span.flex.h-12.w-12 {
  background-image: var(--viking-fire);
  border-color: transparent;
  border-radius: 1rem;
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(255, 42, 133, 0.6);
}

/* Gradient display text helper (stream-accent). */
.theme-viking .stream-accent {
  background: var(--viking-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Inner-page hero band: deep navy with neon orbs and a faint dot grid. */
.theme-viking .site-hero-band {
  background-color: var(--site-bg);
  background-image:
    radial-gradient(ellipse 55% 80% at 88% -12%, var(--viking-glow-purple), transparent 62%),
    radial-gradient(ellipse 50% 75% at 6% 10%, var(--viking-glow-orange), transparent 66%),
    radial-gradient(rgba(255, 42, 133, 0.14) 1px, transparent 1px),
    linear-gradient(180deg, #040711 0%, #060a1a 100%);
  background-size: auto, auto, 22px 22px, auto;
  background-position: center, center, center, center;
}
.theme-viking .site-hero-band:after {
  display: block;
  background: radial-gradient(ellipse 45% 55% at 70% 110%, var(--viking-glow-pink), transparent 70%);
  opacity: 1;
}
.theme-viking .site-hero-band span.inline-flex {
  border: 1px solid rgba(255, 42, 133, 0.28);
  background: rgba(255, 42, 133, 0.12);
  color: #ffa1c8;
  letter-spacing: 0.16em;
}
.theme-viking .site-hero-band .animate-ping { display: none; }

/* ---------- Split hero: arch media, floating callout card, giant watermark ---------- */
/* Gradient-bordered arch frame around the hero visual. */
.theme-viking .site-hero-arch {
  border: 1px solid transparent;
  border-radius: 999px 999px 15rem 15rem;
  background:
    linear-gradient(#070b1b, #070b1b) padding-box,
    var(--viking-arch-border) border-box;
  box-shadow: 0 34px 90px -34px rgba(255, 42, 133, 0.5);
}
.theme-viking .site-hero-arch img {
  aspect-ratio: 0.82;
  border-radius: 999px 999px calc(15rem - 2px) calc(15rem - 2px);
}
.theme-viking .hero-float-card {
  position: absolute;
  right: -1.25rem;
  bottom: 2.75rem;
  z-index: 20;
  max-width: 270px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.25rem;
  background: rgba(10, 15, 38, 0.92);
  box-shadow: 0 26px 60px -24px rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.theme-viking .hero-float-card p {
  margin: 0 0 0.8rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: #b9c3dd;
}
.theme-viking .hero-float-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  width: 100%;
  padding: 0.3rem 0.3rem 0.3rem 1rem;
  border: 1px solid rgba(255, 42, 133, 0.45);
  border-radius: 999px;
  background: #11183b;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.theme-viking .hero-float-card__cta:hover {
  border-color: var(--viking-pink);
  background: color-mix(in srgb, var(--viking-pink) 14%, #11183b);
}
/* Giant gradient watermark riding below the hero, clipped to one line. */
.theme-viking .hero-watermark {
  margin-top: 1.75rem;
  overflow: hidden;
  padding-left: 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 8rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  background: var(--viking-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  opacity: 0.22;
}

/* ---------- Cover hero (kept for pages that use the full-bleed layout) ---------- */
.theme-viking .hero-cover {
  min-height: min(90vh, 58rem);
  background-image:
    linear-gradient(90deg, rgba(4, 7, 17, 0.95) 0%, rgba(4, 7, 17, 0.74) 46%, rgba(4, 7, 17, 0.34) 100%),
    linear-gradient(180deg, rgba(4, 7, 17, 0.55) 0%, rgba(4, 7, 17, 0) 30%, rgba(4, 7, 17, 0.9) 100%),
    radial-gradient(ellipse 58% 82% at 88% 10%, var(--viking-glow-purple), transparent 62%),
    radial-gradient(ellipse 48% 72% at 16% 88%, var(--viking-glow-orange), transparent 66%),
    var(--hero-cover-image);
  background-size: cover;
  background-position: center;
}
/* The shared rise animation starts at opacity 0; above-the-fold copy must paint immediately. */
.theme-viking .hero-cover .hero-rise {
  animation: none;
  opacity: 1;
  transform: none;
}
.theme-viking .hero-cover__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.05rem;
  border: 1px solid rgba(255, 42, 133, 0.3);
  border-radius: 999px;
  background: rgba(255, 42, 133, 0.12);
  color: #ffa1c8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}
.theme-viking .hero-cover__title {
  max-width: 13.5em;
  font-size: clamp(2.4rem, 4.9vw, 3.7rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.theme-viking .hero-cover__title em,
.theme-viking .hero-cover__title .text-gradient {
  background: var(--viking-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-style: normal;
}
.theme-viking .hero-cover__sub {
  max-width: 42rem;
  margin-top: 1.4rem;
  font-size: clamp(0.98rem, 1.1vw, 1.1rem);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0;
  text-transform: none;
  color: #c3cddf;
}
.theme-viking .hero-cover__actions { margin-top: 1.9rem; }
.theme-viking .hero-cover__bullets {
  gap: 0.55rem 1.35rem;
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
}
.theme-viking .hero-cover__bullets li > span {
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: var(--viking-fire);
  color: #fff;
}
.theme-viking .hero-cover__social a { background: var(--site-surface-2); }
.theme-viking .hero-cover__social a:hover {
  background: var(--viking-pink);
  color: #fff;
}

/* Arch-shaped media: tall rounded-top frames for gallery and showcase imagery. */
.theme-viking .media-tile,
.theme-viking .media-tile img,
.theme-viking .showcase-frame img {
  border-radius: 999px 999px 1.25rem 1.25rem;
}
.theme-viking .media-tile {
  overflow: hidden;
  border-color: var(--site-border);
  background: var(--site-surface-2);
  box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 0.9);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.theme-viking .media-tile:hover {
  border-color: rgba(255, 42, 133, 0.45);
  box-shadow: 0 22px 48px -28px rgba(255, 42, 133, 0.45);
}
.theme-viking .media-tile__label::before {
  background: var(--viking-fire);
}

/* ---------- Stream-style plan cards ---------- */
.theme-viking .plan-tabs {
  border-color: var(--site-border);
  background: rgba(255, 255, 255, 0.035);
}
.theme-viking .plan-tabs__tab { color: var(--site-muted); }
.theme-viking .plan-tabs__tab[aria-selected="true"] {
  color: #ffd7e8;
  border-color: rgba(255, 42, 133, 0.55);
  background: rgba(255, 42, 133, 0.14);
}
.theme-viking .plan-card {
  padding: 1.7rem 1.5rem 1.5rem;
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  background: #0c122e;
}
.theme-viking .plan-card:hover {
  border-color: rgba(255, 107, 53, 0.5);
  box-shadow: 0 24px 55px -32px rgba(255, 42, 133, 0.55);
}
.theme-viking .plan-card--featured {
  position: relative;
  border: 1px solid rgba(255, 42, 133, 0.55);
  background: #0c122e;
  box-shadow: 0 10px 44px -10px rgba(255, 42, 133, 0.3);
  overflow: hidden;
}
.theme-viking .plan-card--featured::before {
  content: "";
  position: absolute;
  top: -3rem;
  right: -3rem;
  width: 9rem;
  height: 9rem;
  border-radius: 999px;
  background: rgba(255, 42, 133, 0.28);
  filter: blur(2.5rem);
  pointer-events: none;
}
.theme-viking .plan-card__head { border-bottom-color: var(--site-border); }
.theme-viking .plan-card__badge {
  background: var(--viking-fire);
  color: #fff;
}
.theme-viking .plan-card__badge--alt {
  background: linear-gradient(92deg, #ff2a85, #9d4edd);
  color: #fff;
}
.theme-viking .plan-card__tick { color: var(--viking-pink); }
.theme-viking .plan-card__cta {
  border-radius: 999px;
  border-color: rgba(255, 42, 133, 0.4);
  background: #10183b;
}
.theme-viking .plan-card__cta:hover {
  background: color-mix(in srgb, var(--viking-pink) 14%, #10183b);
  border-color: var(--viking-pink);
}
.theme-viking .plan-card--featured .plan-card__cta {
  border-color: transparent;
  background: var(--viking-cta);
  color: var(--brand-cta-contrast, #040711);
  box-shadow: 0 14px 30px -12px rgba(255, 107, 53, 0.7);
}
.theme-viking .plan-card--featured .plan-card__cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* ---------- Gallery, trust and review blocks ---------- */
.theme-viking .stream-pill {
  border: 1px solid rgba(255, 42, 133, 0.25);
  background: rgba(255, 42, 133, 0.1);
  color: #ffa1c8;
}
.theme-viking .review-card {
  border-color: var(--site-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)), var(--site-surface);
}

/* ---------- FAQ ---------- */
.theme-viking .faq-pill {
  border-color: var(--site-border);
  background: var(--site-surface);
}
.theme-viking .faq-pill[open] {
  border-color: rgba(255, 42, 133, 0.5);
  background: linear-gradient(155deg, var(--site-surface-2), var(--site-surface));
  color: var(--site-fg);
}
.theme-viking .faq-pill[open] .faq-pill__answer { color: var(--site-muted); }
.theme-viking .faq-pill[open] .faq-pill__icon {
  border-color: transparent;
  background: var(--viking-fire);
  color: #fff;
}

/* ---------- Gradient CTA banner ---------- */
.theme-viking .site-ink {
  background-color: transparent;
  background-image: var(--viking-banner);
  border-color: transparent;
}
.theme-viking .site-ink .site-stripes { display: none; }
.theme-viking .site-ink .site-button--ghost,
.theme-viking .site-ink .site-button--outline {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(4, 7, 17, 0.25);
  color: #fff;
}
.theme-viking .site-ink .site-button--ghost:hover,
.theme-viking .site-ink .site-button--outline:hover {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(4, 7, 17, 0.4);
}

/* ---------- Article body ---------- */
.theme-viking .site-prose a { color: #ffa1c8; }
.theme-viking .site-prose strong { color: #fff; }
.theme-viking .site-prose li::marker { color: var(--viking-pink); }
.theme-viking .site-prose blockquote { border-left-color: var(--viking-pink); }
.theme-viking .site-table th {
  background: rgba(255, 42, 133, 0.1);
}

/* ---------- Footer ---------- */
.theme-viking footer {
  background-image: radial-gradient(ellipse 50% 80% at 85% 0%, var(--viking-glow-purple), transparent 65%);
}

/* ---------- Accessibility ---------- */
.theme-viking a:focus-visible,
.theme-viking button:focus-visible,
.theme-viking summary:focus-visible {
  outline: 2px solid var(--viking-pink);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .theme-viking .hero-cover__title { font-size: clamp(2.1rem, 9vw, 3rem); }
  /* The floating pill leaves little room on small screens; relax its padding. */
  .theme-viking .site-header > div.mx-auto {
    margin-top: 0.5rem;
    padding-inline: 0.8rem;
  }
}

/* Gradient emphasis words inside hero headlines (**...** via hero_heading_html). */
.theme-viking h1 em {
  background: var(--viking-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-style: normal;
}
