/* =============================================================================
   Featured Event block
   template-parts/event-feature.php and event-feature-empty.php, on the
   homepage and the Events page.

   The layout lives here in the site design. Every colour is a --ce-feature-*
   token, so a Tour's Campaign Look (assets/css/campaign-<slug>.css) only has to
   remap the tokens; it never restates layout. Mobile-first.
   ============================================================================= */

.ce-feature {
	/* Site design defaults: black base with a purple lift, bright gold accent. */
	--ce-feature-base: #0a0a0a;
	--ce-feature-base-2: #1d1030;
	--ce-feature-accent: #e6b800;
	--ce-feature-accent-hi: #ffd700;
	--ce-feature-accent-hover: #ffe566;
	--ce-feature-ink: #ffffff;
	--ce-feature-ink-soft: rgba(255, 255, 255, 0.8);
	--ce-feature-on-accent: #0a0a0a;
	--ce-feature-edge: rgba(255, 215, 0, 0.2);          /* section rules */
	--ce-feature-frame: rgba(255, 215, 0, 0.38);        /* art frame, hairlines */
	--ce-feature-outline: rgba(255, 215, 0, 0.6);       /* badge and outline button borders */
	--ce-feature-tint: rgba(255, 215, 0, 0.08);         /* badge fill */
	--ce-feature-tint-hover: rgba(255, 215, 0, 0.12);   /* outline button hover fill */
	--ce-feature-glow: rgba(123, 47, 190, 0.28);        /* glow around art and button */
	--ce-feature-haze-a: rgba(255, 20, 147, 0.1);       /* lower-left pool */
	--ce-feature-haze-b: rgba(123, 47, 190, 0.2);       /* upper-right pool */

	position: relative;
	overflow: hidden;
	padding-block: clamp(3rem, 8vw, 6rem);
	color: var(--ce-feature-ink);
	background:
		radial-gradient(120% 70% at 50% 0%, var(--ce-feature-base-2) 0%, var(--ce-feature-base) 64%);
	border-block: 1px solid var(--ce-feature-edge);
}

/* Two soft pools of light: no images, no animation. */
.ce-feature__haze {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(42% 32% at 18% 88%, var(--ce-feature-haze-a), transparent 70%),
		radial-gradient(36% 30% at 86% 14%, var(--ce-feature-haze-b), transparent 70%);
}

.ce-feature__inner {
	position: relative;
	display: grid;
	gap: 2rem;
	justify-items: center;
	text-align: center;
}

/* ── Art ─────────────────────────────────────────────────────────────────── */
.ce-feature__art {
	width: min(100%, 420px);
	border-radius: 18px;
	overflow: hidden;
	box-shadow:
		0 0 0 1px var(--ce-feature-frame),
		0 24px 60px rgba(0, 0, 0, 0.55),
		0 0 80px var(--ce-feature-glow);
}

.ce-feature__art-img {
	display: block;
	width: 100%;
	height: auto;
}

/* ── Content ─────────────────────────────────────────────────────────────── */
.ce-feature__content {
	display: grid;
	justify-items: center;
	gap: 0.9rem;
	max-width: 34rem;
}

.ce-feature__badge {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 0.25rem 0.9rem;
	border: 1px solid var(--ce-feature-outline);
	border-radius: 999px;
	font-family: var(--ce-font-heading);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ce-feature-accent-hi);
	background: var(--ce-feature-tint);
}

.ce-feature__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0;
	font-family: var(--ce-font-heading);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--ce-feature-accent-hi);
}

.ce-feature__eyebrow::before,
.ce-feature__eyebrow::after {
	content: "";
	width: 2rem;
	height: 1px;
	background: currentColor;
	opacity: 0.6;
}

.ce-feature__title {
	margin: 0;
	font-family: var(--ce-font-heading);
	font-size: clamp(1.75rem, 6.4vw, 3rem);
	font-weight: 800;
	line-height: 1.1;
	text-wrap: balance;
	color: var(--ce-feature-ink);
}

/* A campaign title is artwork (lock-up images); the words it shows sit in
   .screen-reader-text inside the same heading. */
.ce-feature__title--lockup {
	display: grid;
	justify-items: center;
	gap: 0.25rem;
	line-height: 0;
}

.ce-feature__lockup {
	display: block;
	height: auto;
	max-width: 100%;
}

.ce-feature__line {
	margin: 0.5rem 0 0;
	font-family: var(--ce-font-heading);
	font-size: clamp(1.125rem, 4.2vw, 1.5rem);
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ce-feature-accent-hi);
}

.ce-feature__sub {
	margin: 0;
	font-size: 1rem;
	color: var(--ce-feature-ink);
}

.ce-feature__body {
	margin: 0.25rem 0 0;
	line-height: 1.7;
	color: var(--ce-feature-ink-soft);
}

/* ── Shows (On Sale Events) ──────────────────────────────────────────────── */
.ce-feature__shows {
	list-style: none;
	width: 100%;
	margin: 0.5rem 0 0;
	padding: 0;
	text-align: left;
}

.ce-feature__show {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 0.15rem 1rem;
	padding: 0.7rem 0;
	border-bottom: 1px solid var(--ce-feature-edge);
	font-size: 0.9375rem;
}

