/* ==========================================================================
   Homepage-specific styles
   Loads conditionally on the front page only (see functions.php).
   ========================================================================== */

/* ---- Pulse animation for the "Latest" indicator ----------------------- */
@keyframes eos-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.eos-pulse-dot {
	display: inline-block;
	width: 6px; height: 6px;
	background: var(--accent);
	border-radius: 50%;
	animation: eos-pulse 2s infinite;
}

/* ---- Hero ------------------------------------------------------------- */
.fp-hero {
	background: var(--ink-900);
	color: white;
	position: relative;
	overflow: hidden;
}
.fp-hero-grid-bg {
	position: absolute; inset: 0;
	opacity: 0.6;
	background-image:
		linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
	background-size: 56px 56px;
	pointer-events: none;
}
.fp-hero-glow {
	position: absolute; top: -200px; right: -100px;
	width: 600px; height: 600px;
	background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
	opacity: 0.18;
	filter: blur(40px);
	pointer-events: none;
}
.fp-hero-inner {
	position: relative;
	padding: 64px 0;
	/* Flex with explicit widths — more predictable than CSS grid in
	   customizer iframes where viewport-based ratios get unreliable. */
	display: flex;
	align-items: flex-start;
	gap: 48px;
}
.fp-hero-text {
	flex: 1 1 auto;
	min-width: 0;
}
.fp-hero .fp-nowplaying {
	flex: 0 0 360px;
	max-width: 360px;
}
.fp-hero h1 {
	color: white;
	font-weight: 400;
	max-width: 100%;
	font-size: clamp(32px, 3.6vw, 56px);
	line-height: 1.06;
	overflow-wrap: break-word;
}
.fp-hero h1 em {
	font-style: italic;
	font-weight: 400;
	color: var(--ink-300);
}
.fp-hero-eyebrow-row {
	display: flex; align-items: center; gap: 12px; margin-bottom: 28px;
}
.fp-hero-eyebrow-row .divider-h {
	width: 32px; height: 1px; background: rgba(255,255,255,0.2);
}
.fp-hero-lede {
	color: rgba(255,255,255,0.65);
	font-size: 17px;
	line-height: 1.55;
	margin-top: 24px;
	max-width: 520px;
}
.fp-hero-buttons { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.fp-hero-buttons .btn-primary { height: 48px; padding: 0 22px; }
/* "Listen now" — solid white pill on the dark hero. Color/border are
   declared in main.css with the higher-specificity selector so the
   theme can swap accent variations without touching this file. */
.fp-hero-buttons .btn-ghost {
	height: 48px; padding: 0 22px;
}
.fp-hero-listen-row {
	display: flex; align-items: center; gap: 24px; margin-top: 40px;
	color: rgba(255,255,255,0.5);
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	flex-wrap: wrap;
}
.fp-hero-listen-row a { color: rgba(255,255,255,0.85); }

/* Now-playing card */
.fp-nowplaying {
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 8px;
	padding: 24px;
	-webkit-backdrop-filter: blur(8px);
	        backdrop-filter: blur(8px);
	/* Pulled up a bit so the eyebrow line of the card aligns roughly with
	   the headline's first baseline, mirroring the prototype's intent. */
	margin-top: 8px;
}
.fp-nowplaying-header { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.fp-nowplaying-art {
	height: 140px;
	margin-bottom: 20px;
	background: linear-gradient(135deg, var(--accent) 0%, var(--accent-ink) 100%);
	color: rgba(255,255,255,0.6);
	border: 0;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	overflow: hidden;
	position: relative;
}
.fp-nowplaying-art img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.fp-nowplaying h3 { color: white; font-size: 18px; line-height: 1.3; margin-bottom: 8px; }
.fp-nowplaying-meta { color: rgba(255,255,255,0.55); font-size: 13px; margin-bottom: 16px; }
.fp-nowplaying-progress {
	height: 3px; background: rgba(255,255,255,0.1);
	border-radius: 2px; overflow: hidden; margin-bottom: 8px;
}
.fp-nowplaying-progress-fill { height: 100%; background: var(--accent); }
.fp-nowplaying-time {
	display: flex; justify-content: space-between;
	font-family: var(--font-mono); font-size: 10px;
	color: rgba(255,255,255,0.5);
}
.fp-nowplaying-controls { display: flex; gap: 8px; margin-top: 18px; align-items: center; }
.fp-nowplaying-play {
	width: 40px; height: 40px;
	border-radius: 50%; border: 0;
	background: white; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
}
.fp-nowplaying-mini {
	width: 36px; height: 36px;
	border-radius: 50%;
	border: 1px solid rgba(255,255,255,0.2);
	background: transparent;
	color: white; cursor: pointer;
	font-size: 11px; font-family: var(--font-mono);
}
.fp-nowplaying-disc-link {
	margin-left: auto;
	font-size: 12px;
	color: rgba(255,255,255,0.7);
	display: flex; align-items: center; gap: 6px;
}

/* ---- Stats Bar -------------------------------------------------------- */
.fp-stats {
	border-top: 1px solid var(--ink-200);
	border-bottom: 1px solid var(--ink-200);
}
/* Use flex with explicit basis instead of grid — robust against external
   CSS (BoldGrid Bootstrap, etc.) that may inject conflicting rules on
   `.container`. Each stat takes exactly 25% width minus the gap so 4 stays
   on one row. */
.fp-stats-grid {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	padding: 44px 32px;
	gap: 24px;
	align-items: stretch;
}
.fp-stat {
	flex: 1 1 0;
	min-width: 0;
	padding-left: 20px;
	/* Per the prototype (homepage.jsx Stat component), every stat — including
	   the first — gets a left divider. Visually anchors all four cells. */
	border-left: 1px solid var(--ink-200);
}
/* Number is the first thing inside each cell — give it a predictable top so
   all 4 numbers visually anchor to the same horizontal baseline. */
.fp-stat-num {
	font-family: var(--font-display);
	font-size: 40px;
	line-height: 1;
	color: var(--ink-900);
	letter-spacing: -0.02em;
	margin: 0;
	display: block;
}
.fp-stat-label {
	margin-top: 12px;
	display: block;
}
.fp-stat-sub {
	font-size: 12px;
	color: var(--ink-500);
	margin-top: 4px;
	display: block;
}

/* ---- Specialties grid ------------------------------------------------- */
.fp-section { padding: var(--section-y) 0; }
.fp-specialties-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	border: 1px solid var(--ink-200);
	border-right: 0;
	border-bottom: 0;
}
.fp-specialties-grid .specialty-card {
	border-top: 0;
	border-left: 0;
	border-color: var(--ink-200);
	border-style: solid;
	border-width: 0 1px 1px 0;
	text-decoration: none;
}

/* ---- Latest episodes -------------------------------------------------- */
.fp-episodes { padding: var(--section-y) 0; background: var(--ink-50); }
.fp-episodes-table {
	background: var(--paper);
	border: 1px solid var(--ink-200);
	border-radius: 8px;
	padding: 8px 24px;
}
.fp-episodes-head {
	display: grid;
	grid-template-columns: 60px 100px 1fr 200px 120px 80px;
	gap: 24px;
	padding: 16px 0;
	border-bottom: 1px solid var(--ink-200);
	font-family: var(--font-mono);
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ink-500);
}
.fp-episodes-head span:last-child { text-align: right; }
.fp-episode-row {
	display: grid;
	grid-template-columns: 60px 100px 1fr 200px 120px 80px;
	align-items: center;
	gap: 24px;
	padding: var(--row-y) 0;
	border-bottom: 1px solid var(--ink-150);
	transition: background .15s;
	text-decoration: none;
}
.fp-episode-row:last-child { border-bottom: 0; }
.fp-episode-row:hover { background: var(--ink-50); }
.fp-episode-num { color: var(--ink-400); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; }
.fp-episode-title-line {
	font-family: var(--font-display);
	font-size: 18px;
	color: var(--ink-900);
	letter-spacing: -0.01em;
	margin-bottom: 4px;
	line-height: 1.3;
}
.fp-episode-guest { font-size: 13px; color: var(--ink-500); }
.fp-episode-released { color: var(--ink-500); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; }
.fp-episode-discussion { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-600); }
.fp-episode-play-btn {
	width: 36px; height: 36px;
	border-radius: 50%;
	border: 1px solid var(--ink-200);
	background: var(--paper);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: auto;
}
.fp-episode-play-btn-wrap { text-align: right; }

