/* masthead.css - v1.5 homepage masthead
   Covers: masthead shell, nav, hook, metrics strip, next-ep card, proof bar. */

/* ============================================================
   MASTHEAD SHELL
============================================================ */
.masthead {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.masthead-glows {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.masthead-glows .glow-bloom--ember {
  top: -100px;
  left: 30%;
  opacity: 0.07;
}

.masthead-glows .glow-bloom--violet {
  top: 200px;
  right: -100px;
  opacity: 0.06;
}

/* ============================================================
   MASTHEAD NAV
============================================================ */
.masthead-nav {
  position: relative;
  z-index: 10;
  padding: 20px 0 0;
}

.masthead-nav .v15-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Brand lockup */
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-wordmark-top {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ember);
  letter-spacing: -0.01em;
}

.brand-wordmark-sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s;
  white-space: nowrap;
  min-height: 44px;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-links a:hover { color: var(--white); }

/* ============================================================
   MASTHEAD BODY
============================================================ */
.masthead-body {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 48px 0 32px;
}

.masthead-body .v15-container {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: center;
}

/* Hook copy zone */
.masthead-hook {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.masthead-kicker { margin-bottom: 4px; }

.masthead-h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--white);
}
.masthead-h1 em {
  font-style: normal;
  color: var(--ember);
}

.masthead-sub {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  color: var(--white);
  max-width: 520px;
  line-height: 1.65;
}
/* closing thesis tag - de-emphasized so an early-stopping mobile reader
   still gets the lead (AD-6); copy unchanged */
.masthead-sub-tag {
  opacity: 0.7;
}

.masthead-tagline {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================================
   METRICS STRIP (4 cells)
============================================================ */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 8px;
}

.metric-cell {
  background: var(--surface);
  padding: 16px 12px;
  text-align: center;
}

.metric-number {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--ember);
  line-height: 1;
  display: block;
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-top: 5px;
}

/* ============================================================
   NEXT EPISODE CARD
============================================================ */
.next-ep-card {
  background: var(--surface);
  border: 1px solid rgba(224, 90, 43, 0.35);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.next-ep-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ember) 0%, var(--violet) 100%);
}

.next-ep-glow {
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: var(--ember);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.06;
  pointer-events: none;
}

.next-ep-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.next-ep-num-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.next-ep-channel {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.next-ep-num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--ember);
  line-height: 1;
}

.next-ep-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
}

.next-ep-tagline {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--white);
  line-height: 1.55;
  opacity: 0.8;
}

.next-ep-airtime {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(224, 90, 43, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(224, 90, 43, 0.2);
}

.next-ep-airtime-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.next-ep-airtime-val {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--ember);
}

.next-ep-cta {
  display: flex;
  gap: 10px;
}

/* fallback when no next episode is available */
.next-ep-card--empty {
  border-color: var(--border);
}
.next-ep-card--empty::before {
  background: linear-gradient(90deg, var(--border) 0%, var(--border) 100%);
}

/* ============================================================
   PROOF BAR
============================================================ */
.masthead-proof {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border);
}

.masthead-proof .v15-container {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.masthead-proof .v15-container::-webkit-scrollbar { display: none; }

.proof-item {
  flex: 1;
  min-width: 120px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-right: 1px solid var(--border);
}
.proof-item:last-child { border-right: none; }

.proof-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.proof-val {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
}

.proof-val em {
  font-style: normal;
  color: var(--ember);
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .masthead-body .v15-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .next-ep-card { max-width: 480px; }
  .metrics-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .nav-links { display: none; }
  .masthead-h1 { font-size: 26px; }
  .masthead-sub { font-size: 15px; max-width: none; }
  .metrics-strip { grid-template-columns: repeat(2, 1fr); }
  /* 4 proof cells must fit 375px with no horizontal scroll (AD-9) */
  .proof-item { min-width: 0; flex: 1; padding: 12px 10px; }
}
