/* Event page styles — used by /live/index.html and individual event pages.
   Builds on styles.css (colors, fonts, .site-nav, .bg-video, glitch heading). */

.event-page {
	max-width: 920px;
	margin: 0 auto;
	padding: 32px 20px 80px;
	position: relative;
	z-index: 2;
	color: #fff;
}
.event-page--wide { max-width: 1180px; }
.event-page__back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: .85rem;
	color: rgba(255,255,255,.7);
	text-decoration: none;
	margin-bottom: 16px;
	transition: color .2s;
}
.event-page__back:hover { color: #6fdde8; }
.event-page__back-row {
	display: flex;
	justify-content: center;
	margin-top: 36px;
}

/* Hero block: date plate + title + venue line */
.event-hero {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 24px;
	align-items: center;
	padding: 28px 24px;
	background: linear-gradient(135deg, rgba(20,16,38,.85), rgba(12,12,18,.85));
	border: 1px solid rgba(107,77,242,.4);
	border-radius: 12px;
	box-shadow: 0 12px 40px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.04);
	margin-bottom: 28px;
}
.event-date-plate {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 92px;
	padding: 14px 18px;
	background: rgba(0,0,0,.5);
	border: 1px solid rgba(255,255,255,.18);
	border-radius: 8px;
	text-align: center;
	line-height: 1.1;
}
.event-date-plate__day {
	font-family: 'Orbitron', system-ui, sans-serif;
	font-size: 2.6rem;
	font-weight: 900;
	color: #fff;
	letter-spacing: .02em;
}
.event-date-plate__month {
	font-size: .9rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #6fdde8;
	margin-top: 4px;
}
.event-date-plate__year {
	font-size: .75rem;
	color: rgba(255,255,255,.6);
	margin-top: 2px;
}
.event-hero__body { min-width: 0; }
.event-hero__name {
	font-family: 'Orbitron', system-ui, sans-serif;
	font-size: clamp(1.5rem, 4vw, 2.2rem);
	font-weight: 900;
	margin: 0 0 8px;
	letter-spacing: .04em;
	line-height: 1.15;
}
.event-hero__lineup {
	margin: 0 0 8px;
	font-size: 1.05rem;
	color: rgba(255,255,255,.92);
}
.event-hero__venue {
	margin: 0;
	font-size: .95rem;
	color: rgba(255,255,255,.7);
}
.event-hero__status {
	display: inline-block;
	margin-top: 10px;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.event-hero__status--upcoming { background: rgba(107,77,242,.25); color: #b6a4ff; border: 1px solid rgba(107,77,242,.5); }
.event-hero__status--free     { background: rgba(0,180,120,.2); color: #6fe0a3; border: 1px solid rgba(0,180,120,.5); }
.event-hero__status--soldout  { background: rgba(220,40,60,.25); color: #ff9aa8; border: 1px solid rgba(220,40,60,.5); }
.event-hero__status--past     { background: rgba(255,255,255,.1); color: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.2); }

/* Primary CTAs row */
.event-ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 28px;
}
.event-ctas .btn { font-size: .95rem; }

/* Flyer image */
.event-flyer {
	width: 100%;
	max-width: 540px;
	margin: 0 auto 32px;
	display: block;
	border-radius: 10px;
	box-shadow: 0 12px 40px rgba(0,0,0,.55);
}

/* Generic content section */
.event-section {
	margin-bottom: 28px;
	padding: 22px 24px;
	background: rgba(12,12,18,.75);
	border: 1px solid rgba(255,255,255,.08);
	border-radius: 10px;
}
.event-section__title {
	font-family: 'Orbitron', system-ui, sans-serif;
	font-size: .85rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: #6fdde8;
	margin: 0 0 14px;
}
.event-section__body { font-size: .95rem; line-height: 1.6; color: rgba(255,255,255,.88); }
.event-section__body p { margin: 0 0 10px; }
.event-section__body p:last-child { margin-bottom: 0; }

/* Lineup list */
.lineup { list-style: none; margin: 0; padding: 0; }
.lineup__item {
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px dashed rgba(255,255,255,.08);
}
.lineup__item:last-child { border-bottom: 0; }
.lineup__name { font-weight: 600; color: #fff; }
.lineup__role { font-size: .8rem; color: rgba(255,255,255,.55); letter-spacing: .08em; text-transform: uppercase; }
.lineup__link { margin-left: auto; font-size: .82rem; color: #6fdde8; text-decoration: none; }
.lineup__link:hover { text-decoration: underline; }

/* Multi-day festival lineup blocks */
.festival-lineup h3 {
	font-family: 'Orbitron', system-ui, sans-serif;
	font-size: .85rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #6fdde8;
	margin: 16px 0 4px;
}
.festival-lineup h3:first-child { margin-top: 0; }
.festival-lineup p { margin: 0 0 4px; font-size: .95rem; }

/* Share / aggregator link grid */
.share-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 10px;
}
.share-grid__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	background: rgba(0,0,0,.4);
	border: 1px solid rgba(255,255,255,.12);
	border-radius: 8px;
	color: #fff;
	text-decoration: none;
	font-size: .9rem;
	transition: border-color .2s, background .2s, transform .15s;
}
.share-grid__item:hover {
	border-color: rgba(107,77,242,.7);
	background: rgba(107,77,242,.18);
	transform: translateY(-1px);
}
.share-grid__icon { font-size: 1.1rem; width: 24px; text-align: center; flex-shrink: 0; }

/* Band blurb at bottom */
.event-blurb { text-align: center; }
.event-blurb__title { font-family: 'Orbitron', system-ui, sans-serif; letter-spacing: .12em; }
.event-blurb__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 14px; }

/* Carousel — for live-photo galleries inside event pages.
   Container is 3:2 to match the live photos, with object-fit: contain so the
   photographer's watermark (bottom-right of each shot) stays visible. */
.carousel {
	position: relative;
	width: 100%;
	margin-top: 8px;
	border-radius: 8px;
	overflow: hidden;
	background: rgba(0,0,0,.55);
	box-shadow: 0 6px 22px rgba(0,0,0,.5);
	aspect-ratio: 3 / 2;
}
.carousel__slides {
	list-style: none;
	margin: 0;
	padding: 0;
	position: absolute;
	inset: 0;
}
.carousel__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .8s ease-in-out;
	pointer-events: none;
}
.carousel__slide--active { opacity: 1; pointer-events: auto; }
.carousel__slide img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}
.carousel__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(0,0,0,.55);
	border: 1px solid rgba(255,255,255,.3);
	color: #fff;
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 1;
	padding: 0 0 3px 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s, border-color .2s, transform .2s;
}
.carousel__nav:hover, .carousel__nav:focus-visible {
	background: rgba(107,77,242,.7);
	border-color: rgba(255,255,255,.6);
	transform: translateY(-50%) scale(1.08);
	outline: none;
}
.carousel__nav--prev { left: 10px; }
.carousel__nav--next { right: 10px; }
@media (prefers-reduced-motion: reduce) {
	.carousel__slide { transition: none; }
}

