/* ==========================================================================
   VIJAYAM DANCE ACADEMY — EVENTS PAGE STYLESHEET (css/events.css)
   Luxury Editorial Stage Chronicles • Category & Year Filters • Alternating Layouts
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. EDITORIAL PAGE BANNER (Events & Stage Chronicles)
   Background Image: Events.png (assets/images/banners/Events.webp)
   -------------------------------------------------------------------------- */

.events-hero.page-editorial-banner {
  border-bottom: 1px solid rgba(184, 154, 90, 0.25);
}

.events-hero.page-editorial-banner .banner-bg-layer {
  background-image: url('../assets/images/banners/Events.webp');
  background-position: center right;
}

@media (max-width: 640px) {
  .events-hero.page-editorial-banner .banner-bg-layer {
    background-position: 86% center;
  }
}

/* --------------------------------------------------------------------------
   02. MAIN EDITORIAL ARCHIVE CONTAINER
   -------------------------------------------------------------------------- */

.events-main-archive {
  background-color: #FAF7F2;
  padding: 0 0 60px 0;
  position: relative;
  min-height: 80vh;
}

.events-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   03. TOP CONTROLS: CATEGORY TABS & YEAR DROPDOWN (STICKY FILTER BAR)
   -------------------------------------------------------------------------- */

.events-sticky-filter-wrapper {
  position: -webkit-sticky;
  position: sticky;
  top: var(--header-actual-height, 74px);
  z-index: 900;
  width: 100%;
  padding: 24px 0 16px 0;
  margin-bottom: 32px;
  background-color: #FAF7F2;
  border-bottom: 1px solid rgba(184, 154, 90, 0.22);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, padding 0.25s ease;
}

/* Enhanced state when pinned/sticky during scrolling */
.events-sticky-filter-wrapper.is-sticky {
  background-color: rgba(250, 247, 242, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184, 154, 90, 0.35);
  box-shadow: 0 8px 24px rgba(46, 11, 18, 0.08);
  padding: 14px 0;
}

.events-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 0;
  margin: 0;
  border-bottom: none;
}

.events-filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.events-tab {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #6E5659;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 7px 18px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.events-tab:hover {
  color: #2E0B12;
  border-color: rgba(184, 154, 90, 0.35);
  background: rgba(184, 154, 90, 0.06);
}

.events-tab.active {
  background-color: #2E0B12;
  color: #FFFFFF;
  font-weight: 600;
  border-color: #2E0B12;
  box-shadow: 0 4px 12px rgba(46, 11, 18, 0.15);
}

/* Year Filter Dropdown */
.events-year-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid rgba(184, 154, 90, 0.4);
  border-radius: 4px;
  padding: 6px 14px;
  box-shadow: 0 2px 8px rgba(46, 11, 18, 0.04);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.events-year-wrapper:hover,
.events-year-wrapper:focus-within {
  border-color: #9E7D3B;
  box-shadow: 0 4px 14px rgba(46, 11, 18, 0.08);
}

.year-icon {
  color: #9E7D3B;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.events-year-select {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 0.8rem;
  font-weight: 500;
  color: #3A2629;
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  padding-right: 4px;
}

/* --------------------------------------------------------------------------
   04. ALTERNATING EDITORIAL EVENT CARDS (ZIG-ZAG)
   -------------------------------------------------------------------------- */

