/**
 * Cinestar Child — event-single.css
 * Individual cinestar_event page styles.
 * Class prefix: ce-ev-* (all elements in this file)
 * Depends on: main.css (design tokens + utilities), events.css (.ce-event-card)
 */

/* ════════════════════════════════════════════════════════════════════
   A. HERO
   Full-bleed section — featured image bg or gradient fallback.
   Inherits transparent→solid header behaviour via .ce-hero on header.js.
   ════════════════════════════════════════════════════════════════════ */

.ce-ev-hero {
	position: relative;
	min-height: 70vh;
	display: flex;
	align-items: flex-end;
	padding-top: var(--ce-header-h, 80px);
	padding-bottom: 3.5rem;
	overflow: hidden;
}

@media (max-width: 767px) {
	.ce-ev-hero {
		min-height: 55vh;
		padding-bottom: 2.5rem;
	}
}

/* Background image — src injected via inline style from PHP */
.ce-ev-hero__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center top;
	background-repeat: no-repeat;
	transform: scale(1.02); /* slight scale removes sub-pixel edge artefacts */
	transition: transform 0.6s ease;
}

.ce-ev-hero__bg--gradient {
	background: linear-gradient(135deg, #7B2FBE 0%, #2D0F5A 60%, #0A0A0A 100%);
}

/* Dark overlay — heavier at bottom so headline always readable */
.ce-ev-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(10, 10, 10, 0.97) 0%,
		rgba(10, 10, 10, 0.70) 35%,
		rgba(10, 10, 10, 0.30) 70%,
		rgba(10, 10, 10, 0.15) 100%
	);
}

/* Bottom fade into page background */
.ce-ev-hero__fade {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 6rem;
	background: linear-gradient(to top, var(--ce-bg, #0A0A0A), transparent);
	pointer-events: none;
}

.ce-ev-hero__content {
	position: relative;
	z-index: 1;
	max-width: 780px;
}

.ce-ev-hero__eyebrow {
	font-family: var(--ce-font-display, 'Montserrat', sans-serif);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ce-gold, #FFD700);
	margin: 0 0 0.875rem;
}

.ce-ev-hero__badge {
	display: inline-block;
	font-family: var(--ce-font-display, 'Montserrat', sans-serif);
	font-size: 0.5625rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 0.25rem 0.875rem;
	border-radius: 999px;
	margin-bottom: 1rem;
}

.ce-ev-hero__badge--on-sale {
	background: var(--ce-gold, #FFD700);
	color: #000;
}

.ce-ev-hero__badge--coming-soon {
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: rgba(255, 255, 255, 0.9);
}

.ce-ev-hero__badge--sold-out {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: rgba(255, 255, 255, 0.5);
}

.ce-ev-hero__title {
	font-family: var(--ce-font-display, 'Montserrat', sans-serif);
	font-size: clamp(2rem, 7vw, 4.25rem);
	font-weight: 900;
	line-height: 1.05;
	color: #fff;
	margin: 0 0 1rem;
	text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.ce-ev-hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.375rem 0.875rem;
	font-family: var(--ce-font-body, 'Inter', sans-serif);
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.72);
	margin: 0 0 2rem;
}

.ce-ev-hero__meta-sep {
	color: rgba(255, 255, 255, 0.25);
}

.ce-ev-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
}


/* ════════════════════════════════════════════════════════════════════
   B. ARTIST BIO
   Two-column on 768px+: portrait left, bio text right.
   ════════════════════════════════════════════════════════════════════ */

.ce-ev-bio {
	padding: 4.5rem 0;
	background: var(--ce-bg, #0A0A0A);
}

.ce-ev-bio__inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	align-items: start;
}

@media (min-width: 768px) {
	.ce-ev-bio__inner {
		grid-template-columns: 220px 1fr;
		gap: 3rem;
	}
}

@media (min-width: 1024px) {
	.ce-ev-bio__inner {
		grid-template-columns: 260px 1fr;
		gap: 4.5rem;
	}
}

.ce-ev-bio__portrait {
	aspect-ratio: 3 / 4;
	border-radius: 0.625rem;
	overflow: hidden;
	position: relative;
	max-width: 260px;
	background: linear-gradient(135deg, #5A1F9E 0%, #2D0F5A 100%);
}

.ce-ev-bio__portrait img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ce-ev-bio__portrait-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--ce-font-display, 'Montserrat', sans-serif);
	font-size: 5rem;
	font-weight: 900;
	color: rgba(255, 255, 255, 0.12);
	user-select: none;
}

.ce-ev-bio__label {
	font-family: var(--ce-font-display, 'Montserrat', sans-serif);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ce-gold, #FFD700);
	margin: 0 0 0.625rem;
}

