/* =====================================================================
   All Star Entertainment — events.css
   Page-specific styles for events.html only.
   All tokens, reset, typography, buttons, nav, and footer
   come from main.css.
   ===================================================================== */

/* ---------------------------------------------------------------------
   PAGE HEADER
   --------------------------------------------------------------------- */
.evt-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 8vw, 96px);
  background:
    radial-gradient(ellipse at 65% 50%, rgba(252,204,71,.09) 0%, transparent 58%),
    var(--bg);
}

/* Decorative background layer — sits behind the hero text.
   Painted back-to-front:
   1. left-side fade (this element's own background) — protects text legibility
   2. bokeh light blobs (::before)                   — soft ambient glow
   3. crossing spotlight beams (inline SVG)           — the "stage lights" look
   4. faint dance-floor grid, fading upward (::after) */
.evt-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  /* mirrors --bg (#22242A) as rgb — darkest near the left-aligned text */
  background: linear-gradient(100deg, rgba(34,36,42,.55) 0%, rgba(34,36,42,.2) 32%, transparent 56%);
}

.evt-hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(140px 140px at 14% 26%, rgba(252,204,71,.10), transparent 70%),
    radial-gradient(180px 180px at 84% 16%, rgba(218,68,68,.09), transparent 72%),
    radial-gradient(150px 150px at 70% 74%, rgba(252,204,71,.08), transparent 70%),
    radial-gradient(110px 110px at 30% 84%, rgba(246,243,233,.05), transparent 70%),
    radial-gradient(100px 100px at 94% 60%, rgba(252,204,71,.07), transparent 70%);
  animation: evtBokeh 10s ease-in-out infinite;
}

.evt-hero__bg::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 60%;
  background-image: repeating-linear-gradient(
    to top,
    rgba(246,243,233,.05) 0px,
    rgba(246,243,233,.05) 1px,
    transparent 1px,
    transparent 34px
  );
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,.85), transparent);
          mask-image: linear-gradient(to top, rgba(0,0,0,.85), transparent);
}

.evt-hero__beams {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.evt-hero__beams .beam--a { animation: evtBeamGlow 7s ease-in-out infinite; }
.evt-hero__beams .beam--b { animation: evtBeamGlow 8.5s ease-in-out infinite 1.2s; }
.evt-hero__beams .beam--c { animation: evtBeamGlow 6.8s ease-in-out infinite .6s; }

@keyframes evtBokeh {
  0%, 100% { opacity: .8; }
  50%      { opacity: 1; }
}
@keyframes evtBeamGlow {
  0%, 100% { opacity: .7; }
  50%      { opacity: 1; }
}

/* Text sits above every layer of .evt-hero__bg */
.evt-hero__content {
  position: relative;
  z-index: 1;
}

.evt-hero .eyebrow { margin-bottom: .9rem; }
.evt-hero__title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: var(--paper);
  max-width: 18ch;
  line-height: 1.05;
}
.evt-hero__sub {
  color: var(--paper);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  max-width: 58ch;
  margin-top: 1rem;
  line-height: 1.6;
}

/* Gold rule below header */
.evt-rule {
  height: 4px;
  background: var(--gold);
  border: none;
  margin: 0;
}

/* ---------------------------------------------------------------------
   EVENT BLOCK — wraps photos + description + schedule for one event
   Alternating bg: default = --bg, --alt = --surface
   --------------------------------------------------------------------- */
.evt-block {
  border-bottom: 1px solid var(--line);
}
.evt-block--alt {
  background: var(--surface);
}

/* ---------------------------------------------------------------------
   PHOTO ROW — 3-across grid, screenshot-friendly
   --------------------------------------------------------------------- */
.evt-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-bottom: clamp(2rem, 4vw, 2.8rem);
}

.evt-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  position: relative;
}

/* Placeholder when src is empty */
.evt-photo::before {
  content: "Photo";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-label);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--line);
  pointer-events: none;
}

.evt-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}
.evt-photo img:not([src]),
.evt-photo img[src=""] { display: none; }

@media (max-width: 640px) {
  .evt-photos {
    grid-template-columns: 1fr 1fr;
  }
  /* Hide third photo on small screens so it doesn't orphan */
  .evt-photo:nth-child(3) { display: none; }
}

/* ---------------------------------------------------------------------
   EVENT DESCRIPTION — title with icon + body text
   --------------------------------------------------------------------- */
.evt-desc {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(1.6rem, 3.5vw, 2.4rem);
  border-bottom: 1px solid var(--line);
  max-width: 72ch;
}
.evt-desc__head { margin-bottom: .9rem; }
.evt-desc__head .eyebrow { margin-bottom: .6rem; }

.evt-desc__title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: var(--paper);
  line-height: 1.06;
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
}
.evt-desc__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--gold);
  flex-shrink: 0;
}
.evt-desc__icon svg { width: 24px; height: 24px; }

/* Gold underline rule between title and body */
.evt-desc__head::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin-top: .85rem;
}

.evt-desc__body {
  color: var(--paper);
  font-size: 1.05rem;
  line-height: 1.7;
}
.evt-desc__body p + p { margin-top: .75rem; }

/* ---------------------------------------------------------------------
   SCHEDULE — the screenshot-worthy block
   Contained, self-sufficient, clearly bordered
   --------------------------------------------------------------------- */
