/*
 * 21 Young Hearts — Single Event Page
 * Styles for the single-event.php template.
 * Consumes tokens from tokens.css + inherits from base.css & components.css.
 * ─────────────────────────────────────────────────────────────────
 */


/* ============================================================
   1. EVENT HERO — full-bleed image with title overlay
   ============================================================ */
.event-hero {
  position: relative;
  overflow: hidden;
  background: var(--color-blue-dark);
  min-height: 380px;
  display: flex;
  align-items: flex-end;
}

.event-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.event-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(0, 77, 117, 0.92) 0%,
    rgba(0, 77, 117, 0.6) 40%,
    transparent 75%
  );
}

.event-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: var(--space-2xl);
  padding-top: var(--space-5xl);
}

.event-hero__eyebrow {
  color: var(--color-yellow);
  margin-bottom: var(--space-sm);
}

.event-hero__title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--weight-black);
  line-height: 1.08;
  color: white;
  letter-spacing: -0.02em;
  max-width: 720px;
  margin-bottom: var(--space-md);
}

.event-hero__subtitle {
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  color: rgba(255, 255, 255, 0.85);
  line-height: var(--leading-relaxed);
  max-width: 560px;
}

@media (min-width: 900px) {
  .event-hero {
    min-height: 460px;
  }
  .event-hero__title {
    font-size: var(--text-5xl);
  }
  .event-hero__content {
    padding-bottom: var(--space-3xl);
  }
}

@media (max-width: 600px) {
  .event-hero {
    min-height: 320px;
  }
  .event-hero__title {
    font-size: var(--text-2xl);
  }
  .event-hero__subtitle {
    font-size: var(--text-base);
  }
}


/* ============================================================
   2. TWO-COLUMN LAYOUT
   ============================================================ */
.event-single__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

@media (min-width: 900px) {
  .event-single__grid {
    grid-template-columns: 1fr 380px;
    gap: var(--space-3xl);
    align-items: start;
  }
}


/* ============================================================
   3. DETAIL BAR — Date / Time / Location
   ============================================================ */
.event-detail-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0;
  background: white;
  border: 4px solid var(--color-warm-black);
  border-radius: var(--radius-lg);
  box-shadow: 4px 4px 0 var(--color-warm-black);
  overflow: hidden;
  margin-bottom: var(--space-2xl);
}

.event-detail-bar__item {
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.event-detail-bar__item + .event-detail-bar__item {
  border-left: 3px solid var(--color-warm-black);
}

.event-detail-bar__label {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-red);
}

.event-detail-bar__value {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--color-warm-black);
  line-height: var(--leading-tight);
}

@media (max-width: 600px) {
  .event-detail-bar {
    grid-template-columns: 1fr;
  }
  .event-detail-bar__item + .event-detail-bar__item {
    border-left: none;
    border-top: 3px solid var(--color-warm-black);
  }
  .event-detail-bar__item {
    padding: var(--space-md) var(--space-lg);
  }
}


/* ============================================================
   4. EVENT DESCRIPTION
   ============================================================ */
.event-single__description {
  margin-bottom: var(--space-2xl);
}

.event-single__description p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-warm-black);
  margin-bottom: var(--space-md);
}

.event-single__description p:last-child {
  margin-bottom: 0;
}

.event-single__description a {
  color: var(--color-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1.5px;
}
.event-single__description a:hover {
  color: var(--color-blue-dark);
}


/* ============================================================
   5. PHOTO GALLERY
   ============================================================ */
.event-gallery {
  margin-bottom: var(--space-2xl);
}

.event-gallery__header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: var(--space-lg);
}

.event-gallery__frame {
  position: relative;
  border: 4px solid var(--color-warm-black);
  border-radius: var(--radius-lg);
  box-shadow: 4px 4px 0 var(--color-warm-black);
  overflow: hidden;
}

.event-gallery__slider {
  overflow: hidden;
}

.event-gallery__item {
  aspect-ratio: 16 / 10;
  background: var(--color-cream);
  overflow: hidden;
}

.event-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Custom expanding dots */
.event-gallery__dots {
  position: absolute;
  bottom: var(--space-lg);
  right: var(--space-lg);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
}

.event-gallery__dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid var(--color-warm-black);
  cursor: pointer;
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: width var(--duration-normal) var(--ease-bounce),
              background var(--duration-normal) var(--ease-out);
}

.event-gallery__dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--color-red);
  transform: scaleX(0);
  transform-origin: left;
}

.event-gallery__dot.is-active {
  width: 36px;
  background: white;
}

.event-gallery__dot.is-active::after {
  animation: eventGalleryDotFill 3s linear forwards;
}

.event-gallery__dot:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 2px;
}

@keyframes eventGalleryDotFill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}


/* ============================================================
   6. WHAT TO EXPECT
   ============================================================ */
.event-expect {
  margin-bottom: var(--space-2xl);
}

.event-expect__heading {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-red);
  margin-bottom: var(--space-lg);
}

