/*
Module: Jetstream89 Flight Crew visual layer
Purpose: Add the bilingual v2 experience, host profiles, merch, studio settings, and richer radio surfaces.
Author: Kevin Cusnir
Date: 2026-07-21 | TZ: Asia/Jerusalem
*/

:root {
  --flight-cyan: #33ddff;
  --flight-blue: #5f75ff;
  --flight-pink: #ff3eb5;
  --flight-orange: #ff7847;
  --flight-gold: #ffcc63;
  --flight-violet: #9d6bff;
  --flight-ink: #04060b;
  --flight-panel: rgba(10, 15, 26, 0.86);
  --flight-line: rgba(255, 255, 255, 0.105);
  --flight-glow: 0 0 32px rgba(51, 221, 255, 0.2);
}

body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 0%, rgba(51, 221, 255, 0.11), transparent 32rem),
    radial-gradient(circle at 92% 8%, rgba(255, 62, 181, 0.13), transparent 34rem),
    linear-gradient(180deg, #05070c 0%, #060912 46%, #090613 100%);
}

h1,
h2,
h3,
.brand__word,
.display-type {
  font-family: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
}

.mono,
.live-chip,
.meta-chip,
.version-badge,
.flight-stat strong,
.flight-stat small {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--flight-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.language-switcher button {
  min-width: 42px;
  min-height: 36px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
}

.language-switcher button[aria-pressed="true"] {
  color: #041019;
  background: linear-gradient(135deg, var(--flight-cyan), #a6f7ff);
  box-shadow: 0 8px 24px rgba(51, 221, 255, 0.22);
}

.brand__word {
  letter-spacing: -0.055em;
}

.brand__word em {
  color: var(--flight-cyan);
  font-style: normal;
  font-size: 0.56em;
  letter-spacing: 0.04em;
  vertical-align: super;
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(5, 7, 11, 0.98), rgba(7, 9, 16, 0.96)),
    var(--flight-ink);
}

.sidebar::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--flight-cyan), var(--flight-pink), transparent);
  opacity: 0.85;
}

.nav-link--new::after {
  content: "NEW";
  margin-left: auto;
  padding: 3px 6px;
  border-radius: 999px;
  color: #06101a;
  background: var(--flight-gold);
  font: 800 0.56rem/1 "JetBrains Mono", monospace;
}

.hero--v2 {
  min-height: 650px;
  grid-template-columns: minmax(0, 1.04fr) minmax(370px, 0.96fr);
  align-items: center;
  background:
    linear-gradient(90deg, rgba(4, 6, 11, 0.98), rgba(4, 6, 11, 0.73) 49%, rgba(4, 6, 11, 0.18)),
    radial-gradient(circle at 76% 30%, rgba(255, 62, 181, 0.27), transparent 27%),
    radial-gradient(circle at 74% 78%, rgba(51, 221, 255, 0.24), transparent 35%),
    linear-gradient(145deg, #08101d, #110923 62%, #051019);
}

.hero--v2::after {
  background:
    linear-gradient(transparent 94%, rgba(51, 221, 255, 0.15)),
    repeating-linear-gradient(90deg, transparent 0 48px, rgba(51, 221, 255, 0.04) 49px 50px);
  background-size: 100% 15px, auto;
  opacity: 0.68;
}

.hero__art--flightdeck {
  position: relative;
  align-self: stretch;
  display: grid;
  place-items: center;
  min-height: 460px;
}

.hero__art--flightdeck > img {
  width: min(100%, 650px);
  filter: drop-shadow(0 30px 70px rgba(0, 0, 0, 0.55));
}

.hero__signal {
  position: absolute;
  right: 4%;
  top: 8%;
  display: grid;
  gap: 6px;
  min-width: 158px;
  padding: 18px;
  border: 1px solid rgba(51, 221, 255, 0.26);
  border-radius: 18px;
  background: rgba(4, 8, 16, 0.78);
  box-shadow: var(--flight-glow);
  backdrop-filter: blur(16px);
}

.hero__signal small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero__signal strong {
  color: var(--flight-cyan);
  font-size: 1.35rem;
}

.hero__tagline strong {
  color: var(--flight-cyan);
}

.flight-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.flight-stat {
  display: grid;
  gap: 5px;
  padding: 14px 15px;
  border: 1px solid var(--flight-line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.045);
}

.flight-stat strong {
  color: var(--flight-cyan);
  font-size: 0.92rem;
}

.flight-stat small {
  color: var(--muted);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.marquee-shell {
  overflow: hidden;
  margin: 18px 0 0;
  border-block: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 34px;
  padding: 13px 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  animation: jetstream-marquee 38s linear infinite;
}

.marquee-track span::before {
  content: "✦";
  margin-right: 34px;
  color: var(--flight-pink);
}

@keyframes jetstream-marquee {
  to { transform: translateX(-50%); }
}

.section--featured {
  position: relative;
  padding: clamp(24px, 4vw, 42px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 62, 181, 0.13), transparent 24rem),
    linear-gradient(145deg, rgba(16, 23, 34, 0.94), rgba(7, 10, 18, 0.94));
  box-shadow: var(--shadow);
}

.section--featured::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0 42%, rgba(51, 221, 255, 0.035) 46%, transparent 50%);
}

