/* =====================================================================
 * Single event — premium redesign.
 *
 * Scoped to body.etn-premium-single so nothing leaks into the rest of
 * the site. Colours derive from --etn-accent (set inline from the plugin
 * settings) and from a neutral ink/surface scale, so the page stays
 * harmonious whatever the theme palette is.
 * ================================================================== */

.etn-premium-single {
	--etn-accent: #c9a227;
	--etn-header-offset: 150px;
	--etn-ink: #14161a;
	--etn-muted: #6b7280;
	--etn-line: rgba(0, 0, 0, .10);
	--etn-surface: #fff;
	--etn-soft: #f7f7f8;
	--etn-radius: 16px;
	--etn-shadow: 0 18px 48px rgba(0, 0, 0, .09);
	--etn-gutter: clamp(18px, 5vw, 56px);
}

/* The hero takes over title + image; hide Eventin's originals. */
.etn-premium-single .etn-event-title-wrap,
.etn-premium-single .etn-single-event-media {
	display: none !important;
}

/* ============================================================== HERO */

.etn-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	/* Top padding reserves room for the transparent site header so the
	   menu stays readable over the artwork. */
	padding-top: calc(var(--etn-header-offset, 150px) + clamp(24px, 4vw, 52px));
	padding-inline: var(--etn-gutter);
	padding-bottom: clamp(36px, 6vw, 68px);
	margin-bottom: clamp(28px, 5vw, 56px);
	color: #fff;
	background: #0d1b33;
}

.etn-hero--flat {
	background: linear-gradient(135deg, #0a1526 0%, #14264a 55%, #0d1b33 100%);
}

/* Blurred, darkened artwork — never the raw photo, so text stays legible
   whatever the poster looks like. */
.etn-hero__bg {
	position: absolute;
	inset: -8%;
	z-index: -2;
	background-size: cover;
	background-position: center;
	/* Desaturated on purpose: at full saturation a warm poster bleeds
	   brown through the overlay. The artwork should give depth, not hue. */
	filter: blur(30px) saturate(.35);
	transform: scale(1.08);
	opacity: .38;
}

.etn-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(9, 18, 36, .95) 0%, rgba(13, 27, 51, .72) 40%, rgba(9, 18, 36, .95) 100%),
		radial-gradient(120% 80% at 15% 0%, rgba(28, 49, 87, .55), transparent 65%);
}

.etn-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
	gap: clamp(24px, 4vw, 56px);
	align-items: center;
	max-width: 1180px;
	margin: 0 auto;
}

.etn-hero--flat .etn-hero__inner {
	grid-template-columns: 1fr;
	max-width: 900px;
}

.etn-hero__text {
	min-width: 0;
}

/* Categories */
.etn-hero__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
}

.etn-hero__cats li {
	margin: 0;
	padding: 4px 13px;
	border-radius: 999px;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--etn-accent);
	border: 1px solid color-mix(in srgb, var(--etn-accent) 55%, transparent);
	background: color-mix(in srgb, var(--etn-accent) 12%, transparent);
}

@supports not (color: color-mix(in srgb, red 50%, blue)) {
	.etn-hero__cats li {
		border-color: rgba(255, 255, 255, .3);
		background: rgba(255, 255, 255, .08);
	}
}

.etn-hero__title {
	margin: 0 0 18px;
	font-size: clamp(1.9rem, 1.2rem + 3vw, 3.4rem);
	line-height: 1.08;
	font-weight: 700;
	letter-spacing: -.015em;
	color: #fff;
	text-wrap: balance;
}

.etn-hero__status {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 28px;
	padding: 11px 26px;
	font-size: .92rem;
	letter-spacing: .16em;
	border-width: 2px;
	border-radius: 999px;
	box-shadow: 0 8px 26px rgba(0, 0, 0, .28);
}

.etn-hero__status::before {
	width: 9px;
	height: 9px;
}

/* Open events read as an outline; anything that limits access is filled,
   so the difference is legible at a glance and not only by hue. */
