/* =====================================================================
 * 51-hero.css — the latest-episode hero as the mockups' glass card
 * ---------------------------------------------------------------------
 * Ricky msg 76: "Emulate the designs Arturo sent previously with their
 * hero sections as reference." Mockups p4/p5: a glass card with a
 * hairline that catches light, a play glyph over the image, aurora behind
 * the text, a planet's horizon under it (deck p.8: "Planetary horizon
 * supporting the idea of world-scale perspective"). Markup unchanged
 * ([fb_hero_latest], functions.php:1741); all CSS.
 * ===================================================================== */

/* Glass edge: the border becomes a gradient by painting it from the
   border-box under a padding-box fill. Restates 15-home.css's .fb-hero
   field in full (three glows + color7) so nothing is inherited by halves. */
body .fb-hero.fb-hero-episode {
	border: 1px solid transparent;
	background:
		radial-gradient(8% 70% at 70% 0%, rgba(0, 170, 104, .14) 0%, rgba(0, 170, 104, 0) 70%) padding-box,
		radial-gradient(7% 60% at 82% 0%, rgba(122, 31, 184, .18) 0%, rgba(122, 31, 184, 0) 70%) padding-box,
		radial-gradient(90% 150% at 12% 115%, rgba(122, 31, 184, .40) 0%, rgba(122, 31, 184, 0) 62%) padding-box,
		radial-gradient(80% 140% at 74% 118%, rgba(56, 214, 240, .22) 0%, rgba(56, 214, 240, 0) 64%) padding-box,
		radial-gradient(60% 120% at 50% -10%, rgba(44, 192, 170, .12) 0%, rgba(44, 192, 170, 0) 60%) padding-box,
		linear-gradient(var(--awb-color7), var(--awb-color7)) padding-box,
		linear-gradient(135deg, rgba(199, 125, 255, .55) 0%, rgba(56, 214, 240, .28) 38%, rgba(255, 255, 255, .06) 70%, rgba(44, 192, 170, .30) 100%) border-box;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}

/* Planetary horizon: the top of a very wide ellipse showing along the
   bottom of the card, cyan limb plus a small gold sunrise at its crest.
   Replaces the 1px line 15-home.css draws in the same pseudo-element. */
body .fb-hero.fb-hero-episode::after {
	left: -15%;
	right: -15%;
	top: 93%;
	bottom: auto;
	height: 160%;
	border-radius: 50%;
	border-top: 1px solid rgba(56, 214, 240, .55);
	background: radial-gradient(12% 6% at 50% 0%, rgba(232, 162, 76, .45) 0%, rgba(232, 162, 76, 0) 100%);
	box-shadow: 0 -12px 40px rgba(56, 214, 240, .12);
	opacity: 1;
	pointer-events: none;
	z-index: 0;
}
/* keep the art and the text above the arc's glow */
body .fb-hero-episode .fb-hero-art,
body .fb-hero-episode .fb-hero-text {
	position: relative;
	z-index: 1;
}
@media (max-width: 900px) {
	/* stacked card: keep the arc inside the bottom padding, below the buttons */
	body .fb-hero.fb-hero-episode::after { top: 96.5%; }
}

/* Play glyph over the episode art (mockups p4, p5, p8). The art link is
   aria-hidden and out of the tab order already, so this is decoration. */
body .fb-hero-art::before {
	content: "";
	position: absolute;
	z-index: 3;
	left: 50%;
	top: 50%;
	width: 68px;
	height: 68px;
	margin: -34px 0 0 -34px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .45);
	background: rgba(6, 8, 15, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%23FFFFFF'/%3E%3C/svg%3E") 55% 50% / 26px 26px no-repeat;
	box-shadow: 0 0 0 6px rgba(122, 31, 184, .18), 0 10px 30px rgba(0, 0, 0, .45);
	transition: transform .2s ease, background-color .2s ease;
	pointer-events: none;
}
body .fb-hero-art:hover::before {
	transform: scale(1.06);
	background-color: rgba(122, 31, 184, .75);
}
body .fb-hero-art {
	box-shadow: 0 20px 50px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .06);
}
@media (max-width: 640px) {
	body .fb-hero-art::before {
		width: 56px;
		height: 56px;
		margin: -28px 0 0 -28px;
		background-size: 22px 22px;
	}
}
@media (prefers-reduced-motion: reduce) {
	body .fb-hero-art::before { transition: none; }
	body .fb-hero-art:hover::before { transform: none; }
}