.ce-feature__show:first-child {
	border-top: 1px solid var(--ce-feature-edge);
}

.ce-feature__show-city {
	font-weight: 600;
	color: var(--ce-feature-ink);
}

.ce-feature__show-date {
	grid-column: 1;
	color: var(--ce-feature-accent-hi);
	font-variant-numeric: tabular-nums;
}

.ce-feature__show-status {
	grid-column: 2;
	grid-row: 1 / span 2;
	padding: 0.2rem 0.7rem;
	border: 1px solid var(--ce-feature-outline);
	border-radius: 999px;
	font-family: var(--ce-font-heading);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--ce-feature-accent-hi);
	background: var(--ce-feature-tint);
}

.ce-feature__show-status--coming-soon,
.ce-feature__show-status--sold-out {
	border-color: rgba(255, 255, 255, 0.2);
	color: rgba(255, 255, 255, 0.7);
	background: rgba(255, 255, 255, 0.05);
}

.ce-feature__show-status--complete::before {
	content: "\2713\00a0";
}

/* A played Show sits back (set by the server, or by tour-status.js at 23:59). */
.ce-feature__show.is-done .ce-feature__show-city,
.ce-feature__show.is-done .ce-feature__show-date {
	opacity: 0.55;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.ce-feature__ctas {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	width: 100%;
	margin-top: 0.75rem;
}

.ce-feature .ce-btn {
	min-height: 48px;
	white-space: nowrap;
}

.ce-feature .ce-feature__cta {
	background: linear-gradient(180deg, var(--ce-feature-accent-hi) 0%, var(--ce-feature-accent) 100%);
	color: var(--ce-feature-on-accent);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.4),
		0 0 0 1px var(--ce-feature-outline),
		0 6px 20px rgba(0, 0, 0, 0.45),
		0 0 22px var(--ce-feature-glow);
}

.ce-feature .ce-feature__cta:hover,
.ce-feature .ce-feature__cta:focus-visible {
	background: linear-gradient(180deg, var(--ce-feature-accent-hover) 0%, var(--ce-feature-accent-hi) 100%);
	color: var(--ce-feature-on-accent);
}

.ce-feature .ce-feature__secondary {
	background: transparent;
	color: var(--ce-feature-accent-hi);
	border: 1.5px solid var(--ce-feature-outline);
	box-shadow: none;
}

.ce-feature .ce-feature__secondary:hover,
.ce-feature .ce-feature__secondary:focus-visible {
	background: var(--ce-feature-tint-hover);
	color: var(--ce-feature-ink);
	border-color: var(--ce-feature-accent-hi);
}

.ce-feature .ce-btn:focus-visible,
.ce-feature__related a:focus-visible,
.ce-feature__promoter a:focus-visible {
	outline: 2px solid var(--ce-feature-ink);
	outline-offset: 3px;
}

/* ── Text links under the buttons ────────────────────────────────────────── */
.ce-feature__related,
.ce-feature__promoter {
	margin: 0;
	font-size: 0.9375rem;
	color: var(--ce-feature-ink-soft);
}

/* The links carry their own padding (tap target), so pull the two lines together. */
.ce-feature__related + .ce-feature__promoter {
	margin-top: -0.9rem;
}

.ce-feature__related a,
.ce-feature__promoter a {
	/* 44px tap target without changing the line's look. */
	display: inline-block;
	padding-block: 0.6rem;
	color: var(--ce-feature-accent-hi);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ce-feature__related a {
	font-family: var(--ce-font-heading);
	font-weight: 700;
	letter-spacing: 0.04em;
}

.ce-feature__related a::after {
	content: "\00a0\2192";
}

.ce-feature__related a:hover,
.ce-feature__promoter a:hover {
	color: var(--ce-feature-ink);
}

/* ── Nothing upcoming ────────────────────────────────────────────────────── */
.ce-feature--empty .ce-feature__body {
	max-width: 30rem;
}

/* ── More upcoming Events under the feature (Events page) ────────────────── */
.ce-events-more {
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.ce-events-more__heading {
	margin: 0 0 1.75rem;
	font-family: var(--ce-font-heading);
	font-size: clamp(1.5rem, 4vw, 2rem);
	font-weight: 800;
	text-align: center;
	color: var(--ce-text, #fff);
}

/* ── Tablet: buttons side by side ────────────────────────────────────────── */
@media (min-width: 768px) {
	.ce-feature__ctas {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		width: auto;
	}
}

/* ── Desktop: art left, content right ────────────────────────────────────── */
@media (min-width: 1024px) {
	.ce-feature__inner {
		grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
		gap: 4rem;
		align-items: center;
		justify-items: start;
		text-align: left;
	}

	.ce-feature__art {
		width: 100%;
	}

	.ce-feature__content,
	.ce-feature__title--lockup {
		justify-items: start;
	}

	.ce-feature__ctas {
		justify-content: flex-start;
	}

	/* Without art (and when nothing is upcoming) the block stays one centred column. */
	.ce-feature--no-art .ce-feature__inner {
		grid-template-columns: minmax(0, 1fr);
		justify-items: center;
		text-align: center;
	}

	.ce-feature--no-art .ce-feature__content {
		justify-items: center;
	}

	.ce-feature--no-art .ce-feature__ctas {
		justify-content: center;
	}
}
