/* ===== Reset & Variables ===== */

*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --bg: #0c0c0c;
  --text: #e5e4e2;
  --accent: #b07cc6;
  --accent-hover: #c084fc;
  --teal: #2dd4bf;
  --blur-amount: 20px;
  --fade-duration: 0.8s;
  --fade-easing: ease;

  --white: #fff;
  --surface: #161616;
  --surface-input: #1a1a1a;
  --border: #2a2a2a;
  --border-input: #333;
  --border-subtle: #444;
  --muted: #999;
  --muted-light: #aaa;
  --text-secondary: #ccc;
  --text-tertiary: #ddd;
  --error: #f87171;
}

/* ===== Shared Patterns ===== */

/* Blur-up image reveal */
.show-card-flyer img,
.show-detail-flyer img,
.hero-carousel-track img,
.lightbox-img,
.gallery-blur .photo-grid-item img {
  filter: blur(var(--blur-amount));
  transform: scale(1.1);
  transition: opacity var(--fade-duration) var(--fade-easing),
              filter var(--fade-duration) var(--fade-easing),
              transform var(--fade-duration) var(--fade-easing);
}

.show-card-flyer img.loaded,
.show-detail-flyer img.loaded,
.hero-carousel-track img.carousel-visible,
.lightbox-img.lightbox-visible,
.gallery-blur .photo-grid-item.gallery-visible img {
  filter: blur(0);
  transform: scale(1);
}

/* Close buttons */
.lightbox-close,
.booking-modal-close {
  position: absolute;
  top: 1rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.lightbox-close:hover,
.booking-modal-close:hover {
  opacity: 1;
}

/* Accent buttons */
.booking-cta,
.booking-form button {
  background: var(--accent);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background 0.15s;
}

.booking-cta:hover,
.booking-form button:hover:not(:disabled) {
  background: var(--accent-hover);
}

/* ===== Base Typography ===== */

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
  color: var(--white);
}

h1 {
  font-family: 'Lancelot', serif;
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1.2;
}

h2 {
  font-size: 1.375rem;
  font-weight: 600;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== Accessibility ===== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 2000;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 0 0 0.375rem 0.375rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
  color: var(--white);
}

/* ===== Layout ===== */

