/*
 * event-hub.css — komponen khusus halaman /event dan /event/{slug}.
 *
 * Dimuat SESUDAH insight-editorial.css dan hanya bekerja di dalam .evt-page, jadi
 * tidak ada halaman lain yang ikut berubah. Token warna, ukuran, dan tipografi
 * dipinjam dari variabel yang sudah didefinisikan .ins-page (navy #0e2d6c,
 * biru #1e4aa3, aksen #307FE2, lime #c7f36b, kertas #f7f5f0) supaya Event terasa
 * satu keluarga dengan Insight tanpa menyalin nilai.
 *
 * Aturan dasar: mobile-first dari 360px, target sentuh minimal 44px, tanpa scroll
 * horizontal, dan tidak ada animasi yang berjalan kalau pengguna meminta
 * reduced motion.
 */

.evt-page {
  --evt-gap: clamp(16px, 4vw, 28px);
  --evt-radius: 14px;
}

/* ── Saring peran (chip) ────────────────────────────────────────────── */

.evt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 20px 0 4px;
  list-style: none;
}

/* Hanya tautan tingkat pertama yang menjadi pil. Angka di dalamnya (.evt-chip-count)
   harus tetap teks biasa; tanpa selector langsung, angka ikut bergaya pil dan
   tampil sebagai lingkaran putih di samping label. */
.evt-chips > li > a,
.evt-chips > li > span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--ins-line);
  border-radius: 999px;
  background: var(--ins-card);
  color: var(--ins-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
}

.evt-chips > li > a:hover {
  border-color: var(--ins-blue);
  color: var(--ins-navy);
  text-decoration: none;
}

.evt-chips > li > [aria-current="page"] {
  background: var(--ins-navy);
  border-color: var(--ins-navy);
  color: #fff;
}

.evt-chips .evt-chip-count {
  margin-left: 7px;
  color: var(--ins-muted);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.evt-chips [aria-current="page"] .evt-chip-count { color: rgba(255, 255, 255, .72); }

/* ── Grid kartu ─────────────────────────────────────────────────────── */

.evt-grid {
  display: grid;
  gap: var(--evt-gap);
  grid-template-columns: 1fr;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .evt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .evt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
}

.evt-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--ins-line);
  border-radius: var(--evt-radius);
  background: var(--ins-card);
  overflow: hidden;
  transition: transform 200ms cubic-bezier(.2, .7, .2, 1), box-shadow 200ms cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-reduced-motion: reduce) {
  .evt-card { transition: none; }
}

.evt-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(14, 45, 108, .10);
}

@media (prefers-reduced-motion: reduce) {
  .evt-card:hover { transform: none; }
}

.evt-card a {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.evt-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--ins-tint);
  border-bottom: 1px solid var(--ins-line);
  overflow: hidden;
}

.evt-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Tanpa sampul: bidang berpola garis halus, bukan kotak kosong. */
.evt-card-media--none {
  background-image: repeating-linear-gradient(135deg, var(--ins-tint) 0 10px, #e7ebf3 10px 20px);
}

.evt-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 22px;
  flex: 1 1 auto;
  min-width: 0;
}

.evt-card-title {
  margin: 0;
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-size: 19px;
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ins-navy);
}

.evt-card a:hover .evt-card-title { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }

.evt-card-sum {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ins-soft);
}

.evt-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: auto 0 0;
  padding-top: 12px;
  font-size: 13px;
  color: var(--ins-muted);
}

.evt-card-meta span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }

.evt-card-more {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ins-blue);
}

/* ── Penanda peran ──────────────────────────────────────────────────── */

.evt-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--ins-tint);
  color: var(--ins-navy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.evt-badge--media {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(14, 45, 108, .92);
  color: #fff;
  backdrop-filter: none;
}

.evt-badge--past {
  background: #eceae4;
  color: var(--ins-muted);
}

/* ── Kepala detail ──────────────────────────────────────────────────── */

.evt-facts {
  display: grid;
  gap: 2px;
  margin: 26px 0 0;
  padding: 0;
  border: 1px solid var(--ins-line);
  border-radius: var(--evt-radius);
  background: var(--ins-card);
  overflow: hidden;
}

@media (min-width: 768px) {
  .evt-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.evt-fact {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--ins-line);
  min-width: 0;
}

@media (min-width: 768px) {
  .evt-fact { border-bottom: 1px solid var(--ins-line); }
  .evt-fact:nth-last-child(-n+2) { border-bottom: 0; }
}

.evt-fact:last-child { border-bottom: 0; }

.evt-fact dt {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ins-muted);
}

.evt-fact dd {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ins-ink);
  overflow-wrap: anywhere;
}

.evt-fact dd a { color: var(--ins-blue); text-decoration: underline; text-underline-offset: 2px; }

/* ── Galeri ─────────────────────────────────────────────────────────── */

.evt-gallery {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 560px) {
  .evt-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .evt-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.evt-gallery figure { margin: 0; }

.evt-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  /* contain: foto potret (piagam 1113x1400) tampil utuh, slide 16:9 tetap penuh */
  object-fit: contain;
  border: 1px solid var(--ins-line);
  border-radius: 10px;
  background: var(--ins-tint);
}

.evt-gallery figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ins-muted);
}

/* ── Baris aksi ─────────────────────────────────────────────────────── */

.evt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* .ins-btn-ghost dibuat untuk bar CTA berwarna navy (teks putih). Di atas kertas
   ia tidak terbaca, jadi tombol sekunder halaman event punya gayanya sendiri. */
.evt-btn-secondary {
  background: var(--ins-card);
  color: var(--ins-navy);
  border: 1px solid var(--ins-line);
}

.evt-btn-secondary:hover {
  border-color: var(--ins-blue);
  color: var(--ins-blue);
  background: var(--ins-tint);
}

/* ── Keadaan kosong ─────────────────────────────────────────────────── */

.evt-empty {
  margin: 22px 0 0;
  padding: 26px 22px;
  border: 1px dashed var(--ins-line);
  border-radius: var(--evt-radius);
  background: var(--ins-card);
  color: var(--ins-soft);
  font-size: 15px;
  max-width: 68ch;
}

.evt-empty p { margin: 0 0 10px; }
.evt-empty p:last-child { margin-bottom: 0; }
.evt-empty a { color: var(--ins-blue); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* Bagian "Akan datang" / "Sudah berlangsung" memakai .ins-index-note yang sudah
   ada; ini saja yang menambah jarak di antara keduanya. */
.evt-section + .evt-section { margin-top: 8px; }
