/* ============================================================
   Beverly Hills Village Briefing — podcast page
   Elevated dark civic theme, brand-aligned with dvlprr.io.
   Preserves all DOM ids/classes consumed by app.js.
   ============================================================ */

:root {
  --canvas: #06080a;
  --surface: #0e1118;
  --surface-2: #14171f;
  --snow: #f5f7ff;
  --muted: #9aa1ad;
  --muted-2: #6b7280;
  --purple: #7c3aed;
  --purple-bright: #9d5cff;
  --purple-soft: rgba(124, 58, 237, 0.16);
  --green: #2d5a4a;
  --green-bright: #3d7a64;
  --line: rgba(245, 247, 255, 0.08);
  --line-strong: rgba(245, 247, 255, 0.14);
  --radius: 16px;
  --radius-lg: 28px;
  --max: 72rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  color: var(--snow);
  background: var(--canvas);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--purple);
  color: #fff;
}

/* ---------- Floating glass nav ---------- */
.site-nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: calc(100% - 2rem);
  max-width: 56rem;
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.6rem 0.55rem 1.1rem;
  border-radius: 999px;
  background: rgba(20, 23, 31, 0.55);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand__mark {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  flex-shrink: 0;
}

.brand__word {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: var(--snow);
}

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.nav-back:hover {
  color: var(--snow);
  background: rgba(245, 247, 255, 0.05);
}

.nav-back svg {
  width: 14px;
  height: 14px;
}

/* ---------- Hero ---------- */
.podcast-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.podcast-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(100deg, rgba(6, 8, 10, 0.96) 30%, rgba(6, 8, 10, 0.55) 75%, rgba(6, 8, 10, 0.78) 100%),
    url("/bhv-podcast/assets/hero-1920x1080.png") center / cover no-repeat;
}

/* Purple glow wash on top of the photo */
.podcast-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 70% at 85% 20%, rgba(124, 58, 237, 0.28), transparent 70%);
  mix-blend-mode: screen;
}

.podcast-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 9rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  align-items: center;
  gap: 3rem;
}

.podcast-hero__copy {
  max-width: 40rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple-bright);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple-bright);
  box-shadow: 0 0 12px var(--purple-bright);
}

.podcast-hero h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 1.2rem 0 1.1rem;
}

.podcast-hero h1 span {
  color: var(--purple-bright);
  font-style: italic;
}

.lede {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  font-weight: 300;
  color: var(--muted);
  margin: 0 0 2rem;
  max-width: 38ch;
}

.subscribe {
  max-width: 38rem;
}

.listen-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.subscribe-hint {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 34ch;
}

.subscribe-feed {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  color: var(--muted-2);
}

.subscribe-feed__link {
  color: var(--purple-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.subscribe-feed__link:hover {
  color: #b98cff;
}

.subscribe-feed__sep {
  opacity: 0.45;
}

.subscribe-feed__url {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.72rem;
  color: var(--muted);
  word-break: break-all;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn svg {
  width: 15px;
  height: 15px;
}

.btn--primary {
  background: var(--purple);
  color: #fff;
}

.btn--primary:hover {
  background: var(--purple-bright);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.35);
}

.btn--copied {
  background: #22c55e;
}

.btn--copied:hover {
  background: #16a34a;
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.3);
}

.btn--ghost {
  background: rgba(245, 247, 255, 0.05);
  border-color: var(--line-strong);
  color: var(--snow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  background: rgba(245, 247, 255, 0.1);
  transform: translateY(-2px);
}

/* Cover artwork */
.podcast-hero__art {
  justify-self: end;
}

.podcast-hero__art img {
  display: block;
  width: 100%;
  max-width: 16rem;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 60px rgba(124, 58, 237, 0.2);
}

/* ---------- Main ---------- */
main {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 2rem 3rem;
}

.section-heading {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.section-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Latest episode — featured glass card */
.latest {
  position: relative;
  background: linear-gradient(160deg, #160f24 0%, var(--surface) 70%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 2rem 2.2rem;
  margin-bottom: 3rem;
  overflow: hidden;
}

.latest::before {
  content: "";
  position: absolute;
  top: -6rem;
  right: -6rem;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--purple) 0%, transparent 70%);
  opacity: 0.25;
  filter: blur(40px);
  pointer-events: none;
}

.latest > * {
  position: relative;
}

.latest .section-heading {
  color: var(--purple-bright);
}

.latest .section-heading::after {
  background: rgba(124, 58, 237, 0.25);
}

.latest h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.1;
  margin: 0 0 0.4rem;
}

.latest-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.latest audio {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 999px;
}

.latest-desc {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
  white-space: pre-line;
}

/* Episode list */
.episode-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.episode-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.1rem;
  align-items: center;
  padding: 1.15rem 1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}

.episode-item::before {
  content: "";
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--purple-soft);
  border: 1px solid rgba(124, 58, 237, 0.3);
  /* play glyph */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='%239d5cff'%3E%3Cpath d='M5 3l14 9-14 9V3z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.episode-item:hover {
  background: rgba(245, 247, 255, 0.04);
  border-color: var(--line);
  transform: translateX(2px);
}

.episode-item h3 {
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 0.2rem;
  line-height: 1.3;
}

.episode-item h3 a {
  color: var(--snow);
  transition: color 0.2s;
}

.episode-item h3 a:hover {
  color: var(--purple-bright);
}

.episode-date {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

.episode-duration {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.episodes-loading,
.episodes-empty {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Disclaimer */
.disclaimer {
  margin-top: 3rem;
  padding: 1.3rem 1.6rem;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--muted);
}

.disclaimer strong {
  color: var(--snow);
  font-weight: 600;
}

.disclaimer a {
  color: var(--purple-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.disclaimer a:hover {
  color: #b98cff;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer p {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
  font-size: 0.82rem;
  color: var(--muted-2);
}

.site-footer a {
  color: var(--purple-bright);
  transition: color 0.2s;
}

.site-footer a:hover {
  color: #b98cff;
}

/* Responsive */
@media (max-width: 768px) {
  html { font-size: 16px; }

  .podcast-hero__inner {
    grid-template-columns: 1fr;
    padding: 7rem 1.25rem 3rem;
    gap: 2rem;
  }

  .podcast-hero__art {
    justify-self: start;
    order: -1;
  }

  .podcast-hero__art img {
    max-width: 9rem;
  }

  main {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .latest {
    padding: 1.5rem 1.4rem;
  }

  .episode-item {
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
  }

  .episode-duration {
    grid-column: 2;
    margin-top: 0.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }
}
