/**
 * @file event-detail.css
 * Detailpagina voor één Event (view mode 'Full').
 *
 * Visuele taal in lijn met de persoon-detailpagina:
 *  - witte kaart met donkere tekst en een dunne donkere rand;
 *  - zelfde 960px-uitlijning (gecentreerde leeskolom);
 *  - afbeelding als banner met bronvermelding rechtsonder;
 *  - optionele 'Uitgelicht'-badge linksboven;
 *  - gele call-to-action knop in de huisstijl-knopstijl.
 */

/* ─── Wrapper ────────────────────────────────────────────── */
.event-detail {
  padding: var(--nnn-space-xl, 2.5rem) var(--nnn-space-md, 1rem)
           var(--nnn-space-xxl, 4rem);
}

.event-detail__container {
  max-width: 960px;
  margin: 0 auto;
}

/* ─── Terug-link ─────────────────────────────────────────── */
.event-detail__terug {
  margin: 0 0 var(--nnn-space-lg, 1.5rem);
  font-size: 0.9375rem;
}

.event-detail__terug a {
  color: var(--color-text, #111111);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.15s ease;
}

.event-detail__terug a:hover,
.event-detail__terug a:focus-visible {
  color: var(--color-event-blue, #016fb9);
}

/* ─── Kaart ──────────────────────────────────────────────── */
.event-detail__card {
  border: 2px solid var(--color-text, #111111);
  background: var(--color-white, #ffffff);
  color: var(--color-text, #111111);
  overflow: hidden;
}

.event-detail--featured .event-detail__card {
  box-shadow: 10px 10px 0 0 rgba(0, 0, 0, 0.12);
}

/* ─── Media / banner ─────────────────────────────────────── */
.event-detail__media {
  position: relative;
  aspect-ratio: 16 / 7;
  background: #d7cec2;
  border-bottom: 2px solid var(--color-text, #111111);
}

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

.event-detail__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #1a1a2e;
  color: #ffda29;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 999px;
  z-index: 2;
}

.event-detail__credit {
  position: absolute;
  bottom: 8px;
  right: 10px;
  z-index: 2;
  font-size: 0.7rem;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.7);
  padding: 2px 6px;
  border-radius: 2px;
}

a.event-detail__credit {
  text-decoration: underline;
  cursor: pointer;
}

a.event-detail__credit:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* ─── Inhoud ─────────────────────────────────────────────── */
.event-detail__content {
  padding: clamp(24px, 4vw, 48px);
}

.event-detail__meta {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  opacity: 0.98;
}

.event-detail__title {
  margin: 0 0 20px;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.event-detail__tekst {
  max-width: 60ch;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.event-detail__tekst p {
  margin: 0 0 1em;
}

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

.event-detail__tekst a {
  color: var(--color-event-blue, #016fb9);
  text-decoration: underline;
}

/* ─── Call-to-action knop ────────────────────────────────── */
/* Gebruikt de globale gele huisstijl-knop (.button--primary). */
.event-detail__link {
  margin-top: var(--nnn-space-xl, 2.5rem);
}

/* ─── Responsief ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .event-detail__media {
    aspect-ratio: 4 / 3;
  }
}