.events-stream-list {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.event-card {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  align-items: stretch;
  background-color: #FAF7F2;
  border: 1px solid rgba(184, 154, 90, 0.28);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 6px 24px rgba(46, 11, 18, 0.04);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, opacity 0.35s ease;
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(46, 11, 18, 0.08);
  border-color: rgba(184, 154, 90, 0.45);
}

/* Reversed Alternating Cards */
.event-card.card-reversed {
  grid-template-columns: 1.08fr 1fr;
}

.event-card.card-reversed .event-card-media {
  order: 2;
}

.event-card.card-reversed .event-card-body {
  order: 1;
}

/* Card Media Block */
.event-card-media {
  position: relative;
  overflow: hidden;
  min-height: 290px;
  height: 100%;
  display: flex;
  background-color: #1A050A;
}

.event-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.event-media-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(22, 4, 6, 0.12) 0%,
    rgba(22, 4, 6, 0.25) 45%,
    rgba(22, 4, 6, 0.78) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Date Badge */
.event-date-badge {
  position: absolute;
  top: 14px;
  z-index: 2;
  background: rgba(247, 243, 237, 0.96);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(184, 154, 90, 0.4);
  border-radius: 4px;
  padding: 6px 12px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
  line-height: 1.15;
}

.event-date-badge.badge-left {
  left: 14px;
}

.event-date-badge.badge-right {
  right: 14px;
}

.badge-text-primary {
  font-family: var(--font-serif-display, 'Cormorant Garamond', Georgia, serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #2E0B12;
  display: block;
}

.badge-text-secondary {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9E7D3B;
  display: block;
  margin-top: 1px;
}

.badge-text-year {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 0.7rem;
  font-weight: 600;
  color: #5A4548;
  display: block;
  margin-top: 1px;
}

/* Media Overlay Typographic Caption */
.event-media-caption {
  position: absolute;
  bottom: 16px;
  z-index: 2;
  pointer-events: none;
  padding: 0 18px;
}

.event-media-caption.align-left {
  left: 0;
  text-align: left;
}

.event-media-caption.align-right {
  right: 0;
  text-align: right;
}

.caption-line {
  font-family: var(--font-serif-display, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(0.92rem, 1.25vw, 1.15rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.94);
  font-weight: 400;
  line-height: 1.28;
  display: block;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Card Content Body */
.event-card-body {
  padding: 28px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

.event-card-eyebrow {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9E7D3B;
  margin-bottom: 2px;
}

.event-card-title {
  font-family: var(--font-serif-display, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(1.4rem, 1.8vw, 1.85rem);
  color: #2E0B12;
  line-height: 1.15;
  font-weight: 500;
  margin: 0;
}

.event-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 0.78rem;
  color: #6E5659;
  margin-bottom: 2px;
}

.event-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-icon-svg {
  color: #B89A5A;
  flex-shrink: 0;
}

.event-card-desc {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 0.85rem;
  line-height: 1.62;
  color: #44383A;
  margin: 0;
}

/* 3-Bullet Highlights */
.event-highlights-list {
  list-style: none;
  padding: 0;
  margin: 2px 0 4px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.event-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 0.8rem;
  line-height: 1.45;
  color: #524345;
}

.highlight-check-icon {
  color: #9E7D3B;
  flex-shrink: 0;
  margin-top: 1px;
}

/* View Details Action Link */
.event-view-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 0.82rem;
  font-weight: 600;
  color: #2E0B12;
  text-decoration: none;
  background: none;
  border: none;
  padding: 4px 0;
  margin-top: 4px;
  cursor: pointer;
  transition: color 0.25s ease;
}

.event-view-link:hover,
.event-view-link:focus-visible {
  color: #9E7D3B;
}

.event-view-link .arrow-glyph {
  transition: transform 0.25s ease;
  display: inline-block;
}

.event-view-link:hover .arrow-glyph {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   05. SUBTLE CULTURAL WATERMARKS (Gopuram, Nataraja, Floral)
   -------------------------------------------------------------------------- */

.event-card-watermark {
  position: absolute;
  bottom: 12px;
  right: 16px;
  width: 140px;
  height: 140px;
  opacity: 0.12;
  pointer-events: none;
  color: #9E7D3B;
  z-index: 0;
}

.event-card.card-reversed .event-card-watermark {
  right: auto;
  left: 16px;
}

/* --------------------------------------------------------------------------
   06. CLOSING QUOTE & LOTUS WATERMARK
   -------------------------------------------------------------------------- */

.events-colophon-section {
  text-align: center;
  padding: 50px 20px 24px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.colophon-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  opacity: 0.10;
  color: #B89A5A;
  pointer-events: none;
  z-index: 0;
}

.colophon-quote {
  font-family: var(--font-serif-display, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-style: italic;
  color: #2E0B12;
  position: relative;
  z-index: 1;
  margin: 0 0 8px 0;
  max-width: 600px;
}

.colophon-author {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9E7D3B;
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   07. EMPTY FILTER STATE
   -------------------------------------------------------------------------- */

.events-empty-state {
  display: none;
  text-align: center;
  padding: 60px 20px;
  background: #FAF7F2;
  border: 1px dashed rgba(184, 154, 90, 0.4);
  border-radius: 4px;
  margin: 20px 0;
}

.events-empty-state.is-visible {
  display: block;
}

.empty-state-title {
  font-family: var(--font-serif-display);
  font-size: 1.5rem;
  color: #2E0B12;
  margin-bottom: 8px;
}

.empty-state-desc {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: #6E5659;
}

/* --------------------------------------------------------------------------
   08. VIEW DETAILS MODAL
   -------------------------------------------------------------------------- */

.event-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(22, 4, 6, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.event-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.event-modal-dialog {
  background-color: #FAF7F2;
  border: 1px solid var(--border-gold, #B89A5A);
  border-radius: 4px;
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.event-modal-backdrop.is-open .event-modal-dialog {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(46, 11, 18, 0.85);
  border: 1px solid rgba(184, 154, 90, 0.5);
  color: #FFFFFF;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.modal-close-btn:hover {
  background: #2E0B12;
  transform: rotate(90deg);
}

.modal-content-wrap {
  display: flex;
  flex-direction: column;
}

.modal-hero-img-wrap {
  width: 100%;
  height: 280px;
  position: relative;
  background-color: #1A050A;
}

.modal-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-body {
  padding: 30px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9E7D3B;
}

.modal-title {
  font-family: var(--font-serif-display);
  font-size: 1.95rem;
  color: #2E0B12;
  line-height: 1.15;
  margin: 0;
}

.modal-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: #6E5659;
  border-bottom: 1px solid rgba(184, 154, 90, 0.2);
  padding-bottom: 12px;
}

.modal-desc {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  line-height: 1.7;
  color: #3C3836;
}

.modal-highlights-title {
  font-family: var(--font-serif-display);
  font-size: 1.15rem;
  color: #2E0B12;
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   09. RESPONSIVE BREAKPOINTS (Tablet & Mobile)
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .event-card,
  .event-card.card-reversed {
    grid-template-columns: 1fr;
  }

  .event-card.card-reversed .event-card-media {
    order: 1;
  }

  .event-card.card-reversed .event-card-body {
    order: 2;
  }

  .event-card-media {
    min-height: 250px;
    height: 260px;
  }

  .event-card-body {
    padding: 24px 22px;
  }

  .event-card-watermark {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 640px) {
  .events-sticky-filter-wrapper {
    padding: 12px 0 10px 0;
    margin-bottom: 24px;
  }

  .events-sticky-filter-wrapper.is-sticky {
    padding: 10px 0;
  }

  .events-controls-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .events-filter-tabs {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 4px;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .events-filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .events-tab {
    padding: 6px 14px;
    font-size: 0.75rem;
  }

  .events-year-wrapper {
    padding: 5px 10px;
    flex-shrink: 0;
  }

  .events-year-select {
    font-size: 0.75rem;
  }

  .event-card-media {
    height: 220px;
    min-height: 220px;
  }

  .caption-line {
    font-size: 0.88rem;
  }

  .event-card-title {
    font-size: 1.45rem;
  }

  .modal-body {
    padding: 20px;
  }

  .modal-hero-img-wrap {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .events-container {
    padding: 0 16px;
  }

  .event-card-body {
    padding: 20px 16px;
    gap: 10px;
  }

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

  .event-meta-row {
    gap: 10px;
    font-size: 0.74rem;
  }

  .event-card-media {
    height: 200px;
    min-height: 200px;
  }

  .modal-body {
    padding: 20px 16px;
  }

  .modal-hero-img-wrap {
    height: 180px;
  }

  .modal-title {
    font-size: 1.5rem;
  }

  .events-empty-state {
    padding: 40px 16px;
  }
}

@media (max-width: 360px) {
  .events-controls-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .events-year-wrapper {
    align-self: flex-start;
  }

  .event-card-body {
    padding: 16px 12px;
  }

  .event-card-title {
    font-size: 1.25rem;
  }

  .event-card-media {
    height: 180px;
    min-height: 180px;
  }
}

