/* =========================================================================
   Radio Nashville — homepage hero (faithful Skyradio recreation)
   ========================================================================= */

/* The Elementor shortcode widget can shrink to content width inside a flex
   container, which makes the hero look off-center. Force it full width. */
.elementor-widget-shortcode:has(.rn-hero) {
	width: 100%;
}

.rn-hero {
	--rn-accent: #3fbabf;          /* Radio Nashville brand teal (badge + play) */
	--rn-accent-h: #4ad1d6;        /* hover */
	--rn-border: rgba(180, 220, 222, 0.45);

	width: 100%;
	background: transparent;       /* inherits the Elementor section's brand background */
	color: #fff;
	overflow: hidden;
}

.rn-hero *,
.rn-hero *::before,
.rn-hero *::after {
	box-sizing: border-box;
}

.rn-hero__inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: clamp(48px, 6vw, 80px) 24px;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: clamp(24px, 5vw, 80px);
}

/* ---- Left: collage --------------------------------------------------- */
.rn-hero__visual {
	position: relative;
	flex: 0 1 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.rn-hero__livebadge {
	position: absolute;
	top: 26px;
	left: 0;
	z-index: 2;
	background: var(--rn-accent);
	color: #06121f;
	font-size: 0.78rem;
	font-weight: 800;
	line-height: 1;
	padding: 7px 12px;
	border-radius: 8px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.rn-hero__collage-pic {
	display: contents;
}

.rn-hero__collage {
	display: block;
	width: auto !important;
	height: clamp(240px, 30vw, 400px) !important;
	max-width: 100% !important;
	object-fit: contain !important;
	object-position: bottom center;
	/* Fade the bottom of the collage into the section background (Skyradio-style). */
	-webkit-mask-image: linear-gradient(to bottom, #000 66%, transparent 100%);
	mask-image: linear-gradient(to bottom, #000 66%, transparent 100%);
}

.rn-hero__utils {
	display: flex;
	gap: 48px;
	justify-content: center;
	margin-top: -12px;
}

/* The parent theme paints every <button> with the brand gradient via a very
   high-specificity rule (#proradio-body button:not(...)). Override the few
   buttons we own with !important — cleanest reliable fix here. */
.rn-hero__util {
	display: inline-flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	text-align: center !important;
	gap: 6px;
	background: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	padding: 4px 6px !important;
	color: #fff !important;
	cursor: pointer;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.2;
	opacity: 0.92;
	box-shadow: none !important;
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.rn-hero__util .material-icons {
	display: block;
	font-size: 24px;
	line-height: 1;
}

.rn-hero__util span {
	display: block;
}

.rn-hero__util:hover,
.rn-hero__util:focus-visible {
	opacity: 1;
	transform: translateY(-1px);
	outline: none;
}

/* ---- Right: player --------------------------------------------------- */
.rn-hero__player {
	flex: 0 1 480px;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.rn-hero__station {
	display: flex;
	align-items: center;
	gap: 18px;
}

.rn-hero__play {
	flex: 0 0 auto;
	width: 64px !important;
	height: 64px !important;
	min-width: 0 !important;
	border-radius: 12px !important;
	border: 0 !important;
	background: var(--rn-accent) !important;
	color: #06121f !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	padding: 0 !important;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28) !important;
}

.rn-hero__play .material-icons {
	font-size: 40px;
	line-height: 1;
	margin-left: 4px;
}

.rn-hero__play:hover,
.rn-hero__play:focus-visible {
	transform: scale(1.06);
	background: var(--rn-accent-h) !important;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.34) !important;
	outline: none;
}

.rn-hero__station-text {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

.rn-hero__station-name {
	font-size: clamp(1.6rem, 3vw, 2.3rem);
	font-weight: 800;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

.rn-hero__station-sub {
	margin-top: 4px;
	font-size: clamp(0.95rem, 1.4vw, 1.1rem);
	font-weight: 600;
	color: rgba(255, 255, 255, 0.92);
}

/* Now-on-air card (stacked: artwork on top, info below) */
.rn-hero__nowbox {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 300px;
	margin-top: 22px;
	border: 1px solid var(--rn-border);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.05);
	overflow: hidden;
	text-decoration: none;
	color: #fff;
	transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.rn-hero__nowbox:hover,
.rn-hero__nowbox:focus-visible {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(180, 210, 255, 0.7);
	transform: translateY(-2px);
	outline: none;
}

.rn-hero__nowbox-artwrap {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.rn-hero__nowbox-art {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: opacity 0.35s ease, transform 0.5s ease;
}

.rn-hero__nowbox:hover .rn-hero__nowbox-art {
	transform: scale(1.04);
}

.rn-hero__nowbox-tag {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	background: var(--rn-accent);
	color: #06121f;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 6px;
}

.rn-hero__nowbox-play {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(6, 18, 31, 0.4);
	color: #fff;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.rn-hero__nowbox-play .material-icons {
	font-size: 52px;
}

.rn-hero__nowbox:hover .rn-hero__nowbox-play,
.rn-hero__nowbox:focus-visible .rn-hero__nowbox-play {
	opacity: 1;
}

.rn-hero__nowbox-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.3;
	padding: 12px 16px 14px;
}

.rn-hero__nowbox-title {
	font-size: 1.12rem;
	font-weight: 800;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rn-hero__nowbox-sub {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.78);
}

.rn-hero__nowbox-sub:empty {
	display: none;
}

/* Played-tracks button */
.rn-hero__history {
	align-self: flex-end;
	display: inline-flex;
	align-items: center;
	gap: 2px;
	margin-top: 16px;
	padding: 7px 8px 7px 14px;
	border: 1px solid var(--rn-border);
	border-radius: 6px;
	color: #fff;
	text-decoration: none;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	transition: background 0.18s ease, border-color 0.18s ease;
}

.rn-hero__history .material-icons {
	font-size: 18px;
}

.rn-hero__history:hover,
.rn-hero__history:focus-visible {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(180, 210, 255, 0.7);
	outline: none;
}

/* Touch: keep the now-box play affordance visible. */
@media (hover: none) {
	.rn-hero__nowbox-play {
		opacity: 1;
	}
}

/* ---- Mobile: stack, collage on top ----------------------------------- */
@media (max-width: 820px) {
	.rn-hero__inner {
		flex-direction: column;
		gap: 20px;
		padding: 22px 18px;
	}

	/* Mobile order: player (station + now-box) first, collage image last. */
	.rn-hero__player {
		order: 1;
		flex-basis: auto;
		width: 100%;
		max-width: 460px;
		align-items: center;
		text-align: center;
	}

	.rn-hero__visual {
		order: 2;
		padding-bottom: 0;
	}

	.rn-hero__station {
		justify-content: center;
	}

	.rn-hero__collage {
		width: auto !important;
		max-width: 86% !important;
		height: auto !important;
		max-height: 250px !important;
	}

	/* Collage + "Nu Live" badge hidden on mobile unless enabled in Radio Hero settings. */
	.rn-hero:not(.rn-hero--show-collage-mobile) .rn-hero__collage,
	.rn-hero:not(.rn-hero--show-collage-mobile) .rn-hero__livebadge {
		display: none !important;
	}

	.rn-hero__utils {
		margin-top: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rn-hero__play,
	.rn-hero__util,
	.rn-hero__nowbox,
	.rn-hero__nowbox-art,
	.rn-hero__nowbox-play,
	.rn-hero__history {
		transition: none;
	}
}