/* ---- Forum preview ---------------------------------------------------- */
.fp-forum-grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: 32px;
}
.fp-forum-feed-head {
	padding: 16px 24px;
	border-bottom: 1px solid var(--ink-200);
	display: flex;
	align-items: center;
	gap: 12px;
}
.fp-forum-thread {
	display: block;
	padding: 20px 24px;
	border-bottom: 1px solid var(--ink-150);
	text-decoration: none;
	color: inherit;
	transition: background .15s;
}
.fp-forum-thread:last-child { border-bottom: 0; }
.fp-forum-thread:hover { background: var(--ink-50); }
.fp-forum-thread-chips { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.fp-forum-thread-chips .chip { height: 20px; font-size: 10px; padding: 0 8px; }
.fp-forum-thread-title {
	font-family: var(--font-display);
	font-size: 17px;
	color: var(--ink-900);
	letter-spacing: -0.01em;
	margin-bottom: 8px;
	line-height: 1.35;
}
.fp-forum-thread-meta {
	display: flex;
	align-items: center;
	gap: 16px;
	font-size: 12px;
	color: var(--ink-500);
	flex-wrap: wrap;
}
.fp-forum-thread-author-row {
	display: flex; align-items: center; gap: 6px;
}
.fp-forum-thread-author-row .author-name { color: var(--ink-700); }
.fp-forum-thread-time {
	margin-left: auto;
	font-family: var(--font-mono);
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.fp-join-card {
	background: var(--ink-900);
	color: white;
	padding: 28px;
	border-radius: 8px;
	position: relative;
	overflow: hidden;
}
.fp-join-card h3 { color: white; margin-top: 14px; margin-bottom: 12px; font-size: 24px; }
.fp-join-card p { color: rgba(255,255,255,0.65); font-size: 14px; margin-bottom: 20px; }
.fp-join-features {
	display: flex;
	flex-direction: column;
	gap: 12px;
	font-size: 13px;
	color: rgba(255,255,255,0.85);
	margin: 0 0 48px;
	padding: 0;
}
/* Defensive: if a parent CSS reset removes the bottom margin, the
   inline-style override on the button itself adds the same gap above. */
.fp-join-card .btn-primary { margin-top: 8px !important; }
.fp-join-features li { display: flex; gap: 10px; align-items: center; list-style: none; }
.fp-online-card { padding: 24px; }
.fp-online-stack { display: flex; margin-top: 12px; margin-bottom: 12px; }
.fp-online-stack > * { border: 2px solid var(--paper); border-radius: 50%; }
.fp-online-stack > *:not(:first-child) { margin-left: -8px; }
.fp-online-more {
	width: 32px; height: 32px;
	background: var(--ink-100);
	display: flex; align-items: center; justify-content: center;
	font-size: 11px; font-family: var(--font-mono);
	color: var(--ink-700);
}

/* ---- Host block ------------------------------------------------------- */
.fp-host { padding: var(--section-y) 0; border-top: 1px solid var(--ink-200); }
/* Bio gets the wider column; portrait is sized down to a more proportional
   3-col equivalent so it doesn't dominate the section. */
.fp-host-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.8fr) minmax(220px, 320px);
	gap: 64px;
	align-items: start;
}
.fp-host-bio p { font-size: 16px; color: var(--ink-700); margin-bottom: 18px; }
.fp-host-portrait {
	aspect-ratio: 4/5;
	border-radius: 6px;
	max-width: 320px;
	width: 100%;
	height: auto;
	object-fit: cover;
	display: block;
}
.fp-host-meta {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--ink-200);
	display: flex;
	justify-content: space-between;
}
.fp-host-name { font-family: var(--font-display); font-size: 20px; color: var(--ink-900); }
.fp-host-credentials { font-size: 13px; color: var(--ink-500); margin-top: 4px; }
.fp-host-tag { color: var(--ink-400); white-space: nowrap; font-family: var(--font-mono); font-size: 12px; }