.etn-hero__status.etn-avail--open {
	color: #fff;
	background: var(--etn-avail-color, #1a8f5f);
	border-color: var(--etn-avail-color, #1a8f5f);
}

.etn-hero__status.etn-avail--open::before { background: #fff; }

.etn-hero__status.etn-avail--sold_out,
.etn-hero__status.etn-avail--waitlist,
.etn-hero__status.etn-avail--coming_soon {
	color: #fff;
	background: var(--etn-avail-color);
	border-color: var(--etn-avail-color);
}

/* Facts */
.etn-hero__facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 2px;
	margin: 0 0 22px;
	padding: 0;
	border-radius: var(--etn-radius);
	overflow: hidden;
	background: rgba(255, 255, 255, .12);
}

.etn-fact {
	padding: 16px 18px;
	background: rgba(11, 22, 42, .72);
	backdrop-filter: blur(6px);
	min-width: 0;
}

.etn-fact dt {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 6px;
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .58);
}

.etn-fact dd {
	margin: 0;
	hyphens: auto;
	font-size: .97rem;
	font-weight: 600;
	line-height: 1.4;
	color: #fff;
	overflow-wrap: anywhere;
}

/* Inline SVG icons — no icon font dependency. */
.etn-fact__icon {
	width: 16px;
	height: 16px;
	flex: none;
	background-color: var(--etn-accent);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-position: center;
	mask-position: center;
}

.etn-fact__icon--date {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
}

.etn-fact__icon--time {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
}

.etn-fact__icon--place {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 1116 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 1116 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

/* Tags */
.etn-hero__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.etn-hero__tags li {
	margin: 0;
	font-size: .8rem;
	color: rgba(255, 255, 255, .6);
}

/* Poster */
.etn-hero__media {
	margin: 0;
	border-radius: var(--etn-radius);
	overflow: hidden;
	box-shadow: 0 26px 60px rgba(0, 0, 0, .45);
	aspect-ratio: 16 / 10;
	background: rgba(255, 255, 255, .06);
}

.etn-hero__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* =========================================================== CONTENT */

.etn-premium-single .etn-event-single-wrap {
	padding-inline: var(--etn-gutter);
}

.etn-premium-single .etn-event-single-wrap .etn-container {
	max-width: 1180px;
	margin-inline: auto;
}

.etn-premium-single .etn-event-single-content-wrap {
	background: var(--etn-surface);
	border: 1px solid var(--etn-line);
	border-radius: var(--etn-radius);
	padding: clamp(22px, 3.4vw, 40px);
}

.etn-premium-single .etn-event-content-body {
	font-size: 1.02rem;
	line-height: 1.78;
	color: var(--etn-ink);
	overflow-wrap: break-word;
}

.etn-premium-single .etn-event-content-body > :first-child {
	margin-top: 0;
}

.etn-premium-single .etn-event-content-body h2,
.etn-premium-single .etn-event-content-body h3 {
	letter-spacing: -.01em;
	margin: 1.6em 0 .5em;
}

.etn-premium-single .etn-event-content-body img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

/* =========================================================== SIDEBAR */

.etn-premium-single .etn-sidebar {
	position: sticky;
	top: 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.etn-premium-single .etn-sidebar .etn-widget,
.etn-premium-single .etn-sidebar .etn-event-tag-list,
.etn-premium-single .etn-sidebar .etn-event-meta {
	background: var(--etn-surface);
	border: 1px solid var(--etn-line);
	border-radius: var(--etn-radius);
	padding: 20px;
	margin: 0;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .035);
}

.etn-premium-single .etn-sidebar .etn-widget-title,
.etn-premium-single .etn-sidebar .etn-tags-title {
	margin: 0 0 14px;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--etn-muted);
}

/* Facts list */
.etn-premium-single .etn-event-meta-info ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.etn-premium-single .etn-event-meta-info li {
	display: flex;
	flex-direction: column;
	gap: 3px;
	margin: 0;
	padding: 13px 0;
	border-bottom: 1px solid var(--etn-line);
	font-size: .97rem;
	line-height: 1.5;
	color: var(--etn-ink);
}

.etn-premium-single .etn-event-meta-info li:first-child {
	padding-top: 0;
}

.etn-premium-single .etn-event-meta-info li:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.etn-premium-single .etn-event-meta-info li > span:first-child {
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--etn-muted);
}

