/* ============================================
   EVENTS
   ============================================ */

/* Ticker strip */
.ticker-strip {
  background: var(--charcoal);
  border-top: 1px solid rgba(214, 169, 74, 0.18);
  border-bottom: 1px solid rgba(214, 169, 74, 0.18);
  padding: 10px 0;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
}

.ticker-item {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0 24px;
  flex-shrink: 0;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }
}

/* ============================================
   FEATURED BANNER
   ============================================ */

.efb {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(184, 136, 42, 0.18);
  margin-top: var(--space-md);
}

/* Blurred background layer */
.efb-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.efb-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(40px) brightness(0.35);
  transform: scale(1.2);
  display: block;
}

.efb-bg-gradient {
  width: 100%;
  height: 100%;
  background: linear-gradient(155deg, #050408 0%, #0D0A5C 55%, #050408 100%);
}

/* Gradient overlay for page blending */
.efb-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(5, 4, 8, 0.72) 0%,
    rgba(13, 10, 92, 0.48) 50%,
    rgba(5, 4, 8, 0.80) 100%
  );
}

/* Two-column layout: poster | details */
.efb-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "poster details";
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-md) var(--gutter);
}

/* Mobile label sits above poster in HTML; hidden on desktop */
.efb-label-top {
  display: none;
}

.efb-poster {
  grid-area: poster;
  display: flex;
  align-items: center;
}

/* Natural aspect ratio, constrained by height. Posters arrive as square,
   portrait or occasionally landscape — contain handles all three correctly. */
.efb-poster img {
  max-height: 460px;
  max-width: 320px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.efb-poster .event-poster-fallback {
  width: 260px;
  height: 360px;
}

.efb-details {
  grid-area: details;
  padding: var(--space-sm) 0;
}

.efb-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  padding: 4px 10px;
  margin-bottom: var(--space-sm);
  min-height: 44px;
  line-height: 36px;
}

.efb-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 3rem);
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 14px;
}

.efb-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 241, 208, 0.7);
  margin-bottom: 10px;
}

.efb-date {
  color: var(--gold);
  font-variant: small-caps;
  font-weight: 500;
}

.efb-sep {
  color: rgba(255, 241, 208, 0.25);
}

.efb-entry {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 241, 208, 0.5);
  margin-bottom: 14px;
}

.efb-desc {
  font-size: 14px;
  color: rgba(255, 241, 208, 0.78);
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: var(--space-md);
}

.efb-ctas {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Mobile: stack label → poster → details */
@media (max-width: 900px) {
  .efb-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "label"
      "poster"
      "details";
    gap: var(--space-sm);
    padding: var(--space-sm) var(--gutter);
  }

  .efb-label-top {
    display: inline-block;
    grid-area: label;
  }

  /* Hide the duplicate label inside details on mobile */
  .efb-details .efb-label-side {
    display: none;
  }

  .efb-poster {
    justify-content: center;
    width: 100%;
  }

  .efb-poster img {
    max-height: 400px;
    max-width: 100%;
    width: auto;
  }

  .efb-poster .event-poster-fallback {
    width: 100%;
    max-width: 320px;
    height: 320px;
  }
}

/* ============================================
   FALLBACK POSTER (no image)
   ============================================ */

.event-poster-fallback {
  background: linear-gradient(155deg, #050408 0%, #0D0A5C 55%, #050408 100%);
  border: 1px solid rgba(184, 136, 42, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.event-poster-fallback img {
  width: 38%;
  max-width: 120px;
  opacity: 0.35;
  display: block;
}

/* ============================================
   EVENT GRID
   ============================================ */

.events-section {
  background: var(--black);
  padding: var(--space-xl) 0;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-md);
}

@media (max-width: 900px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .events-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   EVENT TILE
   ============================================ */

.event-tile {
  background: var(--charcoal);
  border: 1px solid rgba(255, 241, 208, 0.06);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.event-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(214, 169, 74, 0.20);
}

.event-tile-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}

.event-tile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.35s ease;
}

.event-tile:hover .event-tile-image img {
  transform: scale(1.03);
}

.event-tile-body {
  padding: var(--space-sm);
}

.event-tile-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.event-tile-date {
  font-size: 11px;
  font-variant: small-caps;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.event-tile-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  line-height: 1.15;
  color: var(--cream);
  margin-bottom: 8px;
}

.event-tile-desc {
  font-size: 13px;
  color: rgba(255, 241, 208, 0.6);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-sm);
}

.event-tile-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.event-tile-actions .text-link {
  font-size: 12px;
}

.event-tile-actions .btn {
  padding: 8px 16px;
  font-size: 11px;
}

/* ============================================
   WHAT'S ON PAGE — FILTER BAR
   ============================================ */