/* ---- About CTA band (between hosts and quote) ------------------------ */
.fp-about-cta {
	border-top: 1px solid var(--ink-200);
	padding: var(--section-y) 0;
	background: var(--ink-50);
}
.fp-about-cta-inner {
	display: grid;
	grid-template-columns: 1.4fr auto;
	gap: 56px;
	align-items: center;
}
.fp-about-cta-h2 {
	margin-top: 14px;
	margin-bottom: 18px;
	font-size: clamp(28px, 3.2vw, 40px);
	max-width: 640px;
}
.fp-about-cta-lede {
	color: var(--ink-600);
	font-size: 16px;
	line-height: 1.6;
	max-width: 620px;
}
.fp-about-cta-actions { display: flex; gap: 12px; }
@media (max-width: 820px) {
	.fp-about-cta-inner { grid-template-columns: 1fr; gap: 24px; }
	.fp-about-cta-actions .btn { width: 100%; }
}

/* ---- Quote section ---------------------------------------------------- */
.fp-quote-section {
	background: var(--ink-900);
	color: white;
	padding: var(--section-y) 0;
}
.fp-quote-inner { max-width: 880px; margin: 0 auto; text-align: center; padding: 0 var(--gutter); }
.fp-quote-text {
	font-family: var(--font-display);
	font-size: 36px;
	font-style: italic;
	color: white;
	line-height: 1.25;
	letter-spacing: -0.015em;
	font-weight: 400;
	min-height: 1em;
	transition: opacity 0.6s;
}
.fp-quote-author-row {
	margin-top: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	transition: opacity 0.6s;
}
.fp-quote-author-name { font-size: 14px; color: white; }
.fp-quote-author-meta { color: var(--ink-400); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; }