header, nav, main, footer {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

header svg {
  max-width: 100%;
  height: auto;
  aspect-ratio: 254.54 / 142.29;
  display: block;
  margin: 2rem auto 1rem;
}

main {
  padding-top: 1rem;
  padding-bottom: 2rem;
}

/* ===== Navigation ===== */

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

nav a {
  color: var(--text);
  transition: color 0.15s;
}

nav a:hover {
  color: var(--accent);
}

.pagination {
  justify-content: center;
  margin-top: 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.pagination a {
  color: var(--accent);
  transition: color 0.15s;
}

.pagination a:hover {
  color: var(--accent-hover);
}

/* ===== Breadcrumbs ===== */

.breadcrumbs {
  font-size: 0.75rem;
  margin-bottom: 1rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.breadcrumbs a {
  color: var(--muted);
  transition: color 0.15s;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs span {
  color: var(--text);
}

/* ===== Dividers ===== */

hr {
  border: none;
  height: 2px;
  background: linear-gradient(to right, var(--accent), var(--accent-hover), var(--teal));
  margin: 2rem 0;
}

.show-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1.5rem 0;
}

.show-divider hr {
  width: 100%;
  margin: 0.2rem 0;
}

.show-divider-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.year-divider {
  text-align: center;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 1.25rem 0 0.75rem;
  position: relative;
}

.year-divider::before,
.year-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  height: 1px;
  background-color: var(--border);
}

.year-divider::before {
  left: 0;
  right: calc(50% + 2rem);
}

.year-divider::after {
  left: calc(50% + 2rem);
  right: 0;
}

/* ===== Show Cards ===== */

.show-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.show-card h2 {
  margin: 0 0 0.25rem;
}

.show-card p {
  margin: 0;
}

.show-card-date {
  flex-shrink: 0;
  width: 5rem;
  height: 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #2d1340;
  border-radius: 0.375rem;
  color: var(--white);
  line-height: 1;
}

.date-box-month {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.date-box-day {
  font-size: 1.75rem;
  font-weight: 700;
}

.show-card-info {
  flex: 1;
  min-width: 0;
}

.show-card-summary {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.show-card-flyer {
  flex-shrink: 0;
  overflow: hidden;
}

.show-card-flyer img {
  width: 5rem;
  height: 5rem;
  object-fit: cover;
  border-radius: 0.375rem;
  opacity: 0;
}
.show-card-flyer img.loaded {
  opacity: 1;
}

.show-card-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.show-card-venue {
  white-space: nowrap;
}

.show-card-details a {
  color: var(--accent);
  font-size: 0.95rem;
}

.show-card-details a:hover {
  color: var(--accent-hover);
}

.show-card-price {
  color: var(--muted);
  white-space: nowrap;
}

/* ===== Show Detail ===== */

.show-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 1.5rem;
}

.show-detail h1 {
  margin-top: 0;
}

.show-detail-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.show-detail-venue {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.show-detail-links {
  display: flex;
  gap: 1.25rem;
}

.show-detail-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.show-detail-flyer {
  overflow: hidden;
}
.show-detail-flyer img {
  max-width: 16rem;
  border-radius: 0.5rem;
  cursor: pointer;
  opacity: 0;
}
.show-detail-flyer img.loaded {
  opacity: 1;
}
.show-detail-flyer img.loaded:hover {
  opacity: 0.8;
}

.show-detail-photos {
  grid-column: 1 / -1;
  margin-top: 2rem;
}

@media (max-width: 40rem) {
  .show-detail {
    grid-template-columns: 1fr;
  }

  .show-detail-flyer img {
    max-width: 100%;
  }
}

/* ===== Hero Carousel ===== */

.hero-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 0.375rem;
  margin: 1.5rem 0;
  background: #000;
}

.hero-carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.hero-carousel-track picture {
  width: 100%;
  flex-shrink: 0;
}

.hero-carousel-track img {
  width: 100%;
  max-height: 70vh;
  display: block;
  object-fit: contain;
}

.hero-carousel-controls {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  display: flex;
  gap: 0.35rem;
}

.hero-carousel-btn {
  background: rgba(0, 0, 0, 0.5);
  color: var(--white);
  border: none;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  border-radius: 0.25rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.hero-carousel-btn:hover,
.hero-carousel-btn:focus-visible {
  opacity: 1;
}

.hero-carousel-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hero-carousel-credit {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: rgba(0, 0, 0, 0.5);
  color: var(--text-tertiary);
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
}

.hero-carousel-credit a {
  color: var(--text-tertiary);
}

.hero-carousel-credit a:hover {
  color: var(--white);
}

/* ===== Photo Grid & Gallery ===== */

.photo-grid {
  columns: 250px;
  column-gap: 1rem;
  margin-top: 1rem;
}

.photo-grid-item {
  margin: 0 0 1rem;
  break-inside: avoid;
  cursor: pointer;
}

.photo-grid-item img {
  width: 100%;
  height: auto;
  border-radius: 0.375rem;
  display: block;
  transition: opacity 0.15s;
}

.photo-grid-item img:hover {
  opacity: 0.8;
}

.photo-grid-item figcaption {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.photo-grid-item figcaption a {
  color: var(--accent);
}

.photo-grid-item.gallery-hidden {
  display: none;
}

.gallery-blur .photo-grid-item {
  overflow: hidden;
}

.gallery-loader {
  text-align: center;
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.gallery-loader.gallery-done {
  display: none;
}

/* ===== Lightbox ===== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-close {
  right: 1.5rem;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 0.375rem;
  opacity: 0;
}
.lightbox-img.lightbox-visible {
  opacity: 1;
}

.lightbox-caption {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  text-align: center;
}

/* ===== Link in Bio ===== */

.lib {
  max-width: 480px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  text-align: center;
}

.lib header {
  padding: 0;
  margin-bottom: 1rem;
}

.lib header svg {
  max-width: 200px;
}

.lib h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 1.5rem 0 0.75rem;
}

.lib-photo {
  width: 100%;
  border-radius: 0.375rem;
  margin-bottom: 0.5rem;
}

.lib-link {
  display: block;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(176, 124, 198, 0.4);
  border-radius: 0.375rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.15s, border-color 0.15s;
}

.lib-link:hover {
  background: rgba(176, 124, 198, 0.1);
  border-color: var(--accent);
}

.lib-link-date {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.15rem;
}

.lib-link-venue {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.lib-link-site {
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  border-color: var(--accent);
  margin-top: 1rem;
}

.lib-link-site:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--bg);
}

.lib-link-book {
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  border-color: var(--accent);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.lib-link-book:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--bg);
}

.lib-bio {
  font-size: 0.8rem;
  color: var(--muted-light);
  margin-top: 1.5rem;
  line-height: 1.5;
}

.lib-payment {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.lib-payment a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-family: 'Montserrat', sans-serif;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}

.lib-payment a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== Booking ===== */

.booking-cta {
  padding: 0.75rem 2rem;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

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

.booking-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
}

.booking-modal-content {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 2rem;
  width: 100%;
  max-width: 32rem;
  max-height: 90vh;
  overflow-y: auto;
}

.booking-modal-content h2 {
  margin-top: 0;
  font-family: 'Lancelot', serif;
  font-size: 1.75rem;
  font-weight: 400;
}

.booking-modal-close {
  right: 1.25rem;
}

#booking-success,
#booking-error {
  text-align: center;
  padding: 2rem 0;
}

#booking-success h2,
#booking-error h2 {
  font-family: 'Lancelot', serif;
  font-size: 1.75rem;
  font-weight: 400;
}

#booking-error h2 {
  color: var(--error);
}