.event-expect__box {
  background: white;
  border: 4px solid var(--color-warm-black);
  border-radius: var(--radius-lg);
  box-shadow: 4px 4px 0 var(--color-warm-black);
  padding: var(--space-lg) var(--space-xl);
}

.event-expect__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.event-expect__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--color-warm-black);
  line-height: var(--leading-relaxed);
}

.event-expect__dot {
  width: 10px;
  height: 10px;
  min-width: 10px;
  border-radius: 50%;
  background: var(--color-yellow);
  border: 2px solid var(--color-warm-black);
  margin-top: 7px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .event-expect__box {
    padding: var(--space-md) var(--space-lg);
  }
}


/* ============================================================
   6. WHERE BOX (inside booking card)
   ============================================================ */
.event-booking__where {
  background: rgba(255, 255, 255, 0.12);
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-lg);
}

.event-booking__where-label {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.65);
  display: block;
  margin-bottom: var(--space-xs);
}

.event-booking__where-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: white;
  line-height: var(--leading-tight);
}

.event-booking__where-address {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: rgba(255, 255, 255, 0.75);
  line-height: var(--leading-relaxed);
  margin-top: var(--space-xs);
}

.event-booking__directions {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--color-yellow);
  text-decoration: none;
  margin-top: var(--space-sm);
  transition: gap var(--duration-normal) var(--ease-bounce);
}
.event-booking__directions span {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}
.event-booking__directions svg {
  width: 16px;
  height: 16px;
}
.event-booking__directions:hover {
  color: white;
  gap: var(--space-sm);
}


/* ============================================================
   7. BOOKING SIDEBAR CARD
   ============================================================ */
.event-booking {
  background: var(--color-blue);
  border: 4px solid var(--color-warm-black);
  border-radius: var(--radius-lg);
  box-shadow: 4px 4px 0 var(--color-warm-black);
  padding: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-xl);
}

.event-booking__heading {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: white;
  margin-bottom: var(--space-md);
}

.event-booking__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.event-booking__price-label {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-black);
  color: var(--color-yellow);
  line-height: 1;
}

.event-booking__price-sub {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: rgba(255, 255, 255, 0.75);
}

.event-booking__note {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: rgba(255, 255, 255, 0.8);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-lg);
}

.event-booking__when {
  background: rgba(255, 255, 255, 0.12);
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-lg);
}

.event-booking__when-label {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.65);
  display: block;
  margin-bottom: var(--space-xs);
}

.event-booking__when-date {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: white;
  line-height: var(--leading-tight);
  margin-bottom: 2px;
}

.event-booking__when-location {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: rgba(255, 255, 255, 0.75);
}

.event-booking__btn {
  display: block;
  width: 100%;
  text-align: center;
}

.event-booking__dropin {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--color-yellow);
  padding: var(--space-md) 0 0;
}
.event-booking__dropin svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Sticky sidebar on desktop */
@media (min-width: 900px) {
  .event-single__sidebar {
    position: sticky;
    top: calc(76px + var(--space-xl));
  }
}


/* ============================================================
   8. SHARE THIS EVENT
   ============================================================ */
.event-share {
  background: white;
  border: 4px solid var(--color-warm-black);
  border-radius: var(--radius-lg);
  box-shadow: 4px 4px 0 var(--color-warm-black);
  padding: var(--space-lg) var(--space-xl);
}

.event-share__label {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-red);
  margin-bottom: var(--space-md);
}

.event-share__icons {
  display: flex;
  gap: var(--space-sm);
}

.event-share__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 3px solid var(--color-warm-black);
  border-radius: var(--radius-md);
  background: var(--color-warm-white);
  color: var(--color-warm-black);
  text-decoration: none;
  box-shadow: 2px 2px 0 var(--color-warm-black);
  transition: all var(--duration-fast) var(--ease-bounce);
}

.event-share__link:hover {
  background: var(--color-blue);
  color: white;
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--color-warm-black);
}

.event-share__link:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 2px;
}

.event-share__link svg {
  width: 18px;
  height: 18px;
}

/* Copy link button */
.event-share__copy {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  position: relative;
}

.event-share__copy.is-copied {
  background: var(--color-success);
  color: white;
  border-color: var(--color-warm-black);
}

/* Tooltip */
.event-share__copy::before {
  content: 'Link copied!';
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: white;
  background: var(--color-warm-black);
  border: 3px solid var(--color-warm-black);
  border-radius: var(--radius-md);
  padding: 4px 12px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}

/* Tooltip arrow */
.event-share__copy::after {
  content: '';
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--color-warm-black);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.event-share__copy.is-copied::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.event-share__copy.is-copied::after {
  opacity: 1;
}


/* ============================================================
   9. RESPONSIVE — mobile stacking
   ============================================================ */
@media (max-width: 899px) {
  .event-booking {
    margin-bottom: var(--space-md);
  }
}

@media (max-width: 600px) {
  .event-booking {
    padding: var(--space-md) var(--space-lg);
  }
  .event-booking__price-label {
    font-size: var(--text-2xl);
  }
  .event-share {
    padding: var(--space-md) var(--space-lg);
  }
}