.etn-premium-single .etn-event-timezone {
	color: var(--etn-muted);
	font-size: .85rem;
}

/* Categories + tags as chips */
.etn-premium-single .etn-event-category a,
.etn-premium-single .etn-event-tag-list a {
	display: inline-block;
	margin: 0 5px 5px 0;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: .78rem;
	text-decoration: none;
	color: var(--etn-ink);
	background: var(--etn-soft);
	border: 1px solid var(--etn-line);
	transition: border-color .15s ease, color .15s ease;
}

.etn-premium-single .etn-event-category a:hover,
.etn-premium-single .etn-event-tag-list a:hover {
	border-color: var(--etn-accent);
	color: var(--etn-accent);
}

/* Ticket / RSVP block */
.etn-premium-single .etn-sidebar-rsvp-wrap,
.etn-premium-single .etn-ticket-widget {
	border-top: 3px solid var(--etn-accent);
}

.etn-premium-single .etn-sidebar .etn-btn,
.etn-premium-single .etn-sidebar button[type="submit"] {
	width: 100%;
	border-radius: 10px;
	font-weight: 600;
	letter-spacing: .01em;
}

/* Availability notice */
.etn-premium-single .etn-status-ticket-notice {
	border-radius: var(--etn-radius);
	font-size: .95rem;
	line-height: 1.6;
}

/* Social icons */
.etn-premium-single .etn-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin: 0 6px 6px 0;
	border-radius: 50%;
	border: 1px solid var(--etn-line);
	color: var(--etn-muted);
	transition: border-color .15s ease, color .15s ease;
}

.etn-premium-single .etn-social a:hover {
	border-color: var(--etn-accent);
	color: var(--etn-accent);
}

/* ======================================================== RESPONSIVE */

@media (max-width: 991px) {
	.etn-hero__inner {
		grid-template-columns: 1fr;
	}

	/* Poster first on narrow screens — it is the strongest cue. */
	.etn-hero__media {
		order: -1;
		aspect-ratio: 16 / 9;
	}

	.etn-premium-single .etn-sidebar {
		position: static;
		margin-top: 24px;
	}
}

@media (max-width: 600px) {
	.etn-hero {
		padding-top: calc(var(--etn-header-offset, 150px) * .55 + 24px);
	}

	.etn-hero__facts {
		grid-template-columns: 1fr;
	}

	.etn-fact {
		display: flex;
		align-items: baseline;
		justify-content: space-between;
		gap: 14px;
		padding: 13px 16px;
	}

	.etn-fact dt {
		margin: 0;
	}

	.etn-fact dd {
		text-align: right;
		font-size: .93rem;
	}

	.etn-premium-single .etn-event-single-content-wrap,
	.etn-premium-single .etn-sidebar .etn-widget,
	.etn-premium-single .etn-sidebar .etn-event-tag-list,
	.etn-premium-single .etn-sidebar .etn-event-meta {
		padding: 18px 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.etn-premium-single * {
		transition: none !important;
	}
}

@media print {
	.etn-hero {
		color: #000;
		background: none;
		padding: 0;
	}

	.etn-hero__bg,
	.etn-hero::after {
		display: none;
	}

	.etn-hero__title,
	.etn-fact dd {
		color: #000;
	}

	.etn-fact {
		background: none;
		border: 1px solid #ccc;
	}
}


/* Eventin's own page container carries a top padding that doubles the
   hero's own spacing, and no breathing room at the bottom. */
.etn-premium-single .etn-es-events-page-container {
	padding-top: 0;
	padding-bottom: 80px;
}
