
/* Karchi Online components. Alle waarden komen uit tokens.css. */

/* De type-stijl label staat altijd in hoofdletters. */
.label { text-transform: uppercase; }

/* ---------- Button ---------- */
.ko-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-body); font-size: 16px; line-height: 20px; font-weight: 700;
  padding: 13px 22px; border-radius: var(--radius-pill); border: 2px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, filter .12s ease;
}
.ko-btn:hover { filter: brightness(1.06); }
.ko-btn:active { transform: translateY(1px); }
.ko-btn:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--surface), 0 0 0 5px var(--brand-text); }
.ko-btn--primary { background: var(--karchi-orange); color: var(--on-orange); }
.ko-btn--secondary { background: var(--karchi-blue); color: var(--on-blue); }
.ko-btn--outline { background: transparent; color: var(--brand-text); border-color: var(--brand-text); }
.ko-btn--sm { font-size: 14px; padding: 8px 14px; }
.ko-btn--lg { font-size: 18px; padding: 16px 28px; }
.ko-btn[disabled], .ko-btn[aria-disabled="true"] {
  background: var(--border); color: var(--ink-muted); border-color: transparent; cursor: not-allowed; filter: none; transform: none;
}
@media (prefers-reduced-motion: reduce) { .ko-btn { transition: none; } }

/* ---------- Chip ---------- */
.ko-chip {
  display: inline-flex; align-items: center; gap: var(--space-1);
  font-family: var(--font-body); font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  padding: 5px 10px; border-radius: var(--radius-pill);
}
.ko-chip--hot { background: var(--karchi-orange); color: var(--on-orange); }
.ko-chip--soldout { background: var(--ink); color: var(--surface); }
.ko-chip--new { background: var(--karchi-blue); color: var(--on-blue); }

/* ---------- EventCard ---------- */
.ko-event {
  display: grid; grid-template-rows: auto 1fr; min-width: 0; overflow: hidden;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--border); border-radius: var(--radius-md);
}
.ko-event__art {
  position: relative; aspect-ratio: 16 / 10; max-width: 100%; overflow: hidden;
  background: var(--karchi-blue);
}
.ko-event__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ko-event__art .ko-chip { position: absolute; left: var(--space-4); top: var(--space-4); }
.ko-event__body { display: grid; gap: var(--space-3); padding: var(--space-6); align-content: start; }
.ko-event__meta { font-family: var(--font-body); font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-muted); }
.ko-event__title { margin: 0; font-family: var(--font-display); font-size: 28px; line-height: 32px; font-weight: 800; letter-spacing: -0.4px; text-wrap: balance; }
.ko-event__venue { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 24px; color: var(--ink-muted); }
.ko-event__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-top: var(--space-2); }
.ko-event__price { display: grid; gap: 2px; }
.ko-event__price small { font-family: var(--font-body); font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-muted); }
.ko-event__price strong { font-family: var(--font-display); font-size: 26px; line-height: 30px; font-weight: 800; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.ko-event--soldout .ko-event__art { filter: grayscale(.85); }
.ko-event--soldout .ko-event__price strong { color: var(--ink-muted); text-decoration: line-through; }

/* ---------- Ticket ---------- */
.ko-ticket {
  --notch: 14px;
  display: grid; grid-template-columns: 1fr auto; min-width: 0;
  background: var(--surface-warm); color: var(--ink); border-radius: var(--radius-md);
  -webkit-mask: radial-gradient(circle var(--notch) at calc(100% - 132px) 0, transparent 98%, #000), radial-gradient(circle var(--notch) at calc(100% - 132px) 100%, transparent 98%, #000);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.ko-ticket__main { display: grid; gap: var(--space-3); padding: var(--space-6); min-width: 0; }
.ko-ticket__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.ko-ticket__head img { height: 28px; width: auto; }
.ko-ticket__event { margin: 0; font-family: var(--font-display); font-size: 26px; line-height: 30px; font-weight: 800; letter-spacing: -0.4px; }
.ko-ticket__type { font-family: var(--font-display); font-size: 18px; line-height: 24px; font-weight: 700; color: var(--brand-text); }
.ko-ticket__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.ko-ticket__grid div { display: grid; gap: var(--space-1); min-width: 0; }
.ko-ticket__label { font-family: var(--font-body); font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-muted); }
.ko-ticket__value, .ko-ticket__code { font-family: var(--font-mono); font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: .5px; }
.ko-ticket__code { color: var(--brand-text); }
.ko-ticket__stub {
  width: 132px; display: grid; place-items: center; align-content: center; gap: var(--space-2); padding: var(--space-4);
  background: var(--karchi-blue); color: var(--on-blue);
  border-left: 2px dashed var(--surface-warm);
}
.ko-ticket__qr { width: 92px; height: 92px; background: #FFFFFF; border-radius: var(--radius-sm); display: grid; place-items: center; }
.ko-ticket__qr span { font-family: var(--font-mono); font-size: 11px; color: #0A1433; }
.ko-ticket__stub .ko-ticket__label { color: var(--on-blue); }
@media (max-width: 460px) {
  .ko-ticket { grid-template-columns: 1fr; -webkit-mask: none; mask: none; }
  .ko-ticket__stub { width: auto; border-left: 0; border-top: 2px dashed var(--surface-warm); grid-auto-flow: column; justify-content: start; }
}
