/* ── Podcast Single Post Template ─────────────────────────────
   Self-loaded by single-podcast.php via wp_enqueue_scripts.
   Colours reference theme.json presets via shorthand aliases in lib.css.
   ─────────────────────────────────────────────────────────── */

/* ── 1. Hero bar ────────────────────────────────────────────── */

.podcast-hero {
	background: var(--wp--preset--color--deep-navy);
	padding: 3rem 0 2.5rem;
}

.podcast-hero-inner {
	max-width: 760px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.podcast-eyebrow {
	display: inline-block;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--salmon);
	margin: 0 0 1rem;
}

.podcast-hero-title {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.6rem, 4vw, 2.375rem);
	font-weight: 500;
	line-height: 1.18;
	letter-spacing: -0.02em;
	color: #fff;
	margin: 0 0 0.75rem;
}

.podcast-hero-date {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.5);
	margin: 0;
}

/* ── 2. Content area ────────────────────────────────────────── */

.podcast-content-wrap {
	background: #fff;
	padding: 3rem 1.5rem 4rem;
}

.podcast-content-inner {
	max-width: 760px;
	margin: 0 auto;
}

/* Podbean iframe */
.podcast-content-inner iframe {
	width: 100%;
	border-radius: 12px;
}

/* YouTube embed */
.podcast-content-inner .wp-block-embed {
	margin-bottom: 1.5rem;
}

.podcast-content-inner .wp-block-embed__wrapper {
	border-radius: 12px;
	overflow: hidden;
}

/* Platform links gallery */
.podcast-content-inner .wp-block-gallery {
	margin-top: 0;
	margin-bottom: 0;
}

.podcast-content-inner .wp-block-gallery img {
	max-height: 44px;
	width: auto;
	object-fit: contain;
	transition: opacity 0.2s ease;
}

.podcast-content-inner .wp-block-gallery img:hover {
	opacity: 0.75;
}

/* Spacers between blocks */
.podcast-content-inner .wp-block-spacer {
	height: 24px !important;
}

/* Show notes headings */
.podcast-content-inner h3 {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--wp--preset--color--deep-navy);
	margin-top: 2rem;
	margin-bottom: 0.75rem;
}

.podcast-content-inner h3:first-of-type {
	margin-top: 0;
}

/* Show notes body text */
.podcast-content-inner p {
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
	line-height: 1.75;
	color: var(--wp--preset--color--primary);
	margin-bottom: 1rem;
}

/* Lists in show notes */
.podcast-content-inner ul,
.podcast-content-inner ol {
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
	line-height: 1.75;
	color: var(--wp--preset--color--primary);
	padding-left: 1.25rem;
	margin-bottom: 1rem;
}

.podcast-content-inner li {
	margin-bottom: 0.4rem;
}

/* Links in content */
.podcast-content-inner a {
	color: var(--wp--preset--color--teal);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.podcast-content-inner a:hover {
	color: var(--wp--preset--color--teal-dark);
}

/* Rank Math FAQ block */
.podcast-content-inner .wp-block-rank-math-faq-block {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid #e5e7eb;
}

.podcast-content-inner .rank-math-question {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--wp--preset--color--deep-navy);
	margin-bottom: 0.5rem;
}

.podcast-content-inner .rank-math-answer p {
	font-size: 0.95rem;
	margin-bottom: 1.25rem;
}

/* ── 3. Bottom CTA ──────────────────────────────────────────── */

.podcast-cta {
	background: var(--wp--preset--color--teal);
	padding: 3.5rem 1.5rem;
	text-align: center;
}

.podcast-cta-inner {
	max-width: 600px;
	margin: 0 auto;
}

.podcast-cta-heading {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 500;
	color: #fff;
	margin: 0 0 0.75rem;
}

.podcast-cta-text {
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.85);
	margin: 0 0 1.5rem;
}

.podcast-cta-btn {
	display: inline-block;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--wp--preset--color--teal);
	background: #fff;
	padding: 0.75rem 2rem;
	border-radius: 8px;
	text-decoration: none;
	transition: background 0.2s ease, transform 0.2s ease;
}

.podcast-cta-btn:hover {
	background: var(--wp--preset--color--off-white);
	transform: translateY(-2px);
}

/* ── 4. Related episodes ────────────────────────────────────── */

.podcast-related {
	background: var(--wp--preset--color--off-white);
	padding: 4rem 1.5rem;
}

.podcast-related-inner {
	max-width: 960px;
	margin: 0 auto;
}

.podcast-related-heading {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.5rem;
	font-weight: 500;
	color: var(--wp--preset--color--deep-navy);
	margin: 0 0 2rem;
	text-align: center;
}

.podcast-related-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.podcast-related-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	display: flex;
	flex-direction: column;
}

.podcast-related-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(10, 30, 63, 0.1);
}

.podcast-related-thumb {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--wp--preset--color--deep-navy);
	display: flex;
	align-items: center;
	justify-content: center;
}

.podcast-related-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Fallback when no thumbnail */
.podcast-related-thumb-fallback {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.3);
}

.podcast-related-body {
	padding: 1.25rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.podcast-related-date {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.72rem;
	font-weight: 500;
	color: var(--wp--preset--color--mid-grey);
	margin-bottom: 0.5rem;
}

.podcast-related-title {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--wp--preset--color--deep-navy);
	margin: 0;
	flex: 1;
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 768px) {
	.podcast-hero {
		padding: 2rem 0 1.75rem;
	}

	.podcast-content-wrap {
		padding: 2rem 1rem 3rem;
	}

	.podcast-related-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.podcast-cta {
		padding: 2.5rem 1rem;
	}
}

@media (min-width: 769px) and (max-width: 1024px) {
	.podcast-related-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
