/**
 * Cinestar Child: event-sponsors.css
 * The partners of an Event, in tiers (template-parts/event-sponsors.php).
 *
 * Moved out of event-single.css unchanged in 1.14.0, so a Past Event's recap
 * can show the same block without the sales page's stylesheet. Loaded on an
 * Event page only when that Event has partners (functions.php), before first
 * paint: on the sales page the block sits right under the hero.
 */

/* ════════════════════════════════════════════════════════════════════
   E1. SHOW SPONSORS — v4 "Spotlight Stage" (theatrical tier hierarchy)
   The stage metaphor carries the hierarchy: two spotlight cones land on
   the Presented By hero chips (with an elliptical floor pool beneath),
   Powered By sits on a full-bleed raised platform band with a magenta
   footlight, the Official Visa Partner gets a purple ribbon lockup, and
   Co-Powered By is a monochrome logo wall whose marks restore to full
   colour on a white pill at hover/focus.

   Tier rendering is chosen by each tier's 'style' key in
   ce_get_event_sponsors_data() (stage | riser | ribbon | wall); the
   template falls back to 'riser' for anything unrecognised.
   ════════════════════════════════════════════════════════════════════ */

.ce-ev-show-sponsors {
	position: relative;
	overflow: hidden;
	padding: 96px 0 128px;
	background:
		radial-gradient(1100px 480px at 50% -140px, rgba(255, 214, 90, 0.06), transparent 65%),
		#070710;
}

/* ── Spotlight cones: soft conic wedges from the top edge ── */
.ce-ev-show-sponsors__cone {
	position: absolute;
	top: -8px;
	width: 560px;
	height: 560px;
	z-index: 1;
	pointer-events: none;
	background: conic-gradient(from 0deg at 50% 0%,
		transparent 0deg 158deg,
		rgba(255, 222, 130, 0.05) 166deg,
		rgba(255, 230, 165, 0.13) 173deg,
		rgba(255, 236, 185, 0.22) 180deg,
		rgba(255, 230, 165, 0.13) 187deg,
		rgba(255, 222, 130, 0.05) 194deg,
		transparent 202deg 360deg);
	-webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.72) 52%, transparent 94%);
	        mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.72) 52%, transparent 94%);
	transform-origin: 50% 0;
	animation: ce-ev-sp-breathe 7s ease-in-out infinite alternate;
}

.ce-ev-show-sponsors__cone::before {
	/* lamp head glow at the apex */
	content: '';
	position: absolute;
	top: -12px;
	left: 50%;
	width: 64px;
	height: 26px;
	transform: translateX(-50%);
	border-radius: 50%;
	background: radial-gradient(50% 50% at 50% 50%,
		rgba(255, 242, 200, 0.85),
		rgba(255, 215, 0, 0.28) 55%,
		transparent 78%);
}

.ce-ev-show-sponsors__cone--left  { left: calc(50% - 528px); transform: rotate(-8deg); }
.ce-ev-show-sponsors__cone--right { left: calc(50% - 32px);  transform: rotate(8deg); }

@keyframes ce-ev-sp-breathe {
	from { opacity: 0.82; }
	to   { opacity: 1; }
}

/* ── Section intro ── */
.ce-ev-show-sponsors__header {
	position: relative;
	z-index: 2;
	text-align: center;
	padding: 0 24px;
	margin-bottom: 72px;
}

.ce-ev-show-sponsors__eyebrow {
	font-family: 'Inter', system-ui, sans-serif;
	font-weight: 600;
	font-size: 13px;
	line-height: 1;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--ce-gold, #FFD700);
	margin: 0 0 20px;
}

/* Split lockup: calligraphic "Proudly" over tracked sans "Sponsored By" */
.ce-ev-show-sponsors__heading {
	margin: 0;
	line-height: 1;
}

.ce-ev-show-sponsors__heading-script {
	display: block;
	font-family: 'Great Vibes', 'Playfair Display', cursive;
	font-weight: 400;
	font-size: clamp(34px, 3.6vw, 52px);
	line-height: 1.15;
	text-transform: none;
	letter-spacing: 0.01em;
	color: var(--ce-gold, #FFD700);
	filter: drop-shadow(0 0 14px rgba(255, 215, 0, 0.28));
	margin-bottom: 2px;
}

.ce-ev-show-sponsors__heading-main {
	display: block;
	font-family: 'Montserrat', sans-serif;
	font-weight: 800;
	font-size: clamp(28px, 4.4vw, 50px);
	line-height: 1.1;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #fff;
}

.ce-ev-show-sponsors__sub {
	margin: 16px 0 0;
	font-size: 16px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.72);
}

