/*
 * single-av_event.css
 * Styles for individual event detail pages (single-av_event.php).
 */

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.es-hero {
  padding-top: 72px;
  background: var(--dark);
  padding-bottom: 0;
}

.es-hero-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 56px 56px 48px;
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.es-hero-date {
  background: var(--orange);
  border-radius: 14px;
  padding: 16px 22px;
  text-align: center;
  flex-shrink: 0;
  min-width: 80px;
}

.es-hero-month {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}

.es-hero-day {
  font-size: 2.8rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.05em;
  line-height: 1;
}

.es-hero-year {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}

.es-hero-text {
  padding-top: 8px;
}

.es-type-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

.es-hero-text h1 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 800;
  color: white;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.es-hero-time {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  font-weight: 300;
}

/* ── Body (content + sidebar) ─────────────────────────────────────────────── */
.es-body {
  background: var(--light);
  border-bottom: 1px solid var(--border);
}

.es-body-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 56px 56px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 56px;
  align-items: start;
}

/* ── Description ─────────────────────────────────────────────────────────── */
.es-ended-badge {
  display: inline-block;
  background: rgba(107,114,128,0.12);
  color: var(--gray);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  border: 1.5px solid rgba(107,114,128,0.2);
}

.es-description {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 36px 40px;
  font-size: 0.9rem;
  color: var(--dark);
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 28px;
}

.es-description p { margin-bottom: 1em; }
.es-description p:last-child { margin-bottom: 0; }
.es-description h1, .es-description h2, .es-description h3 {
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 1.2em 0 0.5em;
}
.es-description h2 { font-size: 1.1rem; }
.es-description h3 { font-size: 0.95rem; }
.es-description ul, .es-description ol {
  padding-left: 1.4em;
  margin-bottom: 1em;
}
.es-description li { margin-bottom: 0.3em; }
.es-description a { color: var(--blue); text-decoration: underline; }
.es-description strong { font-weight: 600; }

.es-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s;
}
.es-back-link:hover { color: var(--blue); }

/* ── Sidebar info card ────────────────────────────────────────────────────── */
.es-sidebar {
  position: sticky;
  top: 96px;
}

.es-info-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}

.es-info-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.es-info-row:first-child { padding-top: 0; }
.es-info-row:last-of-type { border-bottom: none; padding-bottom: 0; }

.es-info-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
}

.es-info-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 3px;
}

.es-info-value {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.4;
}

.es-rsvp-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--orange);
  color: white;
  padding: 13px 20px;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  margin-top: 20px;
  transition: background 0.2s, transform 0.15s;
}
.es-rsvp-btn:hover {
  background: #d96820;
  transform: translateY(-1px);
}
.es-rsvp-btn--past {
  background: var(--dark);
}
.es-rsvp-btn--past:hover {
  background: #222;
}
.es-rsvp-btn--community {
  background: var(--gray);
  cursor: default;
}
.es-rsvp-btn--community:hover {
  background: #555;
  transform: none;
}

.es-ended-pill {
  text-align: center;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--gray);
  margin-top: 12px;
}

/* ── Exposure embed (past events with recap) ──────────────────────────────── */
.es-breadcrumbs {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  z-index: 40;
}

.es-breadcrumbs-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 10px 56px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--gray);
}

.es-breadcrumbs-inner a {
  color: var(--gray);
  text-decoration: none;
  transition: color 0.15s;
}

.es-breadcrumbs-inner a:hover {
  color: var(--blue);
}

.es-breadcrumbs-inner span:last-child {
  color: var(--dark);
  font-weight: 500;
}

.es-embed-wrap {
  width: 100%;
  margin-top: 78px;
}

.es-embed-wrap iframe {
  width: 100%;
  height: calc(100vh - 72px - 37px);
  border: none;
  display: block;
}

@media (max-width: 768px) {
  .es-breadcrumbs-inner { padding: 10px 20px; }
  .es-embed-wrap { margin-top: 66px; }
  .es-embed-wrap iframe { height: calc(100vh - 60px - 37px); }
}

/* ── Upcoming strip ───────────────────────────────────────────────────────── */
.es-upcoming-strip {
  background: white;
  padding: 64px 56px;
  border-top: 1px solid var(--border);
}

.es-upcoming-inner {
  max-width: 1300px;
  margin: 0 auto;
}

.es-upcoming-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}

.es-upcoming-title {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
}

.es-all-events-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--dark);
  color: white;
  padding: 11px 24px;
  border-radius: 9px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}
.es-all-events-btn:hover { background: #222; }

/* ── Event card overlay (upcoming strip) ──────────────────────────────────── */
.es-upcoming-strip .event-card { position: relative; }
.es-upcoming-strip .event-card-overlay-link {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 12px;
}

/* ── Cascade fixes ────────────────────────────────────────────────────────── */
.av-page-event-single .page-hero {
  display: block;
  min-height: 0;
  border-bottom: none;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .es-hero-inner { padding: 32px 20px 28px; flex-direction: column; gap: 20px; }
  .es-body-inner { padding: 32px 20px; grid-template-columns: 1fr; }
  .es-sidebar { position: static; }
  .es-description { padding: 24px 20px; }
  .es-upcoming-strip { padding: 40px 20px; }
}