.filter-bar {
  position: sticky;
  top: 72px;
  z-index: 50;
  background: rgba(14, 12, 34, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(214, 169, 74, 0.12);
  padding: 14px var(--gutter);
}

.filter-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-btn {
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid rgba(255, 241, 208, 0.14);
  color: rgba(255, 241, 208, 0.6);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.filter-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(214, 169, 74, 0.08);
}

/* Past events toggle */
.past-events-toggle {
  text-align: center;
  padding: var(--space-lg) 0 var(--space-sm);
  border-top: 1px solid rgba(255, 241, 208, 0.06);
  margin-top: var(--space-md);
}

.past-events-section {
  display: none;
  margin-top: var(--space-md);
}

.past-events-section.open {
  display: block;
}

.past-events-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 241, 208, 0.35);
  text-align: center;
  margin-bottom: var(--space-md);
}

/* Empty state */
.events-empty {
  text-align: center;
  padding: var(--space-xl) var(--gutter);
  color: rgba(255, 241, 208, 0.4);
}

.events-empty p {
  font-size: 1rem;
  color: rgba(255, 241, 208, 0.4);
  margin-bottom: var(--space-sm);
}

/* ============================================
   INDIVIDUAL EVENT PAGE
   ============================================ */

.event-page {
  padding-bottom: var(--space-2xl);
}

.event-page-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.event-status-banner {
  margin-top: var(--space-md);
  padding: 14px 20px;
  border-radius: 2px;
  font-size: 13px;
  line-height: 1.6;
}

.event-status-banner strong {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  margin-right: 4px;
}

.event-status-banner a {
  color: inherit;
  text-decoration: underline;
}

.event-status-banner--postponed {
  background: rgba(242, 185, 119, 0.1);
  border: 1px solid rgba(242, 185, 119, 0.35);
  color: var(--peach);
}

.event-status-banner--cancelled {
  background: rgba(183, 108, 122, 0.1);
  border: 1px solid rgba(183, 108, 122, 0.35);
  color: var(--rose);
}

.event-meta-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(255, 241, 208, 0.08);
  margin-bottom: var(--space-md);
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 241, 208, 0.65);
}

.event-meta-date {
  color: var(--gold);
  font-variant: small-caps;
  font-weight: 500;
}

.event-meta-sep {
  color: rgba(255, 241, 208, 0.2);
}

.event-full-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 241, 208, 0.85);
  white-space: pre-line;
  margin-bottom: var(--space-lg);
}

.event-cta-block {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  background: var(--charcoal);
  border: 1px solid rgba(255, 241, 208, 0.06);
}

.event-venue-block {
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  background: var(--charcoal);
  border: 1px solid rgba(255, 241, 208, 0.06);
}

.event-venue-block h3 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-sm);
  font-size: 11px;
}

.event-venue-block address {
  font-style: normal;
  font-size: 14px;
  color: rgba(255, 241, 208, 0.7);
  margin-bottom: var(--space-sm);
}

.maps-embed {
  width: 100%;
  height: 280px;
  border: none;
  filter: grayscale(0.4) contrast(0.9);
  margin-top: var(--space-sm);
}

.event-accessibility {
  padding: var(--space-sm) var(--space-md);
  border-left: 2px solid var(--gold);
  margin-bottom: var(--space-lg);
  font-size: 14px;
  color: rgba(255, 241, 208, 0.7);
}

.related-events {
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 241, 208, 0.06);
}

.related-events h2 {
  font-size: 1.8rem;
  margin-bottom: var(--space-md);
}

/* ============================================
   404 PAGE
   ============================================ */

.notfound {
  background: var(--black);
  padding: var(--space-xl) 0 var(--space-lg);
}

.notfound-inner {
  max-width: 640px;
  text-align: center;
}

.notfound-crest {
  width: 72px;
  margin: 0 auto var(--space-sm);
  mix-blend-mode: screen;
  opacity: 0.9;
}

.notfound-code {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--gold-bright);
  margin-bottom: var(--space-xs);
}

.notfound-title {
  text-transform: uppercase;
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  overflow-wrap: break-word;
}

.notfound-body {
  font-size: 1.05rem;
  margin: var(--space-sm) auto var(--space-md);
}

.notfound-events {
  padding-top: 0;
}

.notfound-subhead {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  text-align: center;
}

.accessibility-statement-label {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.accessibility-statement-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}

.accessibility-statement-note {
  margin-top: 8px;
}

.inclusion-short {
  margin-bottom: var(--space-sm);
  font-size: 14px;
  color: rgba(255, 241, 208, 0.7);
}

.inclusion-short-heading {
  color: var(--cream);
  font-weight: 500;
  margin-bottom: 4px;
}

/* "Get directions" button under the venue maps */
.directions-link {
  margin: var(--space-sm) 0 0;
}