/* ── Tier labels: tracked caps between fading keylines ── */
.ce-ev-show-sponsors__tier-label {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin: 0 0 40px;
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 12px;
	line-height: 1;
	letter-spacing: 0.3em;
	text-transform: uppercase;
}

.ce-ev-show-sponsors__tier-label::before,
.ce-ev-show-sponsors__tier-label::after {
	content: '';
	width: 48px;
	height: 1px;
	opacity: 0.5;
}

.ce-ev-show-sponsors__tier-label::before { background: linear-gradient(to right, transparent, currentColor); }
.ce-ev-show-sponsors__tier-label::after  { background: linear-gradient(to left,  transparent, currentColor); }

.ce-ev-show-sponsors__tier-label--gold    { color: var(--ce-gold, #FFD700); }
.ce-ev-show-sponsors__tier-label--magenta { color: var(--ce-magenta, #FF1493); }
.ce-ev-show-sponsors__tier-label--soft    { color: #D8C57F; }

/* ── Shared white chip surface ── */
.ce-ev-show-sponsors__tile {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #FDFDFB;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ce-ev-show-sponsors__tile img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

/* ── Tier: stage (Presented By heroes under the cones) ── */
.ce-ev-show-sponsors__tier--stage {
	position: relative;
	z-index: 2;
	padding: 0 24px;
}

.ce-ev-show-sponsors__stage {
	list-style: none;
	display: flex;
	justify-content: center;
	gap: 56px;
	margin: 0;
	padding: 0;
}

.ce-ev-show-sponsors__stage-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0;
}

/* elliptical stage-floor light pool beneath each hero chip */
.ce-ev-show-sponsors__stage-item::after {
	content: '';
	margin-top: 24px;
	width: 224px;
	height: 20px;
	border-radius: 50%;
	background: radial-gradient(50% 50% at 50% 50%,
		rgba(255, 235, 180, 0.30),
		rgba(255, 235, 180, 0.08) 55%,
		transparent 78%);
}

.ce-ev-show-sponsors__tile--hero {
	width: 300px;
	max-width: 100%;
	height: 160px;
	padding: 24px 32px;
	border-radius: 14px;
	box-shadow:
		0 30px 60px rgba(0, 0, 0, 0.60),
		0 8px 20px rgba(0, 0, 0, 0.50),
		0 0 0 1px rgba(255, 255, 255, 0.06),
		0 0 44px rgba(255, 215, 0, 0.10);
}

.ce-ev-show-sponsors__tile--hero img { max-height: 112px; }

.ce-ev-show-sponsors__tile--hero:hover,
.ce-ev-show-sponsors__stage-item:focus-within .ce-ev-show-sponsors__tile--hero {
	transform: translateY(-6px);
	box-shadow:
		0 38px 72px rgba(0, 0, 0, 0.62),
		0 10px 24px rgba(0, 0, 0, 0.50),
		0 0 0 1px rgba(255, 255, 255, 0.08),
		0 0 56px rgba(255, 215, 0, 0.24);
}

/* ── Tier: riser (Powered By platform band, full bleed) ── */
.ce-ev-show-sponsors__riser {
	position: relative;
	z-index: 2;
	margin-top: 96px;
	padding: 56px 24px 64px;
	background: linear-gradient(180deg, #13131E 0%, #0D0D17 100%);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
	box-shadow:
		inset 0 14px 28px rgba(0, 0, 0, 0.50),
		inset 0 -18px 28px rgba(0, 0, 0, 0.55);
}

/* magenta footlight along the riser's top edge */
.ce-ev-show-sponsors__riser::before {
	content: '';
	position: absolute;
	top: -1px;
	left: 50%;
	transform: translateX(-50%);
	width: min(640px, 80%);
	height: 2px;
	background: linear-gradient(90deg, transparent, rgba(255, 20, 147, 0.55), transparent);
}

.ce-ev-show-sponsors__mid {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 32px;
	max-width: 960px;
	margin: 0 auto;
	padding: 0;
}

.ce-ev-show-sponsors__mid li { margin: 0; }

.ce-ev-show-sponsors__tile--mid {
	width: 232px;
	max-width: 100%;
	height: 128px;
	padding: 20px 24px;
	border-radius: 12px;
	box-shadow:
		0 18px 36px rgba(0, 0, 0, 0.50),
		0 0 0 1px rgba(255, 255, 255, 0.05);
}

.ce-ev-show-sponsors__tile--mid img { max-height: 84px; }

.ce-ev-show-sponsors__tile--mid:hover,
.ce-ev-show-sponsors__mid li:focus-within .ce-ev-show-sponsors__tile--mid {
	transform: translateY(-4px);
	box-shadow:
		0 24px 44px rgba(0, 0, 0, 0.52),
		0 0 0 1px rgba(255, 255, 255, 0.07),
		0 0 32px rgba(255, 20, 147, 0.18);
}

/* ── Tier: plain (labelled chip row, no band; Official Visa Partner) ── */
.ce-ev-show-sponsors__tier--plain {
	position: relative;
	z-index: 2;
	margin-top: 96px;
	padding: 0 24px;
}

.ce-ev-show-sponsors__tier-label--purple { color: #B983FF; }

/* Purple hover glow instead of the riser's magenta */
.ce-ev-show-sponsors__tier--plain .ce-ev-show-sponsors__tile--mid:hover,
.ce-ev-show-sponsors__tier--plain li:focus-within .ce-ev-show-sponsors__tile--mid {
	box-shadow:
		0 24px 44px rgba(0, 0, 0, 0.52),
		0 0 0 1px rgba(255, 255, 255, 0.07),
		0 0 32px rgba(123, 47, 190, 0.28);
}

/* ── Tier: wall (Co-Powered By, monochrome marks) ── */
.ce-ev-show-sponsors__tier--wall {
	position: relative;
	z-index: 2;
	margin-top: 104px;
	padding: 0 24px;
}

.ce-ev-show-sponsors__tier--wall .ce-ev-show-sponsors__tier-label { margin-bottom: 48px; }

.ce-ev-show-sponsors__wall {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px 24px;
	max-width: 880px;
	margin: 0 auto;
	padding: 0;
}

.ce-ev-show-sponsors__wall li { margin: 0; }

.ce-ev-show-sponsors__wall-item {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 64px;
	min-width: 128px;
	padding: 8px 28px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0);
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.ce-ev-show-sponsors__wall-item:hover,
.ce-ev-show-sponsors__wall-item:focus-within {
	background: #FDFDFB;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.ce-ev-show-sponsors__wall-logo {
	/* Aspect-aware box: wide wordmarks cap on width (~40px tall), square
	   badge marks cap on height so they stay legible instead of shrinking. */
	height: auto;
	width: auto;
	max-height: 56px;
	max-width: 140px;
	object-fit: contain;
	display: block;
	filter: brightness(0) invert(1);
	opacity: 0.8;
	transition: filter 0.3s ease, opacity 0.3s ease;
}

.ce-ev-show-sponsors__wall-item:hover .ce-ev-show-sponsors__wall-logo {
	filter: none;
	opacity: 1;
}

/* Solid filled badge marks: silhouette-invert would flatten them into a
   blob, so render greyscale at rest instead (native-bg logo pattern). */
.ce-ev-show-sponsors__wall-logo--badge {
	filter: grayscale(1);
	opacity: 0.75;
	border-radius: 8px;
}

/* ── Responsive ── */
@media (max-width: 1023px) {
	.ce-ev-show-sponsors { padding: 88px 0 112px; }
	.ce-ev-show-sponsors__tier--plain { margin-top: 80px; }
	.ce-ev-show-sponsors__tier--wall { margin-top: 88px; }
}

@media (max-width: 767px) {
	.ce-ev-show-sponsors { padding: 72px 0 96px; }
	.ce-ev-show-sponsors__header { margin-bottom: 56px; }

	/* one centred beam over the stacked presenters */
	.ce-ev-show-sponsors__cone--left {
		left: calc(50% - 280px);
		transform: none;
		height: 480px;
	}
	.ce-ev-show-sponsors__cone--right { display: none; }

	.ce-ev-show-sponsors__stage {
		flex-direction: column;
		align-items: center;
		gap: 48px;
	}
	.ce-ev-show-sponsors__stage-item::after { margin-top: 20px; }

	.ce-ev-show-sponsors__riser {
		margin-top: 72px;
		padding: 48px 24px 56px;
	}
	.ce-ev-show-sponsors__mid { gap: 24px; }

	.ce-ev-show-sponsors__tier--plain { margin-top: 64px; }

	.ce-ev-show-sponsors__tier--wall { margin-top: 80px; }
	.ce-ev-show-sponsors__tier--wall .ce-ev-show-sponsors__tier-label { margin-bottom: 40px; }
	.ce-ev-show-sponsors__wall { gap: 12px; }
	.ce-ev-show-sponsors__wall-item {
		min-width: 0;
		min-height: 56px;
		padding: 8px 16px;
	}
	.ce-ev-show-sponsors__wall-logo { max-height: 44px; max-width: 104px; }
}

@media (prefers-reduced-motion: reduce) {
	.ce-ev-show-sponsors *,
	.ce-ev-show-sponsors *::before,
	.ce-ev-show-sponsors *::after {
		animation: none !important;
		transition: none !important;
	}
}