.ce-ev-bio__headline {
	font-family: var(--ce-font-display, 'Montserrat', sans-serif);
	font-size: clamp(1.5rem, 3.5vw, 2.125rem);
	font-weight: 800;
	color: #fff;
	line-height: 1.15;
	margin: 0 0 1.375rem;
}

.ce-ev-bio__body {
	font-family: var(--ce-font-body, 'Inter', sans-serif);
	font-size: 1rem;
	line-height: 1.8;
	color: rgba(255, 255, 255, 0.75);
}

.ce-ev-bio__body p {
	margin: 0 0 1rem;
}

.ce-ev-bio__body p:last-child {
	margin-bottom: 0;
}


/* ════════════════════════════════════════════════════════════════════
   C. TOUR DATES
   Desktop: full <table>. Mobile (<768px): each <tr> becomes a card
   via data-label CSS pattern — header row hidden, cells stacked.
   ════════════════════════════════════════════════════════════════════ */

.ce-ev-dates {
	padding: 4.5rem 0;
	background: var(--ce-surface, #141414);
}

.ce-ev-dates__heading {
	font-family: var(--ce-font-display, 'Montserrat', sans-serif);
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 800;
	color: #fff;
	margin: 0 0 2.5rem;
	text-align: center;
}

.ce-ev-dates__heading span {
	color: var(--ce-gold, #FFD700);
}

/* Table shell */
.ce-ev-dates__table {
	width: 100%;
	border-collapse: collapse;
	table-layout: auto;
}

/* Header row */
.ce-ev-dates__head th {
	font-family: var(--ce-font-display, 'Montserrat', sans-serif);
	font-size: 0.5625rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.35);
	padding: 0.625rem 1rem;
	text-align: left;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	white-space: nowrap;
}

.ce-ev-dates__head th:last-child {
	text-align: center;
}

/* Data rows */
.ce-ev-dates__row {
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	transition: background 0.2s ease;
}

.ce-ev-dates__row:last-child {
	border-bottom: none;
}

@media (hover: hover) {
	.ce-ev-dates__row:hover {
		background: rgba(255, 255, 255, 0.03);
	}
}

.ce-ev-dates__cell {
	font-family: var(--ce-font-body, 'Inter', sans-serif);
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.8);
	padding: 1.125rem 1rem;
	vertical-align: middle;
}

.ce-ev-dates__cell--city {
	font-family: var(--ce-font-display, 'Montserrat', sans-serif);
	font-weight: 700;
	font-size: 1rem;
	color: #fff;
}

.ce-ev-dates__cell--date {
	color: var(--ce-gold, #FFD700);
	font-weight: 600;
	white-space: nowrap;
}

.ce-ev-dates__cell--action {
	text-align: center;
	white-space: nowrap;
}

/* "Coming Soon" pill in tour dates action column */
.ce-ev-dates__cell--action .ce-btn--outline {
	display: inline-block;
	font-size: 12px;
	padding: 6px 16px;
	margin: 0 auto;
	cursor: default;
	opacity: 0.7;
}

/* ── Mobile: rows → cards ── */
@media (max-width: 767px) {
	.ce-ev-dates__head {
		display: none;
	}

	.ce-ev-dates__table,
	.ce-ev-dates__table tbody,
	.ce-ev-dates__row {
		display: block;
	}

	.ce-ev-dates__row {
		background: rgba(255, 255, 255, 0.03);
		border: 1px solid rgba(255, 255, 255, 0.08);
		border-radius: 0.625rem;
		padding: 1.125rem 1rem;
		margin-bottom: 0.625rem;
	}

	.ce-ev-dates__row:last-child {
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
		margin-bottom: 0;
	}

	.ce-ev-dates__cell {
		display: flex;
		justify-content: space-between;
		align-items: baseline;
		padding: 0.25rem 0;
		font-size: 0.875rem;
	}

	.ce-ev-dates__cell::before {
		content: attr(data-label);
		font-family: var(--ce-font-display, 'Montserrat', sans-serif);
		font-size: 0.5625rem;
		font-weight: 700;
		letter-spacing: 0.12em;
		text-transform: uppercase;
		color: rgba(255, 255, 255, 0.3);
		flex-shrink: 0;
		margin-right: 0.75rem;
	}

	.ce-ev-dates__cell--city {
		font-size: 1rem;
		padding-bottom: 0.375rem;
	}

	.ce-ev-dates__cell--action {
		padding-top: 0.875rem;
		justify-content: flex-end;
	}

	.ce-ev-dates__cell--action::before {
		display: none;
	}

	.ce-ev-dates__cell--action .ce-btn {
		width: 100%;
		text-align: center;
	}
}


/* ════════════════════════════════════════════════════════════════════
   D. TICKET PRICING
   Auto-fit card grid. --featured card is gold-tinted + slightly raised.
   --limited availability label is magenta.
   ════════════════════════════════════════════════════════════════════ */

.ce-ev-tickets {
	padding: 4.5rem 0;
	background: var(--ce-bg, #0A0A0A);
}

.ce-ev-tickets__intro {
	text-align: center;
	max-width: 580px;
	margin: 0 auto 3rem;
}

.ce-ev-tickets__eyebrow {
	font-family: var(--ce-font-display, 'Montserrat', sans-serif);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ce-gold, #FFD700);
	margin: 0 0 0.625rem;
}

.ce-ev-tickets__heading {
	font-family: var(--ce-font-display, 'Montserrat', sans-serif);
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 800;
	color: #fff;
	margin: 0 0 0.625rem;
}

.ce-ev-tickets__sub {
	font-family: var(--ce-font-body, 'Inter', sans-serif);
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.55);
	margin: 0;
}

/* Card grid */
.ce-ev-tickets__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 1rem;
	align-items: stretch;
}

