/* JoburgTV Dual: late-loaded overrides (enqueued after theme.css / pages.css / channels.css / team.css). */

/* ---------------------------------------------------------------
   1. Footer is always dark, in both colour modes.
   The footer re-declares every colour variable locally, so theme.css rules that use
   var(--surface), var(--text), var(--muted), var(--line) resolve to the dark values even when
   <html data-theme="light"> redefines them on :root. Explicit colours back this up.
   --------------------------------------------------------------- */
.site-footer,
:root[data-theme="light"] .site-footer,
:root[data-theme="dark"] .site-footer {
	--bg: #0b0b0b;
	--surface: #101010;
	--surface-2: #1d1d1d;
	--text: #f5f5f5;
	--muted: #b4b4b4;
	--line: rgba(255, 255, 255, .14);
	--red: #ff3b4a;
	--red-hover: #ff5663;
	--shadow: 0 18px 55px rgba(0, 0, 0, .38);
	color-scheme: dark;
	background: #0b0b0b !important;
	background-image: none !important;
	border-top: 1px solid rgba(255, 255, 255, .14);
	color: #f5f5f5;
}

/* Decorative red glow stays (red accent on black); no light patch is possible because the base is solid black. */
:root[data-theme="light"] .site-footer:before {
	background: radial-gradient(circle, rgba(227, 38, 54, .18), transparent 65%);
}

:root[data-theme] .site-footer h2,
:root[data-theme] .site-footer .footer-brand h2,
:root[data-theme] .site-footer .footer-links h2,
:root[data-theme] .site-footer .footer-copy h2 { color: #f5f5f5; }

:root[data-theme] .site-footer .footer-kicker { color: #ff3b4a; }

:root[data-theme] .site-footer p,
:root[data-theme] .site-footer .footer-brand p,
:root[data-theme] .site-footer .footer-copy p,
:root[data-theme] .site-footer address { color: #b4b4b4; }

:root[data-theme] .site-footer .footer-copy address { border-bottom-color: rgba(255, 255, 255, .14); }

:root[data-theme] .site-footer a,
:root[data-theme] .site-footer .footer-links a,
:root[data-theme] .site-footer .back-top { color: #b4b4b4; }

:root[data-theme] .site-footer .footer-links a:hover,
:root[data-theme] .site-footer .footer-links a:focus-visible,
:root[data-theme] .site-footer .back-top:hover,
:root[data-theme] .site-footer .back-top:focus-visible { color: #fff; }

:root[data-theme] .site-footer .footer-phone { color: #fff; }
:root[data-theme] .site-footer .footer-phone:hover,
:root[data-theme] .site-footer .footer-phone:focus-visible { color: #ff5663; }

:root[data-theme] .site-footer .social-links a {
	color: #f5f5f5;
	background: rgba(255, 255, 255, .05);
	border-color: rgba(255, 255, 255, .25);
}
:root[data-theme] .site-footer .social-links a:hover,
:root[data-theme] .site-footer .social-links a:focus-visible {
	color: #fff;
	background: #e32636;
	border-color: #e32636;
}
.site-footer a:focus-visible { outline: 2px solid #ff5663; outline-offset: 3px; border-radius: 3px; }

/* ---------------------------------------------------------------
   2. Homepage channel cards with category thumbnails.
   Layer order (back to front): .channel-media (image / JTV mark) -> .channel-glow tint
   -> :before scrim -> text. The card stays a dark card in both colour modes so white text is always legible.
   --------------------------------------------------------------- */
.channel-card .channel-media {
	position: absolute;
	z-index: -3;
	inset: 0;
	overflow: hidden;
	background: inherit;
}
.channel-card .channel-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transform: scale(1);
	transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.channel-card:hover .channel-media img,
.channel-card:focus-visible .channel-media img { transform: scale(1.06); }

/* Scrim: strong at the bottom where the title/tagline sit, lighter at the top; colour tint over the top-left. */
.channel-card.has-image:before {
	background:
		linear-gradient(0deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .66) 38%, rgba(0, 0, 0, .18) 74%, rgba(0, 0, 0, .38) 100%),
		linear-gradient(135deg, color-mix(in srgb, var(--channel-colour) 42%, transparent), transparent 58%);
}
.channel-card.has-image:hover:before { transform: none; }
/* The glow becomes a soft tint instead of an opaque disc covering the photo. */
.channel-card.has-image .channel-glow {
	z-index: -2;
	opacity: .38;
	filter: blur(30px);
	mix-blend-mode: screen;
}
.channel-card.has-image .channel-label {
	background: rgba(0, 0, 0, .42);
	border-color: rgba(255, 255, 255, .5);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}
.channel-card.has-image .channel-name,
.channel-card.has-image .channel-description { text-shadow: 0 1px 8px rgba(0, 0, 0, .55); }
.channel-card.has-image .channel-description { color: rgba(255, 255, 255, .9); }

/* Fallback: coloured gradient card + JTV mark (never blank). */
.channel-card .channel-media--empty {
	display: grid;
	place-items: center;
	background:
		radial-gradient(circle at 78% 18%, color-mix(in srgb, var(--channel-colour) 55%, transparent), transparent 55%),
		linear-gradient(160deg, color-mix(in srgb, var(--channel-colour) 28%, #0b0b0b), #0b0b0b 85%);
}
.channel-card.no-image .channel-glow { opacity: .5; filter: blur(26px); }
.channel-card .channel-mark {
	margin-top: -14px;
	color: rgba(255, 255, 255, .26);
	font-size: clamp(34px, 5vw, 54px);
	font-weight: 900;
	letter-spacing: 8px;
	text-indent: 8px;
	line-height: 1;
	user-select: none;
}

/* Keep the tagline clear of the arrow on narrow cards. */
.channel-card .channel-description { padding-right: 26px; max-width: 236px; }

/* Both modes: keep the card edge visible on light pages. */
:root[data-theme="light"] .channel-card { border-color: rgba(0, 0, 0, .12); box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
:root[data-theme="light"] .channel-card:hover { box-shadow: 0 16px 36px rgba(0, 0, 0, .22); }

@media (max-width: 680px) {
	.channel-card .channel-mark { font-size: 30px; letter-spacing: 5px; text-indent: 5px; }
}

@media (prefers-reduced-motion: reduce) {
	.channel-card .channel-media img { transition: none; }
	.channel-card:hover .channel-media img,
	.channel-card:focus-visible .channel-media img { transform: none; }
}

/* ---------------------------------------------------------------
   3. Footer layout with two blocks (brand + visit & contact; the "Explore" link column was removed).
   Desktop and tablet: brand left, contact right. Mobile: stacked.
   --------------------------------------------------------------- */
.site-footer .footer-inner {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: end;
	gap: 30px 48px;
}
.site-footer .footer-copy {
	grid-column: auto;
	justify-self: end;
	text-align: right;
}
@media (max-width: 680px) {
	.site-footer .footer-inner {
		grid-template-columns: 1fr;
		align-items: start;
		gap: 28px;
	}
	.site-footer .footer-copy {
		justify-self: start;
		text-align: left;
	}
}
