/* ═════════════════════════════════════════════════════════════
   YAGNA 2026 - FESTIVAL SCHEDULE CONTINUOUS MARQUEE
   ═════════════════════════════════════════════════════════════ */

#schedule {
  padding: 5rem 0 6rem;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

#schedule .schedule-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem auto;
}

/* Outer Marquee Band with top & bottom borders and soft gradient fades */
.schedule-marquee-band {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-top: 1px solid rgba(167, 167, 167, 0.32);
  border-bottom: 1px solid rgba(167, 167, 167, 0.32);
  background: rgba(248, 244, 239, 0.55);
}

/* Edge Fade Gradients */
.schedule-marquee-band::before,
.schedule-marquee-band::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(36px, 7vw, 90px);
  z-index: 4;
  pointer-events: none;
}

.schedule-marquee-band::before {
  left: 0;
  background: linear-gradient(to right, var(--cream) 0%, rgba(242, 237, 228, 0) 100%);
}

.schedule-marquee-band::after {
  right: 0;
  background: linear-gradient(to left, var(--cream) 0%, rgba(242, 237, 228, 0) 100%);
}

/* Animated Track */
.schedule-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: scheduleMarquee 45s linear infinite;
}

/* Pause on hover, keyboard focus within, or when offscreen observer toggles pause */
.schedule-marquee-band:hover .schedule-track,
.schedule-marquee-band:focus-within .schedule-track,
.schedule-track.is-paused {
  animation-play-state: paused;
}

/* Continuous 0% to -50% translation */
@keyframes scheduleMarquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Card Groups */
.schedule-group {
  display: flex;
  flex-shrink: 0;
}

/* Semantic Schedule Card */
.schedule-card {
  width: 300px;
  min-width: 300px;
  max-width: 300px;
  box-sizing: border-box;
  padding: 1.85rem 1.75rem 2rem;
  border-right: 1px solid rgba(167, 167, 167, 0.28);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.9rem;
  background: transparent;
  transition: background-color var(--tr);
  outline: none;
}

.schedule-card:hover,
.schedule-card:focus-visible {
  background: rgba(255, 255, 255, 0.45);
}

.schedule-card:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: -2px;
}

/* Card Header: Date & Tag Chip */
.sched-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.sched-card-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Category Tag Chip */
.sched-tag-chip {
  display: inline-flex;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(204, 85, 0, 0.08);
  border: 1px solid rgba(204, 85, 0, 0.22);
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  white-space: nowrap;
}

/* Programme Name */
.sched-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
  margin: 0;
}

/* Venue Text with Pin */
.sched-card-venue {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  line-height: 1.48;
  color: var(--text-light);
  margin: auto 0 0 0;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.sched-venue-pin {
  flex-shrink: 0;
  font-size: 0.85rem;
  line-height: 1.2;
}

/* Responsive: Mobile View */
@media (max-width: 640px) {
  #schedule {
    padding: 3.8rem 0 4.5rem;
  }
  #schedule .schedule-header {
    margin-bottom: 2.2rem;
  }
  .schedule-track {
    animation-duration: 35s;
  }
  .schedule-card {
    width: 250px;
    min-width: 250px;
    max-width: 250px;
    padding: 1.45rem 1.25rem 1.6rem;
    gap: 0.75rem;
  }
  .sched-card-date {
    font-size: 1.05rem;
  }
  .sched-card-title {
    font-size: 1.15rem;
  }
  .sched-card-venue {
    font-size: 0.74rem;
  }
}

/* Accessibility: prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .schedule-marquee-band {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto;
  }
  .schedule-marquee-band::before,
  .schedule-marquee-band::after {
    display: none;
  }
  .schedule-track {
    animation: none !important;
    transform: none !important;
  }
  .schedule-group[aria-hidden="true"] {
    display: none !important;
  }
}