@media (min-width: 768px) {
	.ce-ev-tickets__grid {
		gap: 1.125rem;
	}
}

/* Individual tier card */
.ce-ev-ticket {
	background: var(--ce-surface, #141414);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 0.875rem;
	padding: 1.75rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	position: relative;
	transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

@media (hover: hover) {
	.ce-ev-ticket:hover {
		border-color: rgba(255, 215, 0, 0.25);
		transform: translateY(-3px);
		box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
	}
}

/* Featured (VIP) */
.ce-ev-ticket--featured {
	border-color: rgba(255, 215, 0, 0.45);
	background: linear-gradient(
		180deg,
		rgba(255, 215, 0, 0.07) 0%,
		var(--ce-surface, #141414) 50%
	);
}

@media (hover: hover) {
	.ce-ev-ticket--featured:hover {
		border-color: rgba(255, 215, 0, 0.75);
		transform: translateY(-5px);
	}
}

/* "Most Popular" ribbon on featured card */
.ce-ev-ticket__ribbon {
	position: absolute;
	top: -0.75rem;
	left: 50%;
	transform: translateX(-50%);
	background: var(--ce-gold, #FFD700);
	color: #000;
	font-family: var(--ce-font-display, 'Montserrat', sans-serif);
	font-size: 0.5rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 0.25rem 0.875rem;
	border-radius: 999px;
	white-space: nowrap;
}

.ce-ev-ticket__tier {
	font-family: var(--ce-font-display, 'Montserrat', sans-serif);
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.45);
}

.ce-ev-ticket--featured .ce-ev-ticket__tier {
	color: var(--ce-gold, #FFD700);
}

.ce-ev-ticket__price {
	font-family: var(--ce-font-display, 'Montserrat', sans-serif);
	font-size: clamp(2rem, 5vw, 2.5rem);
	font-weight: 900;
	color: #fff;
	line-height: 1;
}

.ce-ev-ticket__avail {
	font-family: var(--ce-font-body, 'Inter', sans-serif);
	font-size: 0.625rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.35);
	margin-top: -0.5rem; /* pull closer to price */
}

.ce-ev-ticket--limited .ce-ev-ticket__avail {
	color: var(--ce-magenta, #FF1493);
}

.ce-ev-ticket__features {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	flex: 1;
}

.ce-ev-ticket__features li {
	font-family: var(--ce-font-body, 'Inter', sans-serif);
	font-size: 0.8125rem;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.6);
	padding-left: 1.375rem;
	position: relative;
}

.ce-ev-ticket__features li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var(--ce-gold, #FFD700);
	font-size: 0.75rem;
	line-height: 1.45;
	font-weight: 700;
}

.ce-ev-ticket__cta {
	margin-top: auto;
}

.ce-ev-ticket__cta .ce-btn {
	width: 100%;
	text-align: center;
	justify-content: center;
}


/* ════════════════════════════════════════════════════════════════════
   E. FAQ ACCORDION
   CSS grid-template-rows: 0fr → 1fr trick for smooth height animation.
   JS toggles .is-open on .ce-ev-faq__item.
   ════════════════════════════════════════════════════════════════════ */

.ce-ev-faq {
	padding: 4.5rem 0;
	background: var(--ce-surface, #141414);
}

.ce-ev-faq__intro {
	text-align: center;
	max-width: 560px;
	margin: 0 auto 2.5rem;
}

.ce-ev-faq__heading {
	font-family: var(--ce-font-display, 'Montserrat', sans-serif);
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 800;
	color: #fff;
	margin: 0 0 0.625rem;
}

.ce-ev-faq__sub {
	font-family: var(--ce-font-body, 'Inter', sans-serif);
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.55);
	margin: 0;
}

.ce-ev-faq__list {
	list-style: none;
	padding: 0;
	margin: 0 auto;
	max-width: 760px;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.ce-ev-faq__item {
	background: #1A1A1A;
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 0.5rem;
	overflow: hidden;
	transition: border-color 0.2s ease;
}

.ce-ev-faq__item.is-open {
	border-color: var(--ce-gold, #FFD700);
}

/* Question button */
.ce-ev-faq__q {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	width: 100%;
	padding: 1.125rem 1.25rem;
	background: #1A1A1A; /* explicit — prevents Astra gold override via --ast-global-color-0 */
	border: none;
	cursor: pointer;
	text-align: left;
	font-family: var(--ce-font-display, 'Montserrat', sans-serif);
	font-size: 0.9375rem;
	font-weight: 700;
	color: #FFFFFF;
	transition: background 0.2s ease, color 0.2s ease;
	min-height: 44px;
}

@media (hover: hover) {
	.ce-ev-faq__q:hover {
		background: #222222;
		color: #FFFFFF;
	}
}

/* Focused-but-closed: override Astra's gold --ast-global-color-0 on button:focus.
   :focus-visible shows a keyboard focus ring; :focus (non-visible) stays clean. */
.ce-ev-faq__q:focus {
	background: #1A1A1A;
	color: #FFFFFF;
	outline: none;
}

.ce-ev-faq__q:focus-visible {
	outline: 2px solid var(--ce-gold, #FFD700);
	outline-offset: -2px;
}

/* Active/expanded: gold background, dark text for contrast */
.ce-ev-faq__item.is-open .ce-ev-faq__q {
	background: #FFD700;
	color: #0A0A0A;
}

.ce-ev-faq__chevron {
	flex-shrink: 0;
	width: 1.25rem;
	height: 1.25rem;
	color: #FFFFFF; /* white by default */
	transition: transform 0.3s ease, color 0.2s ease;
}

.ce-ev-faq__item.is-open .ce-ev-faq__chevron {
	transform: rotate(180deg);
	color: #0A0A0A; /* dark on gold background */
}

/* Grid trick: animates from 0 to natural height */
.ce-ev-faq__a-wrap {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.3s ease;
}

.ce-ev-faq__item.is-open .ce-ev-faq__a-wrap {
	grid-template-rows: 1fr;
}

.ce-ev-faq__a-inner {
	overflow: hidden;
	background: #151515;
}

.ce-ev-faq__a {
	padding: 0.25rem 1.25rem 1.375rem;
	font-family: var(--ce-font-body, 'Inter', sans-serif);
	font-size: 0.9375rem;
	line-height: 1.75;
	color: #CCCCCC;
}


/* ════════════════════════════════════════════════════════════════════
   F. SOCIAL SHARE BAR
   ════════════════════════════════════════════════════════════════════ */

.ce-ev-share {
	padding: 1.75rem 0;
	background: var(--ce-bg, #0A0A0A);
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ce-ev-share__inner {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
}

.ce-ev-share__label {
	font-family: var(--ce-font-display, 'Montserrat', sans-serif);
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.35);
	flex-shrink: 0;
}

.ce-ev-share__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.ce-ev-share__pill {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.4rem 0.875rem;
	border-radius: 999px;
	font-family: var(--ce-font-display, 'Montserrat', sans-serif);
	font-size: 0.6875rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	border: none;
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
	transition: opacity 0.2s ease, transform 0.2s ease;
	min-height: 36px;
}

@media (hover: hover) {
	.ce-ev-share__pill:hover {
		opacity: 0.85;
		transform: translateY(-1px);
	}
}

.ce-ev-share__pill--facebook { background: #1877F2; }
.ce-ev-share__pill--x        { background: #14171A; border: 1px solid rgba(255,255,255,0.15); }
.ce-ev-share__pill--whatsapp { background: #25D366; color: #0d1f12; }
.ce-ev-share__pill--email    { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255,255,255,0.15); }

.ce-ev-share__icon {
	width: 0.875rem;
	height: 0.875rem;
	flex-shrink: 0;
}


/* ════════════════════════════════════════════════════════════════════
   G. MORE EVENTS
   Reuses .ce-events-grid and .ce-event-card markup from events.css.
   ════════════════════════════════════════════════════════════════════ */

.ce-ev-more {
	padding: 4rem 0 5rem;
	background: var(--ce-bg, #0A0A0A);
}

.ce-ev-more__heading {
	font-family: var(--ce-font-display, 'Montserrat', sans-serif);
	font-size: clamp(1.25rem, 2.5vw, 1.625rem);
	font-weight: 800;
	color: #fff;
	margin: 0 0 2rem;
}

.ce-ev-more__footer {
	text-align: center;
	margin-top: 2.5rem;
}
