/* ==========================================================================
   TotalRacing Hub — Spotify Podcasts front-end
   Matches the Newsblock theme (totalracing.gr): sharp corners, accent red
   #ec211e, scheme-aware via the theme's [data-scheme] attribute.
   ========================================================================== */

/* --- Scheme tokens ---------------------------------------------------- */

.trhub-front-wrap,
.trhub-front-shortcode {
	--trhub-text: #111111;
	--trhub-text-soft: #3a3a3c;
	--trhub-muted: #818181;
	--trhub-border: #e9ecef;
	--trhub-surface: #ffffff;
	--trhub-surface-hover: #f8f9fa;
	--trhub-accent: #ec211e;
	--trhub-accent-soft: #fdeaee;
	--trhub-button: #000000;
	--trhub-button-text: #ffffff;
	--trhub-button-hover: #282828;
	--trhub-spotify: #1db954;
	--trhub-spotify-hover: #17a149;
	box-sizing: border-box;
}

[data-scheme="dark"] .trhub-front-wrap,
[data-scheme="dark"] .trhub-front-shortcode,
[site-data-scheme="dark"] .trhub-front-wrap,
[site-data-scheme="dark"] .trhub-front-shortcode {
	--trhub-text: #f2f2f3;
	--trhub-text-soft: #d4d4d6;
	--trhub-muted: #858585;
	--trhub-border: #3a3a3c;
	--trhub-surface: #262628;
	--trhub-surface-hover: #2e2e30;
	--trhub-accent: #ec211e;
	--trhub-accent-soft: rgba(236, 33, 30, 0.14);
	--trhub-button: #3d3d3d;
	--trhub-button-text: #ffffff;
	--trhub-button-hover: #242424;
	--trhub-spotify: #1db954;
	--trhub-spotify-hover: #22c95c;
}

/* --- Layout ------------------------------------------------------------ */

.trhub-front-wrap *,
.trhub-front-shortcode * {
	box-sizing: border-box;
}

.trhub-front-wrap {
	max-width: 860px;
	margin: 0 auto;
	padding: 40px 20px 64px;
	font-family: 'Ubuntu', 'Open Sans', -apple-system, sans-serif;
	line-height: 1.65;
	color: var(--trhub-text);
	background: transparent;
}

/* --- Header ------------------------------------------------------------ */

.trhub-front-eyebrow {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--trhub-accent);
	margin-bottom: 8px;
}

.trhub-front-title {
	font-size: 38px;
	font-weight: 700;
	line-height: 1.12;
	margin: 0 0 10px;
	color: var(--trhub-text);
}

.trhub-front-subtitle {
	font-size: 15px;
	color: var(--trhub-muted);
	margin: 0 0 26px;
	max-width: 640px;
}

.trhub-front-meta {
	color: var(--trhub-muted);
	font-size: 13px;
	margin: 4px 0;
}

/* --- Breadcrumb -------------------------------------------------------- */

.trhub-front-breadcrumb {
	font-size: 13px;
	color: var(--trhub-muted);
	margin-bottom: 14px;
}

.trhub-front-breadcrumb a {
	color: var(--trhub-muted);
	text-decoration: none;
}

.trhub-front-breadcrumb a:hover { color: var(--trhub-accent); }

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

.trhub-front-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: 13px;
	color: var(--trhub-button-text);
	background: var(--trhub-button);
	padding: 11px 18px;
	border-radius: 0;
	text-decoration: none;
	transition: background 0.2s ease, transform 0.15s ease;
	margin-top: 8px;
}

.trhub-front-link:hover {
	background: var(--trhub-button-hover);
	color: var(--trhub-button-text);
	transform: translateY(-1px);
}

/* "Listen on Spotify" — brand green, sharp corners like the theme. */
.trhub-front-link--spotify {
	background: var(--trhub-spotify);
	color: #ffffff;
}

.trhub-front-link--spotify:hover {
	background: var(--trhub-spotify-hover);
	color: #ffffff;
}

