/* =========================================================
   Westridge Theatre - White, Black & Blue Color Scheme
   ========================================================= */
:root {
  --bg-white: #ffffff;
  --bg-soft: #f4f7fb;
  --black: #0c0f14;
  --text-dark: #14181f;
  --text-muted: #4b5563;
  --blue-primary: #1d4ed8;
  --blue-dark: #1e3a8a;
  --blue-light: #3b82f6;
  --blue-tint: #eff6ff;
  --border-color: #dbe3ef;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-white);
  color: var(--text-dark);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Navigation Bar ---------- */
.site-header {
  background-color: var(--black);
  color: var(--bg-white);
  border-bottom: 4px solid var(--blue-primary);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  color: var(--bg-white);
  text-decoration: none;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.main-nav {
  display: flex;
  gap: 10px;
}

.nav-link {
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  background-color: #1f2937;
  color: var(--bg-white);
}

.nav-link.active {
  background-color: var(--blue-primary);
  color: var(--bg-white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background-color: var(--bg-white);
  border-radius: 2px;
}

/* ---------- Main Page Content ---------- */
.page-content {
  flex: 1;
  padding-top: 48px;
  padding-bottom: 64px;
}

.page-title {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--blue-primary);
}

.page-intro {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 32px;
  max-width: 780px;
}

/* ---------- Current Season (Two-Column Alternating Shows) ---------- */
.shows-container {
  display: flex;
  flex-direction: column;
  gap: 44px;
  margin-bottom: 52px;
}

.show-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  background-color: var(--bg-soft);
  border: 1px solid var(--border-color);
  border-left: 6px solid var(--blue-primary);
  border-radius: 10px;
  padding: 28px;
}

.show-row--reverse {
  border-left: 1px solid var(--border-color);
  border-right: 6px solid var(--black);
}

/* Default: Text Left (col 1), Poster Right (col 2) */
.show-row .show-text {
  order: 1;
}
.show-row .show-poster {
  order: 2;
}

/* Swapped: Poster Left (col 1), Text Right (col 2) */
.show-row--reverse .show-poster {
  order: 1;
}
.show-row--reverse .show-text {
  order: 2;
}

.show-title {
   font-size: 1.75rem;
   font-weight: 800;
   color: var(--blue-dark);
   margin-bottom: 18px;
   white-space: pre-line;
}

.show-label {
   font-size: 1.05rem;
   font-weight: 700;
   text-transform: uppercase;
   letter-spacing: 0.6px;
   color: var(--black);
   margin-top: 14px;
   margin-bottom: 4px;
   white-space: pre-line;
}

.show-dates {
   font-size: 1.05rem;
   color: var(--text-dark);
   white-space: pre-line;
}

.show-poster {
  display: flex;
  justify-content: center;
  align-items: center;
}

.show-poster img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 8px;
  border: 3px solid var(--black);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  object-fit: cover;
}

.poster-placeholder {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 2 / 3;
  background: linear-gradient(145deg, var(--black), var(--blue-dark));
  color: var(--bg-white);
  border-radius: 8px;
  border: 3px solid var(--blue-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.poster-placeholder span {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.poster-placeholder small {
  color: #cbd5e1;
  font-size: 0.9rem;
}

/* ---------- Callout & Director Info ---------- */
.audition-callout,
.about-card {
  background-color: var(--blue-tint);
  border: 1px solid #bfdbfe;
  border-left: 6px solid var(--blue-primary);
  border-radius: 10px;
  padding: 28px 32px;
}

.audition-callout p,
.about-text {
  font-size: 1.08rem;
  margin-bottom: 20px;
}

.director-info {
  padding-top: 16px;
  border-top: 1px solid #bfdbfe;
}

.director-info p {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 4px;
}

.director-info a {
  color: var(--blue-primary);
  text-decoration: underline;
}

.director-info a:hover {
  color: var(--blue-dark);
}

/* ---------- Past Shows Buttons Grid ---------- */
.year-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.year-button {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 22px 18px;
  background-color: var(--black);
  color: var(--bg-white);
  text-decoration: none;
  font-size: 1.12rem;
  font-weight: 700;
  border-radius: 8px;
  border: 2px solid var(--black);
  border-bottom: 5px solid var(--blue-primary);
  transition: transform 0.15s ease, background-color 0.2s ease;
}

.year-button:hover {
  background-color: var(--blue-primary);
  border-color: var(--blue-primary);
  border-bottom-color: var(--black);
  transform: translateY(-2px);
}

/* ---------- Gallery Pages ---------- */
.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--blue-primary);
  text-decoration: none;
  font-weight: 700;
}

.back-link:hover {
  text-decoration: underline;
}

.gallery-show-section {
  margin-bottom: 56px;
}

.gallery-show-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--bg-white);
  background-color: var(--black);
  border-left: 6px solid var(--blue-light);
  padding: 12px 20px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.gallery-item {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid var(--border-color);
  background-color: var(--bg-soft);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.gallery-item img:hover {
  transform: scale(1.04);
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  color: var(--text-muted);
  background: repeating-linear-gradient(
    -45deg,
    #f8fafc,
    #f8fafc 10px,
    #eef2f8 10px,
    #eef2f8 20px
  );
}

.gallery-placeholder strong {
  color: var(--blue-dark);
  font-size: 0.95rem;
}

.gallery-placeholder span {
  font-size: 0.78rem;
  margin-top: 4px;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(12, 15, 20, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.lightbox.hidden {
  display: none;
}

.lightbox img {
  max-width: 90%;
  max-height: 82vh;
  border-radius: 6px;
  border: 3px solid var(--bg-white);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 26px;
  font-size: 2.5rem;
  color: var(--bg-white);
  background: none;
  border: none;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.2rem;
  color: var(--bg-white);
  background-color: rgba(29, 78, 216, 0.75);
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-caption {
  position: absolute;
  bottom: 18px;
  color: var(--bg-white);
  font-size: 0.95rem;
  background: rgba(0, 0, 0, 0.65);
  padding: 6px 14px;
  border-radius: 20px;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--black);
  color: #cbd5e1;
  text-align: center;
  padding: 20px 0;
  border-top: 4px solid var(--blue-primary);
  font-size: 0.95rem;
}

/* ---------- Responsive Mobile View ---------- */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background-color: var(--black);
    flex-direction: column;
    padding: 16px 24px 20px;
    border-bottom: 3px solid var(--blue-primary);
  }

  .main-nav.open {
    display: flex;
  }

  .show-row,
  .show-row--reverse {
    grid-template-columns: 1fr;
    border-right: 1px solid var(--border-color);
    border-left: 6px solid var(--blue-primary);
  }

  .show-row .show-poster,
  .show-row--reverse .show-poster {
    order: 1;
  }

  .show-row .show-text,
  .show-row--reverse .show-text {
    order: 2;
  }
}