.booking-progress {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 1.5rem;
  overflow: hidden;
}

.booking-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(to right, var(--accent), var(--accent-hover), var(--teal));
  border-radius: 2px;
}

.booking-autoclose-hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* Booking form */
.booking-form {
  max-width: 32rem;
}

.booking-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
  margin-top: 1rem;
}

.booking-form label:first-of-type {
  margin-top: 0;
}

.booking-form input,
.booking-form textarea {
  display: block;
  width: 100%;
  background: var(--surface-input);
  color: var(--text);
  border: 1px solid var(--border-input);
  border-radius: 0.375rem;
  padding: 0.6rem 0.75rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.15s;
}

.booking-form input:focus,
.booking-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.booking-form textarea {
  resize: vertical;
}

.booking-form button {
  margin-top: 1.25rem;
  padding: 0.65rem 1.5rem;
  font-size: 0.85rem;
}

.booking-form button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ===== Act Cards ===== */

.act-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.act-card-link:hover {
  color: inherit;
}

.act-card {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 1rem;
  cursor: pointer;
}

.act-card-image {
  width: 100%;
  aspect-ratio: 3 / 1;
  background-size: cover;
  background-position: center;
  filter: brightness(0.5);
  transition: filter 0.3s ease;
}

.act-card:hover .act-card-image,
.act-card-link:focus-visible .act-card-image {
  filter: brightness(0.85);
}

.act-card-link:focus-visible .act-card {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.act-card-link:focus-visible {
  outline: none;
}

.act-card-image--empty {
  background: linear-gradient(135deg, #2a1a3e, #1a2a3e);
}

.act-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1.5rem;
  background: rgba(0, 0, 0, 0.88);
}

.act-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.act-card-title {
  font-family: 'Lancelot', serif;
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--white);
  margin: 0;
  flex-shrink: 0;
}

.act-card-themes {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.theme-pill {
  font-size: 0.7rem;
  padding: 0.1rem 0.6rem;
  border-radius: 1rem;
  text-transform: lowercase;
  letter-spacing: 0.03em;
}

.theme-pill:nth-child(odd) {
  background: rgba(176, 124, 198, 0.65);
  color: #e5d5ee;
}

.theme-pill:nth-child(even) {
  background: rgba(45, 212, 191, 0.5);
  color: #d0f5ef;
}

.act-card-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease, margin-top 0.35s ease;
}

.act-card:hover .act-card-description,
.act-card-link:focus-within .act-card-description {
  max-height: 10rem;
  opacity: 1;
  margin-top: 0.5rem;
}

@media (max-width: 40rem) {
  .act-card-image {
    aspect-ratio: 2.5 / 1;
  }

  .act-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .act-card-themes {
    justify-content: flex-start;
  }

  .act-card-title {
    font-size: 1.35rem;
  }

  /* On mobile, always show description expanded (no hover on touch) */
  .act-card-description {
    font-size: 0.8rem;
    max-height: 10rem;
    opacity: 1;
    margin-top: 0.5rem;
  }
}

/* ===== Act Detail ===== */

.act-detail-banner {
  border-radius: 0.375rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.act-detail-banner img {
  width: 100%;
  display: block;
}

.act-detail-themes {
  margin-bottom: 1.5rem;
  justify-content: flex-start;
}

.act-detail-description {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.act-detail-content {
  margin-bottom: 2rem;
  line-height: 1.7;
}

.act-detail-video {
  margin-bottom: 2rem;
}

.video-embed {
  max-width: 28rem;
  border-radius: 0.375rem;
  overflow: hidden;
}

.video-embed iframe {
  border: 0;
}

.act-detail-photos {
  margin-bottom: 2rem;
}

/* ===== 404 Page ===== */

.not-found {
  text-align: center;
  padding: 4rem 1rem;
}

.not-found h1 {
  font-size: 5rem;
  margin: 0 0 0.5rem;
  background: linear-gradient(to right, var(--accent), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.not-found p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.not-found .btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  background: var(--accent);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 0.375rem;
  transition: background 0.15s;
}

.not-found .btn:hover {
  background: var(--accent-hover);
}

/* ===== Footer ===== */
footer {
  padding-top: 2rem;
  padding-bottom: 2rem;
  font-size: 0.875rem;
  opacity: 0.7;
}