.evt-schedule {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.2rem, 3vw, 2rem) clamp(1.2rem, 3vw, 2rem);
  /* clear separation from rest of page when screenshotted */
  box-shadow: 0 0 0 4px var(--bg);
  outline: 2px solid var(--line);
  outline-offset: 4px;
}
.evt-block--alt .evt-schedule {
  background: var(--bg);
  box-shadow: 0 0 0 4px var(--surface);
}

.schedule__heading {
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  color: var(--paper);
  margin-bottom: .3rem;
}
.schedule__note {
  font-size: .8rem;
  color: var(--paper-dim);
  font-family: var(--font-label);
  letter-spacing: .06em;
  margin-bottom: 1rem;
}

/* Divider between heading and table */
.schedule__heading::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--gold);
  width: 36px;
  margin-top: .55rem;
  margin-bottom: .85rem;
}

/* Scroll wrapper for very narrow screens */
.schedule__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.schedule__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

.schedule__table thead {
  background: var(--surface-2);
}
.evt-block--alt .schedule__table thead {
  background: var(--surface);
}

.schedule__table th {
  font-family: var(--font-label);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  padding: .75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.schedule__table tbody tr {
  border-bottom: 1px solid var(--line);
  transition: background .15s ease;
  cursor: pointer;
}
.schedule__table tbody tr:last-child { border-bottom: none; }
.schedule__table tbody tr:hover,
.schedule__table tbody tr:focus-within {
  background: rgba(252,204,71,.06);
}

.schedule__table td {
  padding: .9rem 1rem;
  vertical-align: middle;
  color: var(--paper);
  font-size: .97rem;
}

/* Day pill — colored badge per day */
.day-pill {
  display: inline-block;
  padding: .28em .8em;
  border-radius: var(--pill);
  font-family: var(--font-label);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  white-space: nowrap;
  background: var(--surface-2);
  color: var(--paper);
  border: 1px solid var(--line);
}

/* Give each day of the week its own accent */
.day-pill[data-day="Sunday"]    { background: rgba(218,68,68,.18);  color: #f08080; border-color: rgba(218,68,68,.35); }
.day-pill[data-day="Monday"]    { background: rgba(252,204,71,.15); color: var(--gold); border-color: rgba(252,204,71,.35); }
.day-pill[data-day="Tuesday"]   { background: rgba(100,160,255,.15); color: #90c0ff; border-color: rgba(100,160,255,.3); }
.day-pill[data-day="Wednesday"] { background: rgba(80,200,140,.15); color: #80e0b0; border-color: rgba(80,200,140,.3); }
.day-pill[data-day="Thursday"]  { background: rgba(200,120,255,.15); color: #d090ff; border-color: rgba(200,120,255,.3); }
.day-pill[data-day="Friday"]    { background: rgba(255,150,60,.16);  color: #ffb066; border-color: rgba(255,150,60,.35); }
.day-pill[data-day="Saturday"]  { background: rgba(255,110,180,.16); color: #ff9ecf; border-color: rgba(255,110,180,.35); }

.time-cell {
  font-family: var(--font-label);
  font-size: .93rem;
  font-weight: 700;
  color: var(--paper);
  white-space: nowrap;
}

.venue-cell {
  font-weight: 600;
  color: var(--paper);
}

.addr-cell {
  color: var(--paper-dim);
  font-size: .92rem;
  line-height: 1.4;
  position: relative;
}

/* "tap to copy" micro-hint */
.copy-hint {
  display: block;
  font-family: var(--font-label);
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--line);
  margin-top: .2rem;
  transition: color .15s;
}
.schedule__table tbody tr:hover .copy-hint { color: var(--gold); }

/* Desktop (mouse) vs mobile (touch) wording for interaction hints */
.hint-mobile { display: none; }
@media (hover: none) {
  .hint-desktop { display: none; }
  .hint-mobile { display: inline; }
}

/* Clipboard feedback line */
.schedule__copied {
  font-size: .82rem;
  color: var(--gold);
  font-family: var(--font-label);
  letter-spacing: .06em;
  min-height: 1.4em;
  margin-top: .75rem;
}

/* ---------------------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------------------- */
@media (max-width: 640px) {
  .evt-desc__title { font-size: clamp(1.6rem, 6vw, 2rem); }

  /* Schedule: swap the scrolling table for stacked, tap-friendly cards */
  .schedule__table-wrap {
    overflow-x: visible;
    border: none;
    border-radius: 0;
  }
  .schedule__table {
    display: block;
    width: 100%;
    min-width: 0;
    border-collapse: separate;
  }
  /* Visually hide the header row; each value gets its own layout cue instead */
  .schedule__table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .schedule__table tbody {
    display: block;
    width: 100%;
  }
  .schedule__table tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: .6rem;
    row-gap: .35rem;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: .9rem 1rem;
    margin-bottom: .7rem;
  }
  .evt-block--alt .schedule__table tbody tr {
    background: var(--bg);
  }
  .schedule__table tbody tr:last-child { margin-bottom: 0; }

  .schedule__table td {
    display: block;
    padding: 0;
    border: none;
    font-size: .95rem;
  }

  /* Day pill on the left, time on the right, same line */
  .schedule__table td:nth-child(1) { order: 1; }
  .schedule__table td:nth-child(2) { order: 2; margin-left: auto; }

  /* Venue and address each get their own full-width line */
  .schedule__table td.venue-cell {
    order: 3;
    width: 100%;
    font-size: 1.05rem;
  }
  .schedule__table td.addr-cell {
    order: 4;
    width: 100%;
    padding-top: .5rem;
    margin-top: .15rem;
    border-top: 1px dashed var(--line);
  }
}