.ident-console {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.ident-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ident-button {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  font-weight: 850;
}

.ident-button:hover,
.ident-button:focus-visible {
  border-color: rgba(51, 221, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(51, 221, 255, 0.08);
}

.ident-visualizer {
  width: 210px;
  height: 92px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 5px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: #060914;
}

.ident-visualizer span {
  width: 8px;
  height: 16%;
  border-radius: 999px;
  background: linear-gradient(var(--flight-cyan), var(--flight-pink));
  transition: height 130ms ease;
}

.ident-visualizer.is-playing span {
  animation: ident-wave 680ms ease-in-out infinite alternate;
}

.ident-visualizer.is-playing span:nth-child(2n) { animation-delay: -260ms; }
.ident-visualizer.is-playing span:nth-child(3n) { animation-delay: -430ms; }

@keyframes ident-wave {
  from { height: 18%; }
  to { height: 95%; }
}

.crew-preview,
.merch-preview,
.studio-grid,
.crew-grid,
.merch-grid {
  display: grid;
  gap: 18px;
}

.crew-preview,
.crew-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.merch-preview,
.merch-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.crew-profile,
.merch-card,
.studio-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--flight-line);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(17, 24, 38, 0.94), rgba(7, 10, 18, 0.96));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.crew-profile {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  padding: 24px;
}

.crew-portrait {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: white;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.17), transparent 22%),
    linear-gradient(145deg, var(--profile-accent, var(--flight-cyan)), rgba(255, 62, 181, 0.32));
  font: 950 2.6rem/1 "Space Grotesk", sans-serif;
}

.crew-portrait::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 16px;
}

.crew-profile h3 {
  margin: 0 0 6px;
  font-size: 1.55rem;
}

.crew-profile__role {
  color: var(--profile-accent, var(--flight-cyan));
  font-weight: 900;
}

.crew-profile p,
.merch-card p,
.studio-card p {
  color: var(--muted);
  line-height: 1.65;
}

.tag-list,
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span,
.social-row a,
.social-row button {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
  text-decoration: none;
}

.social-row a:hover,
.social-row a:focus-visible,
.social-row button:hover,
.social-row button:focus-visible {
  color: var(--text);
  border-color: rgba(51, 221, 255, 0.42);
}

.merch-card {
  display: grid;
  grid-template-rows: 190px auto;
}

.merch-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 190px;
  overflow: hidden;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--merch-accent, var(--flight-pink)) 36%, transparent), transparent 58%),
    linear-gradient(145deg, #0a1020, #13081d);
}

.merch-card__body {
  padding: 20px;
}

.merch-card h3 {
  margin: 0 0 8px;
}

.merch-status {
  display: inline-flex;
  margin-top: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #071019;
  background: var(--flight-gold);
  font-size: 0.72rem;
  font-weight: 900;
}

.studio-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.studio-card {
  padding: 24px;
}

.studio-card h3 {
  margin-top: 0;
}

.settings-form {
  display: grid;
  gap: 16px;
}

.settings-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.settings-row:last-child {
  border-bottom: 0;
}

.settings-row select,
.settings-row input[type="text"] {
  min-width: 210px;
}

.toggle {
  width: 54px;
  height: 30px;
  position: relative;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 160ms ease, background 160ms ease;
}

.toggle:checked {
  background: rgba(51, 221, 255, 0.18);
}

.toggle:checked::after {
  transform: translateX(24px);
  background: var(--flight-cyan);
}

.version-timeline {
  display: grid;
  gap: 14px;
}

.version-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--flight-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.version-badge {
  align-self: start;
  padding: 8px 10px;
  border-radius: 10px;
  color: #061019;
  background: linear-gradient(135deg, var(--flight-cyan), #b7f9ff);
  text-align: center;
  font-weight: 900;
}

.version-item h3,
.version-item p {
  margin: 0;
}

.version-item p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.55;
}

.page-hero--compact {
  min-height: 390px;
  align-items: center;
}

.page-hero--compact .hero__description {
  max-width: 720px;
}

.callout-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(255, 204, 99, 0.22);
  border-radius: 22px;
  background: linear-gradient(120deg, rgba(255, 204, 99, 0.08), rgba(255, 62, 181, 0.06));
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.footer-socials a {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
  color: var(--text);
  border-color: rgba(51, 221, 255, 0.5);
}

body[data-contrast="high"] {
  --muted: #d0d7e3;
  --line: rgba(255, 255, 255, 0.22);
  --flight-line: rgba(255, 255, 255, 0.24);
}

body[data-density="compact"] .section {
  margin-top: 42px;
}

body[data-density="compact"] .card,
body[data-density="compact"] .crew-profile,
body[data-density="compact"] .studio-card {
  padding: 16px;
}

@media (max-width: 1180px) {
  .hero--v2 {
    grid-template-columns: 1fr;
  }

  .hero__art--flightdeck {
    min-height: 340px;
  }

  .merch-preview,
  .merch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .studio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .language-switcher {
    order: -1;
  }

  .flight-strip,
  .crew-preview,
  .crew-grid,
  .studio-grid,
  .ident-console,
  .callout-band {
    grid-template-columns: 1fr;
  }

  .crew-profile {
    grid-template-columns: 92px 1fr;
  }

  .ident-visualizer {
    width: 100%;
  }

  .settings-row {
    grid-template-columns: 1fr;
  }

  .settings-row select,
  .settings-row input[type="text"] {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 520px) {
  .merch-preview,
  .merch-grid {
    grid-template-columns: 1fr;
  }

  .crew-profile {
    grid-template-columns: 1fr;
  }

  .crew-portrait {
    width: 104px;
  }

  .flight-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track,
  .ident-visualizer.is-playing span {
    animation: none !important;
  }
}