/* Index page — list of events */
.events-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.events-list__group-title {
	font-family: 'Orbitron', system-ui, sans-serif;
	font-size: 1rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: #6fdde8;
	margin: 28px 0 14px;
	padding-bottom: 8px;
	border-bottom: 1px solid rgba(107,77,242,.3);
}
.events-list__item {
	display: flex;
	gap: 18px;
	padding: 18px 20px;
	background: rgba(12,12,18,.75);
	border: 1px solid rgba(255,255,255,.08);
	border-radius: 10px;
	text-decoration: none;
	color: #fff;
	transition: border-color .2s, transform .15s, background .2s;
}
.events-list__item:hover {
	border-color: rgba(107,77,242,.6);
	background: rgba(20,16,38,.85);
	transform: translateY(-1px);
}
.events-list__date {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 72px;
	padding: 8px 10px;
	background: rgba(0,0,0,.4);
	border-radius: 6px;
	line-height: 1.1;
}
.events-list__day { font-family: 'Orbitron', system-ui, sans-serif; font-size: 1.6rem; font-weight: 900; }
.events-list__month { font-size: .72rem; letter-spacing: .12em; color: #6fdde8; text-transform: uppercase; margin-top: 2px; }
.events-list__year { font-size: .65rem; color: rgba(255,255,255,.5); margin-top: 1px; }
.events-list__body { flex: 1; min-width: 0; }
.events-list__name { font-family: 'Orbitron', system-ui, sans-serif; font-size: 1.05rem; margin: 0 0 4px; letter-spacing: .03em; }
.events-list__venue { margin: 0; font-size: .85rem; color: rgba(255,255,255,.7); }
.events-list__arrow { align-self: center; color: #6fdde8; font-size: 1.4rem; }
.events-list--past .events-list__item { opacity: .6; }
.events-list--past .events-list__item:hover { opacity: 1; }

@media (max-width: 600px) {
	.event-page { padding: 20px 14px 60px; }
	.event-hero { grid-template-columns: 1fr; padding: 22px 18px; gap: 16px; text-align: left; }
	.event-date-plate { flex-direction: row; gap: 10px; min-width: 0; padding: 10px 14px; }
	.event-date-plate__day { font-size: 1.8rem; }
	.event-date-plate__month { font-size: .75rem; margin-top: 0; }
	.event-date-plate__year { margin-top: 0; }
	.event-section { padding: 18px 16px; }
	.events-list__item { padding: 14px 14px; gap: 12px; }
	.events-list__date { min-width: 60px; padding: 6px 8px; }
	.events-list__day { font-size: 1.3rem; }
}

/* ---------- Live History page ---------- */

.history-intro {
	max-width: 820px;
	margin: 0 auto 28px;
	text-align: center;
	color: rgba(255,255,255,.78);
	font-size: 1.02rem;
	line-height: 1.6;
}
.history-stats {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 32px;
}
/* Upcoming-events counter — cyan accent ties it visually to the
   highlighted rows in the chronicle table. */
.history-stat--upcoming {
	border-color: rgba(111, 221, 232, .45);
	box-shadow: 0 6px 22px rgba(0,0,0,.4), inset 0 0 0 1px rgba(111, 221, 232, .12);
	background: linear-gradient(180deg, rgba(111,221,232,.06), rgba(12,12,18,.75));
}
.history-stat--upcoming .history-stat__num { color: #6fdde8; }
.history-stat--upcoming .history-stat__label { color: rgba(111, 221, 232, .85); }
/* Anchor variant: when the upcoming stat is wrapped as a link, restore
   block/anchor defaults and add an interactive hover/focus lift. */
a.history-stat {
	text-decoration: none;
	color: inherit;
	cursor: pointer;
	transition: border-color .2s, box-shadow .2s, transform .15s;
	/* display: flex inherited from .history-stat — don't override */
}
a.history-stat--upcoming:hover,
a.history-stat--upcoming:focus-visible {
	border-color: rgba(111, 221, 232, .75);
	box-shadow: 0 6px 22px rgba(0,0,0,.4), 0 0 16px rgba(111, 221, 232, .35);
	transform: translateY(-1px);
	outline: none;
}
.history-stat {
	padding: 18px 20px;
	background: rgba(12,12,18,.75);
	border: 1px solid rgba(255,255,255,.08);
	border-radius: 10px;
	box-shadow: 0 6px 22px rgba(0,0,0,.4);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}
.history-stat__num {
	display: block;
	font-family: 'Orbitron', system-ui, sans-serif;
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	font-weight: 900;
	letter-spacing: .02em;
	line-height: 1;
	color: #fff;
}
.history-stat__label {
	display: block;
	margin-top: 6px;
	color: rgba(255,255,255,.65);
	font-size: .82rem;
	letter-spacing: .04em;
}

.history-highlights {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px;
}
.history-highlight {
	padding: 18px 20px;
	background: rgba(0,0,0,.35);
	border: 1px solid rgba(255,255,255,.08);
	border-radius: 8px;
}
.history-highlight__title {
	font-family: 'Orbitron', system-ui, sans-serif;
	font-size: .82rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #6fdde8;
	margin: 0 0 8px;
}
.history-highlight__body {
	margin: 0;
	color: rgba(255,255,255,.78);
	font-size: .92rem;
	line-height: 1.55;
}

.history-table-wrap { overflow-x: auto; }
.history-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 880px;
	font-size: .9rem;
}
.history-table th, .history-table td {
	padding: 12px 14px;
	vertical-align: top;
	border-bottom: 1px solid rgba(255,255,255,.06);
	text-align: left;
}
.history-table th {
	font-family: 'Orbitron', system-ui, sans-serif;
	font-size: .72rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #6fdde8;
	background: rgba(0,0,0,.35);
	white-space: nowrap;
}
.history-table tbody tr { transition: background .15s, box-shadow .15s; }
.history-table tbody tr:hover { background: rgba(107,77,242,.08); }
.history-table tbody tr[data-href] { cursor: pointer; }
/* Clickable rows: cyan tint matches the unified interactive-card language
   (glow on cards, tint on table rows since tr can't take box-shadow cleanly). */
.history-table tbody tr[data-href]:hover {
	background: rgba(111, 221, 232, .14);
	box-shadow: inset 3px 0 0 rgba(111, 221, 232, .65);
}
.history-table tbody tr:last-child td { border-bottom: 0; }

/* Upcoming-row treatment: cyan left border + subtle wash, with a small
   inline "Bevorstehend" pill in the venue cell. The first td absorbs
   the left-border (table cells don't render borders on tr). */
.history-table tbody tr.history-table__row--upcoming { background: rgba(111,221,232,.05); }
.history-table tbody tr.history-table__row--upcoming:hover { background: rgba(111,221,232,.12); }
.history-table tbody tr.history-table__row--upcoming > td:first-child {
	border-left: 3px solid #6fdde8;
	padding-left: 11px; /* offsets the 3px border so column lines stay aligned */
}
.history-table tbody tr.history-table__row--upcoming .history-table__date { color: #6fdde8; }
.history-table__badge {
	display: inline-block;
	margin-right: 8px;
	padding: 2px 8px;
	border: 1px solid rgba(111,221,232,.55);
	border-radius: 999px;
	background: rgba(111,221,232,.12);
	color: #6fdde8;
	font-family: 'Orbitron', system-ui, sans-serif;
	font-size: .65rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	font-weight: 700;
	vertical-align: middle;
	white-space: nowrap;
	/* All badges size up to the widest expected label so they read as a
	   coordinated set, not independent ad-hoc labels. 9.5rem comfortably
	   fits the current widest label (BEVORSTEHEND ≈ 140 px) with a small
	   buffer for future ones. */
	min-width: 9.5rem;
	text-align: center;
	box-sizing: border-box;
}
/* Purple variant for closed/invite-only events; renders inline next to
   the cyan "Bevorstehend" pill on the same row. */
.history-table__badge--invite {
	border-color: rgba(107,77,242,.55);
	background: rgba(107,77,242,.18);
	color: #b2a3ff;
}

/* Standalone narrative block (e.g. Pause & Comeback section). Centered
   single column with readable measure — keeps long-form prose out of the
   scan-card highlights grid. */
.history-narrative {
	max-width: 760px;
	margin: 0 auto;
	color: rgba(255,255,255,.82);
	font-size: 1.02rem;
	line-height: 1.75;
	text-align: left;
}
.history-narrative p { margin: 0 0 14px; }
.history-narrative p:last-child { margin-bottom: 0; }
.history-narrative strong { color: #fff; font-weight: 600; }
.history-narrative em { color: rgba(111, 221, 232, .92); font-style: italic; }

/* Narrative gap row inside the chronicle (e.g. 2013–2024 stand-by).
   Cyan-tinted top + bottom borders set it apart from data rows. */
.history-table__pause-row td {
	background: linear-gradient(180deg, rgba(20,20,30,.7), rgba(20,16,38,.45));
	color: rgba(255,255,255,.78);
	font-size: .88rem;
	line-height: 1.75;
	padding: 22px 24px;
	text-align: left;
	border-top: 1px solid rgba(111,221,232,.28);
	border-bottom: 1px solid rgba(111,221,232,.28);
}
.history-table__pause-row strong { color: #fff; font-weight: 600; }
.history-table__pause-row em {
	color: rgba(111,221,232,.92);
	font-style: italic;
}
.history-table tbody tr.history-table__pause-row:hover {
	background: transparent;
	cursor: default;
}
.history-table__nr    { color: rgba(255,255,255,.4); width: 38px; font-variant-numeric: tabular-nums; }
.history-table__date  { white-space: nowrap; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.history-table__city  { font-weight: 600; }
.history-table__venue { color: #fff; }
.history-table__ctx   { color: rgba(255,255,255,.65); font-size: .85rem; }
.history-table__noflyer { color: rgba(255,255,255,.25); text-align: center; }

/* Sortable column header */
.history-table__sortable {
	cursor: pointer;
	user-select: none;
	transition: color .15s ease, background .15s ease;
}
.history-table__sortable:hover,
.history-table__sortable:focus-visible {
	color: #fff;
	background: rgba(107,77,242,.12);
	outline: none;
}
.history-table__sort-arrow {
	display: inline-block;
	margin-left: 4px;
	color: #6fdde8;
	font-size: .9em;
}

/* Venue cell that links to a dedicated event page */
.venue-link {
	color: #fff;
	text-decoration: none;
	border-bottom: 1px dashed rgba(111,221,232,.45);
	transition: color .15s ease, border-color .15s ease;
}
.venue-link:hover, .venue-link:focus-visible {
	color: #6fdde8;
	border-bottom-color: rgba(111,221,232,1);
	outline: none;
}

/* Inline flyer link with hover preview thumbnail */
.flyer-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-left: 6px;
	padding: 1px 7px;
	border-radius: 4px;
	border: 1px solid rgba(111,221,232,.35);
	background: rgba(111,221,232,.08);
	color: #6fdde8;
	text-decoration: none;
	font-size: .74rem;
	letter-spacing: .02em;
	vertical-align: 2px;
	position: relative;
	cursor: zoom-in;
	transition: background .2s, border-color .2s, color .2s;
}
.flyer-link:hover, .flyer-link:focus-visible {
	background: rgba(111,221,232,.18);
	border-color: rgba(111,221,232,.7);
	color: #fff;
	outline: none;
}
.flyer-link__icon { width: 13px; height: 13px; flex-shrink: 0; }

/* Floating hover preview — rendered at body level so it escapes the
   table-wrap's overflow-x:auto clipping context. */
.flyer-hover-preview {
	position: fixed;
	z-index: 800;
	pointer-events: none;
	opacity: 0;
	transition: opacity .15s ease;
	padding: 0;
	border-radius: 8px;
	border: 1px solid rgba(255,255,255,.14);
	box-shadow: 0 10px 32px rgba(0,0,0,.85);
	background: #0a0910;
	overflow: hidden;
}
.flyer-hover-preview.is-visible { opacity: 1; }
.flyer-hover-preview img {
	display: block;
	width: 200px;
	max-width: 60vw;
	height: auto;
	border-radius: 8px;
}
@media (hover: none) {
	/* Touch devices: no hover, no preview */
	.flyer-hover-preview { display: none; }
}

.history-tag {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: .72rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	white-space: nowrap;
	border: 1px solid rgba(255,255,255,.14);
	background: rgba(255,255,255,.04);
	color: rgba(255,255,255,.7);
}
.history-tag::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
}
.history-tag--live::before    { background: #6fe0a3; box-shadow: 0 0 8px #6fe0a3; }
.history-tag--archive::before { background: #b6a4ff; box-shadow: 0 0 8px #b6a4ff; }
.history-tag--online::before  { background: #6fdde8; box-shadow: 0 0 8px #6fdde8; }
.history-tag--todo::before    { background: #ffd166; box-shadow: 0 0 8px #ffd166; }

.history-names {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.history-name {
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255,255,255,.05);
	border: 1px solid rgba(255,255,255,.1);
	color: #fff;
	font-size: .85rem;
}

.history-notes ul { margin: 8px 0 0; padding-left: 1.2rem; }
.history-notes li { margin: .4rem 0; }

/* Flyer modal styles live in styles.css (.flyer-modal*) — reused as-is. */

@media (max-width: 720px) {
	.history-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
