/* ===========================================================================
 * Book Spotlight — site-wide section above the footer.
 * Uses the same palette and type as the Editions templates. Tokens are
 * namespaced --sp-* and scoped to .smc-spotlight so they load on every
 * page without touching SmartMag's own variables.
 * ======================================================================== */

.smc-spotlight {
	--sp-teal:      #12aecf;
	--sp-teal-dark: #0d8aaa;
	--sp-white:     #ffffff;
	--sp-text:      rgba(255, 255, 255, 0.78);
	--sp-muted:     rgba(255, 255, 255, 0.5);
	--sp-rule:      rgba(255, 255, 255, 0.12);

	position: relative;
	width: 100%;
	background: linear-gradient(160deg, #1e2428 0%, #171c20 50%, #12181c 100%);
	color: var(--sp-text);
	overflow: hidden;
	clear: both;
}

/* Same soft teal glow used behind the Editions hero. */
.smc-spotlight::before {
	content: '';
	position: absolute;
	top: -200px;
	left: -120px;
	width: 640px;
	height: 640px;
	background: radial-gradient(circle, rgba(18, 174, 207, 0.08) 0%, transparent 65%);
	pointer-events: none;
}

/* Scoped reset. */
.smc-spotlight,
.smc-spotlight *,
.smc-spotlight *::before,
.smc-spotlight *::after {
	box-sizing: border-box;
}
.smc-spotlight h2,
.smc-spotlight p,
.smc-spotlight dl,
.smc-spotlight dt,
.smc-spotlight dd {
	margin: 0;
	padding: 0;
}

.smc-spotlight-inner {
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
	padding: 5rem 2rem;
	display: grid;
	grid-template-columns: minmax(200px, 400px) 1fr;
	gap: 4.5rem;
	align-items: center;
}

/* --- Cover -------------------------------------------------------------- */

.smc-spotlight-cover img,
.smc-spotlight-cover-placeholder {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 2px 4px 4px 2px;
	box-shadow:
		-6px 0 0 -2px rgba(0, 0, 0, 0.35),  /* hint of a spine */
		0 30px 60px -20px rgba(0, 0, 0, 0.7);
}

.smc-spotlight-cover-placeholder {
	aspect-ratio: 2 / 3;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 0.5rem;
	padding: 1.75rem 1.5rem;
	background: linear-gradient(180deg, #2b3338 0%, #1a2024 100%);
	border-top: 4px solid var(--sp-teal);
}
.smc-spotlight .smc-spotlight-cover-placeholder span {
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 800;
	font-size: 2.2rem;
	line-height: 1;
	text-transform: uppercase;
	color: var(--sp-white);
}
.smc-spotlight .smc-spotlight-cover-placeholder small {
	font-family: 'Playfair Display', serif;
	font-style: italic;
	font-size: 0.95rem;
	color: var(--sp-muted);
}

/* --- Body --------------------------------------------------------------- */

.smc-spotlight .smc-spotlight-memorial {
	padding-bottom: 1.75rem;
	margin-bottom: 1.75rem;
	border-bottom: 1px solid var(--sp-rule);
	max-width: 38rem;
}

.smc-spotlight .smc-spotlight-eyebrow {
	font-family: 'Barlow', sans-serif;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--sp-teal);
	margin-bottom: 0.9rem;
}

.smc-spotlight .smc-spotlight-note {
	font-family: 'Playfair Display', serif;
	font-style: italic;
	font-size: 1.15rem;
	line-height: 1.75;
	color: var(--sp-white);
}

.smc-spotlight .smc-spotlight-title {
	font-family: 'Barlow Condensed', sans-serif;
	font-size: clamp(2.4rem, 4.5vw, 3.6rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	color: var(--sp-white);
}

.smc-spotlight .smc-spotlight-author {
	margin-top: 0.5rem;
	font-family: 'Playfair Display', serif;
	font-style: italic;
	font-size: 1rem;
	color: var(--sp-muted);
}

.smc-spotlight .smc-spotlight-blurb {
	margin-top: 1.1rem;
	max-width: 36rem;
	font-family: 'Barlow', sans-serif;
	font-size: 1rem;
	line-height: 1.7;
	color: var(--sp-text);
}

/* Prices: two columns separated by a hairline, teal rule on top. */
.smc-spotlight .smc-spotlight-prices {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 2rem;
	max-width: 36rem;
	border-top: 3px solid var(--sp-teal);
}
.smc-spotlight .smc-spotlight-price {
	padding: 1.1rem 1.5rem 0 0;
}
.smc-spotlight .smc-spotlight-price + .smc-spotlight-price {
	padding-left: 1.5rem;
	border-left: 1px solid var(--sp-rule);
}
.smc-spotlight .smc-spotlight-price dt {
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 2rem;
	font-weight: 700;
	line-height: 1;
	color: var(--sp-white);
}
.smc-spotlight .smc-spotlight-price dd {
	margin-top: 0.45rem;
	font-family: 'Barlow', sans-serif;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--sp-text);
}

.smc-spotlight .smc-spotlight-stock {
	margin-top: 1.5rem;
	font-family: 'Barlow', sans-serif;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--sp-teal);
}

/* --- Buttons ------------------------------------------------------------ */

.smc-spotlight-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.75rem;
}

.smc-spotlight .smc-spotlight-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.95rem 1.6rem;
	text-align: center;
	border: 2px solid var(--sp-teal);
	border-radius: 2px;
	background: var(--sp-teal);
	color: var(--sp-white);
	font-family: 'Barlow', sans-serif;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.smc-spotlight .smc-spotlight-btn:hover {
	background: var(--sp-teal-dark);
	border-color: var(--sp-teal-dark);
	color: var(--sp-white);
}
.smc-spotlight .smc-spotlight-btn.is-outline {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.35);
}
.smc-spotlight .smc-spotlight-btn.is-outline:hover {
	border-color: var(--sp-teal);
	color: var(--sp-teal);
	background: transparent;
}
.smc-spotlight .smc-spotlight-btn:focus-visible {
	outline: 2px solid var(--sp-white);
	outline-offset: 3px;
}

/* Fallback in case the parent theme doesn't define it. */
.smc-spotlight .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 860px) {
	.smc-spotlight-inner {
		grid-template-columns: 1fr;
		gap: 2.5rem;
		padding: 3.5rem 1.5rem;
	}
}

@media (max-width: 480px) {
	.smc-spotlight .smc-spotlight-prices {
		grid-template-columns: 1fr;
	}
	.smc-spotlight .smc-spotlight-price + .smc-spotlight-price {
		padding-left: 0;
		border-left: 0;
		margin-top: 1.1rem;
		padding-top: 1.1rem;
		border-top: 1px solid var(--sp-rule);
	}
	.smc-spotlight-btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.smc-spotlight .smc-spotlight-btn {
		transition: none;
	}
}