/* ---- Newsletter ------------------------------------------------------- */
.fp-newsletter-card {
	border: 1px solid var(--ink-200);
	border-radius: 8px;
	padding: 56px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: center;
}
.fp-newsletter-card h2 { margin-top: 14px; margin-bottom: 16px; }
.fp-newsletter-card p { color: var(--ink-600); }
.fp-newsletter-form { display: flex; gap: 8px; margin-bottom: 14px; }
.fp-newsletter-form .input { flex: 1; height: 48px; }
.fp-newsletter-form .btn-primary { height: 48px; }
.fp-newsletter-disclaimer { font-size: 12px; color: var(--ink-500); }

/* ---- Mobile responsive ----------------------------------------------- */
/* Collapse the hero to one column ONLY at tablet width — was 980px which
   was too eager and triggered inside the customizer iframe. */
@media (max-width: 820px) {
	.fp-hero-inner { flex-direction: column; gap: 40px; }
	.fp-hero .fp-nowplaying { flex: 1 1 auto; max-width: none; width: 100%; }
	.fp-stats-grid { flex-wrap: wrap !important; gap: 32px; }
	.fp-stat { flex: 1 1 calc(50% - 32px); }
	.fp-specialties-grid { grid-template-columns: repeat(2, 1fr); }
	.fp-episodes-head, .fp-episode-row {
		grid-template-columns: 50px 1fr 100px;
	}
	.fp-episodes-head span:nth-child(2),
	.fp-episodes-head span:nth-child(4),
	.fp-episodes-head span:nth-child(5),
	.fp-episode-row .fp-episode-row-hide { display: none; }
	.fp-forum-grid { grid-template-columns: 1fr; gap: 24px; }
	.fp-host-grid { grid-template-columns: 1fr; gap: 40px; }
	.fp-newsletter-card { grid-template-columns: 1fr; padding: 32px; gap: 32px; }
}
@media (max-width: 720px) {
	.fp-hero-inner { padding: 56px 0; }
	.fp-hero-listen-row { gap: 12px; margin-top: 32px; }
	.fp-stats-grid { padding: 28px 16px; gap: 24px; }
	.fp-stat { flex: 1 1 calc(50% - 24px); }
	.fp-specialties-grid { grid-template-columns: 1fr; }
	.fp-quote-text { font-size: 24px; }
	.fp-newsletter-card { padding: 24px; }
}
