/**
 * Public styling for JALV Events & Lineup. Only the content *between*
 * the theme's own header/footer is styled here (Spec Section 11.1) --
 * design tokens below are visual estimates from the Aug 21 2026 brand
 * screenshot and should be confirmed via DevTools before a real launch
 * (Spec Section 11.2).
 */

:root {
	--jalv-bg-dark: #0a0a0a;
	--jalv-accent-red: #c8102e;
	--jalv-text-light: #f5f2ee;
	--jalv-text-body: #c9c2ba;
	--jalv-font-display: Georgia, 'Times New Roman', serif;
	--jalv-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--jalv-card-bg: #161616;
	--jalv-border: #2a2a2a;
}

.jalv-event-grid,
.jalv-upcoming-events {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 24px;
	margin: 24px 0;
}

.jalv-event-card {
	display: block;
	background: var(--jalv-card-bg);
	border: 1px solid var(--jalv-border);
	border-radius: 6px;
	overflow: hidden;
	text-decoration: none;
	color: var(--jalv-text-light);
	transition: transform 0.15s ease, border-color 0.15s ease;
}
.jalv-event-card:hover {
	transform: translateY(-2px);
	border-color: var(--jalv-accent-red);
}
.jalv-event-card-image {
	aspect-ratio: 16 / 10;
	background: #000;
}
.jalv-event-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.jalv-event-card-body {
	padding: 16px;
}
.jalv-event-card-type {
	display: inline-block;
	font-family: var(--jalv-font-body);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--jalv-accent-red);
	margin-bottom: 6px;
}
.jalv-event-card-title {
	font-family: var(--jalv-font-display);
	font-size: 20px;
	margin: 0 0 6px;
	color: var(--jalv-text-light);
}
.jalv-event-card-date {
	font-family: var(--jalv-font-body);
	font-size: 14px;
	color: var(--jalv-text-body);
}

/*
 * Single event/artist pages are auto-rendered by the plugin for every
 * post -- there's no per-page way to give each one a dark section
 * background by hand the way the shortcode-based Events listing page
 * can be painted black in Elementor/Beaver Builder. So .jalv-surface
 * carries its own explicit dark background regardless of the
 * surrounding theme's page background, instead of assuming the theme
 * provides one -- otherwise these light-on-dark tokens go unreadable
 * (light gray text on a white theme background).
 */
.jalv-surface {
	background: var(--jalv-bg-dark);
	padding: 48px 24px 64px;
}

.jalv-event-detail,
.jalv-artist-detail {
	max-width: 860px;
	margin: 0 auto;
	color: var(--jalv-text-body);
	font-family: var(--jalv-font-body);
}
.jalv-event-hero img {
	width: 100%;
	border-radius: 6px;
	display: block;
}
.jalv-event-title,
.jalv-artist-name {
	font-family: var(--jalv-font-display);
	color: var(--jalv-text-light);
	font-size: 34px;
	margin: 20px 0 8px;
}
.jalv-event-meta {
	display: flex;
	gap: 16px;
	font-size: 15px;
	margin-bottom: 16px;
	color: var(--jalv-accent-red);
}
.jalv-event-actions {
	display: flex;
	gap: 12px;
	margin: 16px 0 24px;
}
.jalv-btn {
	display: inline-block;
	padding: 10px 20px;
	background: var(--jalv-accent-red);
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 600;
	font-size: 14px;
}
.jalv-btn-secondary {
	background: transparent;
	border: 1px solid var(--jalv-accent-red);
	color: var(--jalv-accent-red);
}
.jalv-event-description {
	margin-bottom: 24px;
	line-height: 1.7;
}

.jalv-lineup-stage {
	margin-bottom: 24px;
}
.jalv-lineup-stage-name {
	font-family: var(--jalv-font-display);
	color: var(--jalv-text-light);
	border-bottom: 1px solid var(--jalv-border);
	padding-bottom: 6px;
	margin-bottom: 12px;
}
.jalv-lineup-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
}
.jalv-lineup-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.jalv-lineup-time {
	font-size: 13px;
	color: var(--jalv-accent-red);
	font-weight: 600;
}
.jalv-lineup-artist {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--jalv-text-light);
}
.jalv-lineup-artist-photo {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	background: #222;
}

.jalv-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 10px;
	margin: 24px 0;
}
.jalv-gallery-item img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 4px;
	display: block;
}

.jalv-artist-photo img {
	width: 180px;
	height: 180px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	margin: 0 auto 16px;
}
.jalv-artist-detail {
	text-align: center;
}
.jalv-artist-bio {
	text-align: left;
	line-height: 1.7;
	max-width: 640px;
	margin: 0 auto 20px;
}
.jalv-artist-socials {
	display: flex;
	justify-content: center;
	gap: 16px;
	margin-bottom: 24px;
}
.jalv-artist-socials a {
	color: var(--jalv-accent-red);
	text-decoration: none;
	font-weight: 600;
}
.jalv-artist-appearances {
	text-align: left;
	max-width: 480px;
	margin: 0 auto;
}
.jalv-artist-appearances ul {
	list-style: none;
	padding: 0;
}
.jalv-artist-appearances li {
	padding: 8px 0;
	border-bottom: 1px solid var(--jalv-border);
}
.jalv-artist-appearances a {
	color: var(--jalv-text-light);
	text-decoration: none;
}

/* Lightbox */
.jalv-lightbox-locked {
	overflow: hidden;
}
.jalv-lightbox-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.92);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 100000;
}
.jalv-lightbox-overlay.is-open {
	display: flex;
}
.jalv-lightbox-image {
	max-width: 90vw;
	max-height: 85vh;
	object-fit: contain;
}
.jalv-lightbox-close,
.jalv-lightbox-prev,
.jalv-lightbox-next {
	position: absolute;
	background: transparent;
	border: none;
	color: #fff;
	font-size: 36px;
	cursor: pointer;
	line-height: 1;
	padding: 12px;
}
.jalv-lightbox-close {
	top: 16px;
	right: 16px;
}
.jalv-lightbox-prev {
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
}
.jalv-lightbox-next {
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
}

.jalv-no-events {
	color: var(--jalv-text-body);
	font-family: var(--jalv-font-body);
}
