/* ==========================================================================
   GOLDEN MOMENT EVENTS — Dark / Gold Design System
   ========================================================================== */
:root {
	--gm-gold: #D4AF37;
	--gm-black: #000000;
	--gm-white: #FFFFFF;
	--gm-gray: #B8B8B8;
	--gm-card-bg: #0d0d0d;
	--gm-border: rgba(212,175,55,0.25);
	--gm-radius: 4px;
}

.gm-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Event Grid ---------- */
.gm-event-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 32px;
	margin: 40px 0;
}
.gm-event-card {
	background: var(--gm-card-bg);
	border: 1px solid var(--gm-border);
	border-radius: var(--gm-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	min-width: 0;
	box-shadow: 0 18px 50px rgba(0,0,0,.25);
	transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.gm-event-card:hover { transform: translateY(-6px); border-color: var(--gm-gold); box-shadow: 0 24px 70px rgba(0,0,0,.4); }
.gm-card-image { display: block; position: relative; width: 100%; aspect-ratio: 16/9; height: auto; max-height: 240px; overflow: hidden; background: #111; }
.gm-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gm-event-card:hover .gm-card-image img { transform: scale(1.06); }
.gm-card-image-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg,#111,#000); }

.gm-status-badge {
	position: absolute; top: 16px; left: 16px;
	font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
	padding: 6px 12px; border-radius: 2px; font-weight: 600;
	background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
	border: 1px solid var(--gm-gold); color: var(--gm-gold);
}
.gm-status-past { border-color: var(--gm-gray); color: var(--gm-gray); }

.gm-card-body { padding: 20px; display: flex; flex: 1; flex-direction: column; align-items: flex-start; }
.gm-card-title { margin: 0 0 8px; font-size: 20px; letter-spacing: .5px; }
.gm-card-title a { color: var(--gm-white); text-decoration: none; }
.gm-card-title a:hover { color: var(--gm-gold); }
.gm-card-meta { color: var(--gm-gray); font-size: 13px; letter-spacing: .5px; margin: 0 0 10px; text-transform: uppercase; }
.gm-card-excerpt {
	color: #ccc;
	font-size: 13.5px;
	line-height: 1.55;
	margin: 0 0 16px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	max-height: calc(1.55em * 3);
}
.gm-card-body .gm-btn { margin-top: auto; }
.gm-card-seat-counter,
.gm-seat-counter {
	display: inline-block;
	color: var(--gm-gold);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin: 0 0 14px;
}
.gm-seat-soldout { color: #777; }
.gm-seat-held {
	color: #e2a53f;
	text-transform: none;
	letter-spacing: .2px;
	font-weight: 600;
	font-size: 12px;
}
.gm-tier-info .gm-seat-counter { margin-top: 10px; margin-bottom: 0; }

/* ---------- Buttons ---------- */
.gm-btn {
	display: inline-block; padding: 12px 28px; font-size: 13px; letter-spacing: 1.5px;
	text-transform: uppercase; text-decoration: none; font-weight: 600;
	border-radius: 2px; transition: all .25s ease; border: 1px solid var(--gm-gold);
	cursor: pointer;
}
.gm-btn-gold { background: var(--gm-gold); color: var(--gm-black); }
.gm-btn-gold:hover { background: #e4c351; color: var(--gm-black); border-color: #e4c351; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(212,175,55,.22); }
.gm-btn-outline { background: transparent; color: var(--gm-gold); }
.gm-btn-outline:hover { background: var(--gm-gold); color: var(--gm-black); }
.gm-btn-disabled { background: transparent; color: #555; border-color: #333; cursor: not-allowed; }
.gm-btn-large { padding: 16px 40px; font-size: 14px; }

/* ---------- Single Event Hero ---------- */
.gm-event-hero {
	position: relative; min-height: 85vh; background-size: cover; background-position: center;
	display: flex; align-items: flex-end; background-color: #000;
}
.gm-event-hero-overlay {
	width: 100%; padding: 80px 48px 64px;
	background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.85) 60%, #000 100%);
	color: var(--gm-white);
}
.gm-event-title { font-size: clamp(32px, 6vw, 64px); margin: 12px 0; letter-spacing: 1px; }
.gm-event-artists { color: var(--gm-gold); font-size: 18px; letter-spacing: .5px; margin: 0 0 12px; }
.gm-event-meta { color: var(--gm-gray); text-transform: uppercase; letter-spacing: 1px; font-size: 13px; margin-bottom: 24px; }
.gm-event-category { color: var(--gm-gray); font-size: 13px; margin-bottom: 24px; }

/* ---------- Story / Video / Gallery ---------- */
.gm-event-story, .gm-event-video, .gm-event-gallery, .gm-event-partners, .gm-event-close {
	background: var(--gm-black); color: var(--gm-white); padding: 64px 0;
	border-top: 1px solid var(--gm-border);
}
.gm-event-story h2, .gm-event-gallery h2, .gm-event-partners h2 { color: var(--gm-gold); text-transform: uppercase; letter-spacing: 2px; font-size: 22px; margin-bottom: 24px; }
.gm-story-content { max-width: 760px; line-height: 1.8; color: #ddd; }
.gm-video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.gm-video-item { min-width: 0; }
.gm-video-player, .gm-video-embed { width: 100%; aspect-ratio: 16/9; border-radius: var(--gm-radius); border: 1px solid var(--gm-border); background: #000; overflow: hidden; }
.gm-video-player { display: block; }
.gm-video-embed iframe { width: 100%; height: 100%; display: block; border: 0; }
.gm-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.gm-gallery-item img { width: 100%; border-radius: var(--gm-radius); }
.gm-partners-list { color: var(--gm-gray); letter-spacing: .5px; }
.gm-event-close { text-align: center; }
.gm-brand-motto { color: var(--gm-gold); letter-spacing: 3px; text-transform: uppercase; font-size: 13px; margin-bottom: 24px; }

/* ---------- Ticket Selection Modal ---------- */
body.gm-modal-open { overflow: hidden; }
.gm-ticket-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
.gm-ticket-modal.is-open { display: flex; }
.gm-ticket-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.86); backdrop-filter: blur(8px); }
.gm-ticket-dialog {
	position: relative;
	z-index: 1;
	width: min(760px, 100%);
	max-height: calc(100vh - 48px);
	over-y: auto;
	background: rgba(13,13,13,.96);
	border: 1px solid var(--gm-border);
	border-radius: 6px;
	box-shadow: 0 32px 100px rgba(0,0,0,.8);
	padding: 32px;
	color: var(--gm-white);
}
.gm-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 38px;
	height: 38px;
	border: 1px solid rgba(255,255,255,.22);
	border-radius: 50%;
	background: transparent;
	color: var(--gm-white);
	font-size: 26px;
	line-height: 32px;
	cursor: pointer;
	transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.gm-modal-close:hover { color: var(--gm-gold); border-color: var(--gm-gold); transform: rotate(90deg); }
.gm-ticket-modal-header { padding-right: 48px; margin-bottom: 26px; }
.gm-ticket-modal-header h2 { margin: 3px 0 6px; color: var(--gm-white); font-size: clamp(25px, 4vw, 36px); }
.gm-ticket-modal-header > p:last-child { margin: 0; color: var(--gm-gray); }
.gm-ticket-kicker { margin: 0; color: var(--gm-gold); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.gm-ticket-tiers { width: 100%; }
.gm-tiers-heading { color: var(--gm-gold); text-transform: uppercase; letter-spacing: 2px; font-size: 20px; margin-bottom: 24px; }
.gm-tier-card {
	display: flex; justify-content: space-between; align-items: center; gap: 20px;
	background: var(--gm-card-bg); border: 1px solid var(--gm-border); border-radius: var(--gm-radius);
	padding: 20px 24px; margin-bottom: 14px;
}
.gm-tier-card.gm-tier-soldout { opacity: .5; }
.gm-tier-info h4 { margin: 0 0 6px; color: var(--gm-white); letter-spacing: .5px; }
.gm-tier-info p { margin: 0; color: var(--gm-gray); font-size: 13px; }
.gm-tier-action { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.gm-tier-price { color: var(--gm-gold); font-weight: 700; font-size: 16px; }
.gm-tier-msg { margin-top: 16px; color: var(--gm-gold); }
.gm-quantity-control { display: flex; align-items: center; gap: 7px; color: var(--gm-gray); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.gm-ticket-quantity { min-width: 58px; height: 42px; padding: 0 9px; border: 1px solid var(--gm-border); border-radius: 2px; background: var(--gm-black); color: var(--gm-white); }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
	.gm-event-hero-overlay { padding: 48px 20px; }
	.gm-tier-card { flex-direction: column; align-items: flex-start; }
	.gm-ticket-modal { padding: 12px; }
	.gm-ticket-dialog { max-height: calc(100vh - 24px); padding: 24px 18px; }
	.gm-tier-action { width: 100%; flex-wrap: wrap; }
	.gm-tier-action .gm-btn { flex: 1; text-align: center; padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.gm-event-card, .gm-card-image img, .gm-btn, .gm-modal-close { transition: none; }
}

/* ---------- Dashboard-controlled design system ---------- */
.gm-container { max-width: var(--gm-container-width); padding-left: var(--gm-container-padding); padding-right: var(--gm-container-padding); }
.gm-container, .gm-event-hero, .gm-event-card, .gm-ticket-modal { font-family: var(--gm-font); font-size: var(--gm-body-size); line-height: var(--gm-line-height); }
.gm-event-card { border-radius: var(--gm-card-radius); border-width: var(--gm-card-border-width); border-color: var(--gm-card-border-color); box-shadow: var(--gm-card-shadow); }
.gm-event-card:hover { border-color: var(--gm-gold); transform: translateY(calc(var(--gm-card-hover-lift) * -1)); }
.gm-card-body { padding: var(--gm-card-padding); text-align: var(--gm-card-align); }
.gm-card-title { font-family: var(--gm-heading-font); font-size: var(--gm-card-title-size); }
.gm-card-meta { font-size: var(--gm-card-meta-size); }
.gm-btn { padding: var(--gm-button-py) var(--gm-button-px); font-size: var(--gm-button-size); font-weight: var(--gm-button-weight); letter-spacing: var(--gm-button-spacing); border-radius: var(--gm-button-radius); }
.gm-btn-gold { background: var(--gm-button-bg); color: var(--gm-button-text); border-color: var(--gm-button-border); }
.gm-btn-gold:hover { background: var(--gm-button-hover-bg); color: var(--gm-button-hover-text); border-color: var(--gm-button-hover-bg); }
.gm-event-hero { min-height: var(--gm-hero-height); }
.gm-event-hero-overlay { padding: var(--gm-hero-py) var(--gm-hero-px); text-align: var(--gm-hero-align); }
.gm-event-title { font-family: var(--gm-heading-font); font-size: var(--gm-hero-title-size); color: var(--gm-hero-title-color); }
.gm-event-artists { color: var(--gm-hero-artist); }
.gm-event-meta, .gm-event-category { color: var(--gm-hero-meta); }
.gm-event-story, .gm-event-video, .gm-event-gallery, .gm-event-partners, .gm-event-close { padding-top: var(--gm-section-padding); padding-bottom: var(--gm-section-padding); }
.gm-event-story h2, .gm-event-gallery h2, .gm-event-partners h2 { font-family: var(--gm-heading-font); font-size: var(--gm-section-heading-size); text-align: var(--gm-section-align); }
.gm-video-grid { gap: var(--gm-video-gap); }
.gm-video-player, .gm-video-embed { border-radius: var(--gm-video-radius); border-width: var(--gm-video-border-width); }
.gm-gallery-grid { grid-template-columns: repeat(var(--gm-gallery-cols), minmax(0, 1fr)); gap: var(--gm-gallery-gap); }
.gm-gallery-item { overflow: hidden; border-radius: var(--gm-gallery-radius); cursor: zoom-in; }
.gm-gallery-item img { width: 100%; height: var(--gm-gallery-height); object-fit: var(--gm-gallery-fit); display: block; border-radius: var(--gm-gallery-radius); transition: transform .3s ease; }
.gm-gallery-item:hover img { transform: scale(1.025); }
.gm-ticket-dialog { width: min(var(--gm-modal-width), 100%); padding: var(--gm-modal-padding); border-radius: var(--gm-modal-radius); background: var(--gm-modal-bg); }
.gm-ticket-backdrop { background: rgba(0,0,0,var(--gm-modal-backdrop)); }
.gm-tier-card { padding: var(--gm-tier-padding); margin-bottom: var(--gm-tier-gap); border-radius: var(--gm-tier-radius); }
.gm-tier-info h4 { font-family: var(--gm-heading-font); }
.gm-gallery-lightbox { position: fixed; inset: 0; z-index: 1000000; display: none; align-items: center; justify-content: center; padding: 30px; background: var(--gm-gallery-popup-bg); }
.gm-gallery-lightbox.is-open { display: flex; }
.gm-gallery-lightbox img { max-width: min(94vw, 1500px); max-height: 90vh; width: auto; height: auto; object-fit: contain; border-radius: var(--gm-gallery-popup-radius); box-shadow: 0 30px 100px rgba(0,0,0,.65); }
.gm-gallery-lightbox-close { position: absolute; top: 18px; right: 22px; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: transparent; color: #fff; font-size: 32px; line-height: 40px; cursor: pointer; }
.gm-gallery-lightbox-close:hover { color: var(--gm-gold); border-color: var(--gm-gold); }
@media (max-width: 900px) { .gm-gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .gm-gallery-grid { grid-template-columns: 1fr; } .gm-event-title { font-size: clamp(32px, 11vw, 52px); } .gm-event-hero-overlay { padding: 48px 20px; } }


/* ---------- Single Event Centered Presentation ---------- */
.gm-event-hero { align-items: center; justify-content: center; }
.gm-event-hero-overlay {
	box-sizing: border-box;
	text-align: center !important;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: linear-gradient(180deg, rgba(0,0,0,.50) 0%, rgba(0,0,0,.68) 55%, rgba(0,0,0,.82) 100%);
}
.gm-event-title, .gm-event-artists, .gm-event-meta, .gm-event-category { text-align: center; }
.gm-event-title { margin: 10px auto 12px; }
.gm-event-artists, .gm-event-meta, .gm-event-category { margin-left: auto; margin-right: auto; }
.gm-event-hero .gm-btn { margin-left: auto; margin-right: auto; }
.gm-status-badge {
	position: static;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0 auto 12px;
}
.gm-status-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
	display: inline-block;
	animation: gm-live-dot 1s ease-in-out infinite;
}
@keyframes gm-live-dot {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: .28; transform: scale(.68); }
}
.gm-status-past .gm-status-dot { animation: none; opacity: .7; }
.gm-event-story .gm-container { text-align: center; }
.gm-event-story h2 { text-align: center !important; }
.gm-story-content { margin-left: auto; margin-right: auto; text-align: center; }
.gm-story-content p, .gm-story-content ul, .gm-story-content ol { text-align: center; }
.gm-event-video .gm-container, .gm-event-gallery .gm-container, .gm-event-partners .gm-container { text-align: center; }
.gm-event-gallery h2, .gm-event-partners h2 { text-align: center !important; }
.gm-event-video .gm-video-grid, .gm-event-gallery .gm-gallery-grid { text-align: left; }
.gm-event-partners .gm-partners-list { text-align: center; }
.gm-event-hero .gm-btn-gold {
	background: var(--gm-button-bg, #D4AF37) !important;
	color: var(--gm-button-text, #000000) !important;
	border-color: var(--gm-button-border, #D4AF37) !important;
}
.gm-event-hero .gm-btn-gold:hover {
	background: var(--gm-button-hover-bg, #e4c351) !important;
	color: var(--gm-button-hover-text, #000000) !important;
	border-color: var(--gm-button-hover-bg, #e4c351) !important;
}
@media (prefers-reduced-motion: reduce) { .gm-status-dot { animation: none; } }

/* Single event card description */
.gm-event-short-description { max-width: 760px; margin: 18px auto 0; text-align: center; color: rgba(255,255,255,.88); font-size: 16px; line-height: 1.7; }

/* ==========================================================================
   SEAT LOCK — Checkout 5-minute countdown timer
   ========================================================================== */
.gm-lock-timer {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--gm-card-bg, #0d0d0d);
	border: 1px solid var(--gm-gold, #D4AF37);
	color: var(--gm-white, #fff);
	border-radius: var(--gm-radius, 4px);
	padding: 14px 18px;
	margin: 0 0 24px;
	font-size: 14px;
	letter-spacing: .3px;
}
.gm-lock-timer-icon { font-size: 18px; line-height: 1; }
.gm-lock-timer-countdown {
	display: inline-block;
	min-width: 52px;
	color: var(--gm-gold, #D4AF37);
	font-variant-numeric: tabular-nums;
	letter-spacing: 1px;
}
.gm-lock-timer.gm-lock-warning {
	border-color: #e2543f;
	animation: gm-lock-pulse 1s ease-in-out infinite;
}
.gm-lock-timer.gm-lock-warning .gm-lock-timer-countdown { color: #e2543f; }
.gm-lock-timer.gm-lock-expired {
	border-color: #e2543f;
	background: rgba(226,84,63,0.08);
}
@keyframes gm-lock-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(226,84,63,0.35); }
	50% { box-shadow: 0 0 0 6px rgba(226,84,63,0); }
}

/* ==========================================================================
   SEAT LOCK — "Held by another buyer" modal
   ========================================================================== */
.gm-held-modal { position: fixed; inset: 0; z-index: 100000; display: none; }
.gm-held-modal.is-open { display: block; }
.gm-held-modal-backdrop {
	position: absolute; inset: 0;
	background: rgba(0,0,0,0.86);
}
.gm-held-modal-box {
	position: relative;
	max-width: 420px;
	margin: 12vh auto 0;
	background: var(--gm-card-bg, #0d0d0d);
	border: 1px solid var(--gm-gold, #D4AF37);
	border-radius: 6px;
	padding: 32px 28px;
	text-align: center;
	color: var(--gm-white, #fff);
}
.gm-held-modal-title {
	margin: 0 0 10px;
	color: var(--gm-gold, #D4AF37);
	font-size: 15px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}
.gm-held-modal-msg { margin: 0; font-size: 14px; line-height: 1.6; color: var(--gm-gray, #B8B8B8); }
.gm-held-modal-close {
	position: absolute; top: 10px; right: 14px;
	background: none; border: none; color: var(--gm-gray, #B8B8B8);
	font-size: 22px; line-height: 1; cursor: pointer;
}
.gm-held-modal-close:hover { color: var(--gm-gold, #D4AF37); }

/* ==========================================================================
   CUSTOM EVENT FIELDS — single event page display
   ========================================================================== */
.gm-event-custom-fields { padding: 0 0 var(--gm-section-padding, 48px); }
.gm-custom-fields-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px 32px;
	border-top: 1px solid rgba(212,175,55,0.25);
	padding-top: 24px;
}
.gm-custom-field-row { display: flex; flex-direction: column; gap: 4px; }
.gm-custom-field-label {
	font-size: 11px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--gm-gold, #D4AF37);
}
.gm-custom-field-value {
	font-size: 15px;
	color: var(--gm-white, #fff);
	line-height: 1.5;
}
.gm-custom-field-value a { color: var(--gm-gold, #D4AF37); text-decoration: underline; }
