/* ==========================================================================
   Single Event — Hero, book bar, tabs, performances, booking modal
   ========================================================================== */

/* --- Cast & Creatives --------------------------------------------- */
.cast-creatives {
	background: var(--color-bg);
	padding: clamp(3rem, 6vw, 5rem) 0;
	border-top: 1px solid var(--color-border);
}
.cast-creatives__heading {
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	font-weight: var(--weight-extrabold);
	letter-spacing: -0.025em;
	margin-bottom: var(--space-2xl);
	color: var(--color-dark);
}
.cast-creatives__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-2xl);
}
@media (min-width: 900px) {
	.cast-creatives__grid {
		grid-template-columns: 1fr 1fr;
		gap: var(--space-3xl);
	}
}
.cast-creatives__subheading {
	font-size: var(--text-sm);
	font-weight: var(--weight-bold);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-text-muted);
	margin-bottom: var(--space-lg);
	padding-bottom: var(--space-sm);
	border-bottom: 2px solid var(--color-dark);
}
.cast-creatives__list {
	margin: 0;
	display: flex;
	flex-direction: column;
}
.cast-creatives__row {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: var(--space-md);
	padding: var(--space-sm) 0;
	border-bottom: 1px solid var(--color-border);
	font-size: var(--text-base);
	align-items: baseline;
}
.cast-creatives__row:last-child { border-bottom: 0; }
.cast-creatives__row dt {
	color: var(--color-dark);
	font-weight: var(--weight-semibold);
	margin: 0;
}
.cast-creatives__row dd {
	color: var(--color-text-muted);
	font-size: var(--text-sm);
	text-align: right;
	margin: 0;
	max-width: 60%;
}

/* --------------------------------------------------------------------------
   1. EVENT HERO
   -------------------------------------------------------------------------- */

.event-hero {
	position: relative;
	min-height: 320px;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
}

@media (min-width: 768px) {
	.event-hero {
		min-height: 420px;
	}
}

.event-hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.event-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.1) 100%);
	z-index: 1;
}

.event-hero__content {
	position: relative;
	z-index: 2;
	color: var(--color-bg);
	padding: var(--space-2xl) var(--container-padding);
}

.event-hero__content .badge {
	margin-bottom: var(--space-md);
}

.event-hero__title {
	font-size: var(--text-4xl);
	color: var(--color-bg);
	margin-bottom: var(--space-md);
}

@media (min-width: 768px) {
	.event-hero__title {
		font-size: var(--text-5xl);
	}
}

.event-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-md);
	font-size: var(--text-lg);
	color: rgba(255, 255, 255, 0.85);
}

.event-hero__meta span::after {
	content: '·';
	margin-left: var(--space-md);
	opacity: 0.5;
}

.event-hero__meta span:last-child::after {
	content: none;
}

/* --------------------------------------------------------------------------
   2. STICKY BOOK BAR
   -------------------------------------------------------------------------- */

.book-bar {
	position: sticky;
	top: var(--header-height-mobile);
	z-index: var(--z-sticky);
	background-color: var(--color-bg);
	border-bottom: 1px solid var(--color-border);
	box-shadow: var(--shadow-md);
	padding: var(--space-sm) 0;
}

@media (min-width: 1024px) {
	.book-bar {
		top: var(--header-height);
	}
}

.book-bar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-md);
}

.book-bar__info {
	display: flex;
	align-items: baseline;
	gap: var(--space-md);
	min-width: 0;
}

.book-bar__title {
	font-family: var(--font-heading);
	font-size: var(--text-lg);
	font-weight: var(--weight-bold);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.book-bar__price {
	font-size: var(--text-sm);
	color: var(--color-text-muted);
	font-weight: var(--weight-medium);
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
   3. EVENT DETAIL LAYOUT
   -------------------------------------------------------------------------- */

.event-detail {
	padding: var(--space-2xl) var(--container-padding);
}

.event-detail__layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-2xl);
}

@media (min-width: 768px) {
	.event-detail__layout {
		grid-template-columns: 1fr 340px;
	}
}

/* --------------------------------------------------------------------------
   4. TABS
   -------------------------------------------------------------------------- */

.event-tabs__list {
	display: flex;
	gap: 0;
	border-bottom: 2px solid var(--color-border);
	margin-bottom: var(--space-xl);
	overflow-x: auto;
	scrollbar-width: none;
}

.event-tabs__list::-webkit-scrollbar {
	display: none;
}

.event-tabs__tab {
	flex-shrink: 0;
	padding: var(--space-md) var(--space-lg);
	font-size: var(--text-base);
	font-weight: var(--weight-semibold);
	color: var(--color-text-muted);
	background: none;
	border: none;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	cursor: pointer;
	transition: color var(--transition-base), border-color var(--transition-base);
}

.event-tabs__tab:hover {
	color: var(--color-dark);
}

.event-tabs__tab--active,
.event-tabs__tab[aria-selected="true"] {
	color: var(--color-dark);
	border-bottom-color: var(--color-primary);
}

.event-tabs__tab:focus-visible {
	outline: 3px solid var(--color-focus);
	outline-offset: -3px;
}

.event-tabs__panel[hidden] {
	display: none;
}

.event-tabs__panel h2 {
	font-size: var(--text-2xl);
	margin-bottom: var(--space-md);
}

.event-tabs__panel h3 {
	font-size: var(--text-xl);
	margin-top: var(--space-xl);
	margin-bottom: var(--space-sm);
}