.trhub-front-link--spotify::before {
	content: '';
	width: 14px;
	height: 14px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 0C5.4 0 0 5.4 0 12s5.4 12 12 12 12-5.4 12-12S18.66 0 12 0zm5.52 17.28c-.24.36-.72.48-1.08.24-2.88-1.8-6.6-2.16-10.92-1.2-.42.12-.84-.12-.96-.54-.12-.42.12-.84.54-.96 4.8-1.08 9-.72 12.24 1.32.36.24.48.72.24 1.08zm1.44-3.12c-.3.48-.9.6-1.32.3-3.3-2.04-8.4-2.64-12.36-1.44-.48.12-1.02-.12-1.14-.6-.12-.48.12-1.02.6-1.14 4.56-1.32 10.2-.66 14.04 1.68.42.24.6.9.3 1.32zm.12-3.24c-3.96-2.4-10.56-2.64-14.28-1.44-.6.18-1.2-.12-1.38-.72-.18-.6.12-1.2.72-1.38 4.2-1.32 11.4-1.08 15.84 1.68.54.3.72 1.02.42 1.56-.3.48-1.02.66-1.56.36z'/%3E%3C/svg%3E");
	background-size: contain;
}

/* --- Shows grid -------------------------------------------------------- */

.trhub-front-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 18px;
}

.trhub-front-card {
	background: var(--trhub-surface);
	border: 1px solid var(--trhub-border);
	border-radius: 0;
	padding: 22px;
	display: flex;
	flex-direction: column;
	transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.trhub-front-card:hover {
	background: var(--trhub-surface-hover);
	transform: translateY(-2px);
	box-shadow: 0 12px 28px -18px rgba(0, 0, 0, 0.35);
}

.trhub-front-card h2 {
	margin: 0 0 6px;
	font-size: 19px;
	font-weight: 700;
}

.trhub-front-card h2 a {
	color: var(--trhub-text);
	text-decoration: none;
}

.trhub-front-card h2 a:hover { color: var(--trhub-accent); }

.trhub-front-card p {
	margin: 4px 0;
	font-size: 14px;
	color: var(--trhub-muted);
}

.trhub-front-card .trhub-front-link {
	align-self: flex-start;
	margin-top: auto;
	padding-top: 13px;
}

/* --- Single show: seasons --------------------------------------------- */

.trhub-front-season {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--trhub-accent);
	margin: 36px 0 0;
	padding: 0 0 10px;
}

.trhub-front-season::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--trhub-border);
}

/* --- Episode list ------------------------------------------------------ */

.trhub-front-episodes {
	list-style: none;
	margin: 0;
	padding: 0;
}

.trhub-front-episodes li {
	display: flex;
	align-items: baseline;
	gap: 12px;
	padding: 14px 4px;
	border-bottom: 1px solid var(--trhub-border);
	transition: background 0.15s ease;
}

.trhub-front-episodes li:hover { background: var(--trhub-surface-hover); }

.trhub-front-episodes a {
	font-weight: 600;
	color: var(--trhub-text);
	text-decoration: none;
	font-size: 15px;
}

.trhub-front-episodes a:hover { color: var(--trhub-accent); }

.trhub-front-episodes .trhub-front-meta {
	margin-left: auto;
	white-space: nowrap;
	color: var(--trhub-muted);
	font-size: 12px;
}

/* --- Episode page ------------------------------------------------------ */

.trhub-front-body {
	margin: 20px 0;
	font-size: 16px;
	color: var(--trhub-text-soft);
}

.trhub-front-body p { margin: 0 0 14px; }

.trhub-front-wrap audio {
	width: 100%;
	max-width: 520px;
	margin: 8px 0 16px;
	border-radius: 0;
}

/* --- Shortcode container ---------------------------------------------- */

.trhub-front-shortcode {
	margin: 20px 0;
	color: var(--trhub-text);
}

/* --- Empty state ------------------------------------------------------- */

.trhub-front-empty {
	text-align: center;
	padding: 60px 20px;
	color: var(--trhub-muted);
}

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

@media (max-width: 640px) {
	.trhub-front-wrap { padding: 28px 16px 48px; }
	.trhub-front-title { font-size: 30px; }
	.trhub-front-grid { grid-template-columns: 1fr; }
	.trhub-front-episodes li { flex-wrap: wrap; }
	.trhub-front-episodes .trhub-front-meta { margin-left: 0; white-space: normal; }
}