.event-tabs__panel ul {
	padding-left: var(--space-xl);
	margin-bottom: var(--space-md);
}

.event-tabs__panel li {
	margin-bottom: var(--space-xs);
}

/* Event info box */
.event-info-box {
	background-color: var(--color-bg-soft);
	border-radius: var(--radius-md);
	padding: var(--space-lg);
	margin-top: var(--space-xl);
}

.event-info-list {
	display: grid;
	gap: var(--space-md);
}

.event-info-list__item {
	display: flex;
	justify-content: space-between;
	gap: var(--space-md);
}

.event-info-list__item dt {
	font-weight: var(--weight-semibold);
	font-size: var(--text-sm);
	color: var(--color-text-muted);
}

.event-info-list__item dd {
	font-size: var(--text-sm);
	text-align: right;
}

/* --------------------------------------------------------------------------
   5. PERFORMANCE LIST (sidebar)
   -------------------------------------------------------------------------- */

.event-detail__sidebar {
	position: sticky;
	top: calc(var(--header-height) + 60px);
	align-self: start;
}

.event-detail__sidebar-title {
	font-size: var(--text-xl);
	margin-bottom: var(--space-md);
}

.performance-list {
	display: flex;
	flex-direction: column;
	gap: var(--space-sm);
}

.performance-item {
	display: flex;
	align-items: center;
	gap: var(--space-md);
	padding: var(--space-md);
	background-color: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	transition: border-color var(--transition-base);
}

.performance-item:hover {
	border-color: var(--color-primary);
}

.performance-item__date {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 60px;
	text-align: center;
}

.performance-item__day {
	font-size: var(--text-xs);
	font-weight: var(--weight-semibold);
	text-transform: uppercase;
	color: var(--color-text-muted);
}

.performance-item__daynum {
	font-size: var(--text-base);
	font-weight: var(--weight-bold);
	color: var(--color-dark);
}

.performance-item__time {
	font-size: var(--text-sm);
	color: var(--color-text-muted);
}

.performance-item__status {
	flex: 1;
}

.performance-item__action {
	flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   6. CROSS-SELL
   -------------------------------------------------------------------------- */

.cross-sell__title {
	font-size: var(--text-3xl);
	margin-bottom: var(--space-2xl);
}

/* --------------------------------------------------------------------------
   7. BOOKING MODAL
   -------------------------------------------------------------------------- */

.booking-modal[hidden] {
	display: none;
}

.booking-modal {
	position: fixed;
	inset: 0;
	z-index: var(--z-modal);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--space-md);
}

.booking-modal__backdrop {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.6);
}

.booking-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 500px;
	max-height: 90vh;
	overflow-y: auto;
	background-color: var(--color-bg);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-xl);
}

.booking-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--space-lg);
	border-bottom: 1px solid var(--color-border);
}

.booking-modal__title {
	font-size: var(--text-xl);
	margin: 0;
}

.booking-modal__close {
	background: none;
	border: none;
	cursor: pointer;
	padding: var(--space-xs);
	color: var(--color-text);
	border-radius: var(--radius-sm);
}

.booking-modal__close:focus-visible {
	outline: 2px solid var(--color-focus);
	outline-offset: 2px;
}

.booking-modal__body {
	padding: var(--space-lg);
}

.booking-modal__event-name {
	font-family: var(--font-heading);
	font-size: var(--text-lg);
	font-weight: var(--weight-bold);
	margin-bottom: var(--space-xs);
}

.booking-modal__datetime {
	font-size: var(--text-sm);
	color: var(--color-text-muted);
	margin-bottom: var(--space-xl);
}

/* Ticket rows */
.ticket-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-md);
	padding: var(--space-md) 0;
	border-bottom: 1px solid var(--color-border);
}

.ticket-row:last-child {
	border-bottom: none;
}

.ticket-row__info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ticket-row__name {
	font-weight: var(--weight-semibold);
	font-size: var(--text-base);
}

.ticket-row__desc {
	font-size: var(--text-xs);
	color: var(--color-text-muted);
}

.ticket-row__price {
	font-size: var(--text-sm);
	font-weight: var(--weight-medium);
	color: var(--color-primary);
}

.ticket-row__qty {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	flex-shrink: 0;
}

.ticket-row__btn {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--color-bg-soft);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	cursor: pointer;
	font-size: var(--text-lg);
	font-weight: var(--weight-bold);
	color: var(--color-text);
	transition: background-color var(--transition-base);
}

.ticket-row__btn:hover:not(:disabled) {
	background-color: var(--color-primary);
	color: var(--color-bg);
	border-color: var(--color-primary);
}

.ticket-row__btn:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.ticket-row__btn:focus-visible {
	outline: 2px solid var(--color-focus);
	outline-offset: 2px;
}

.ticket-row__count {
	min-width: 24px;
	text-align: center;
	font-weight: var(--weight-semibold);
	font-size: var(--text-base);
}

/* Total */
.booking-modal__total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: var(--space-lg);
	margin-top: var(--space-md);
	border-top: 2px solid var(--color-dark);
}

.booking-modal__total-label {
	font-size: var(--text-lg);
	font-weight: var(--weight-bold);
}

.booking-modal__total-amount {
	font-family: var(--font-heading);
	font-size: var(--text-2xl);
	font-weight: var(--weight-extrabold);
	color: var(--color-primary);
}

/* Footer */
.booking-modal__footer {
	padding: var(--space-md) var(--space-lg) var(--space-lg);
}

.booking-modal__add:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
