/* ─────────────────────────────────────────────────────────────────────────
   MAX Klub — component layer, ported from Nocturne's styles.css and retuned
   to the MAX tokens. Buttons are OUTLINED, never filled (README §7.4).
   ───────────────────────────────────────────────────────────────────────── */

/* — buttons — */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 14px;
  line-height: 1.2;
  color: var(--color-text);
  background: transparent;
  border: 1px solid transparent;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  border-radius: var(--radius-md);
  transition: background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
}
.btn svg { display: block; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

.btn-primary { color: var(--color-accent-400); border-color: var(--color-accent); }
.btn-primary:hover  { color: var(--color-accent-300);
                      background: color-mix(in srgb, var(--color-accent) 12%, transparent); }
.btn-primary:active { background: color-mix(in srgb, var(--color-accent) 22%, transparent); }

.btn-secondary { border-color: var(--color-divider); color: var(--color-text); }
.btn-secondary:hover  { color: var(--color-text);
                        background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }

.btn-ghost { color: var(--color-accent-400); padding-inline: var(--space-1); }
.btn-ghost:hover  { color: var(--color-accent-300);
                    background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.btn-ghost:active { background: color-mix(in srgb, var(--color-accent) 18%, transparent); }

.btn-block { width: 100%; }
.btn-block + .btn-block { margin-top: var(--space-2); }

/* Tap targets ≥ 44px on touch pointers (README §7.5). Choices count too —
   a 22px radio row is the easiest thing on the page to mis-tap. */
@media (pointer: coarse) {
  .btn { min-height: 44px; }
  .radio,
  .checkbox { min-height: 44px; }
  .radio { padding-right: 6px; }
}

/* — tags — */
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  letter-spacing: .02em;
  padding: 3px 10px;
  border-radius: calc(var(--radius-md) * .75);
  white-space: nowrap;
}
.tag-accent  { background: var(--color-accent-800);  color: var(--color-accent-100); }
.tag-neutral { background: var(--color-neutral-800); color: var(--color-neutral-100); }
.tag-outline { border: 1px solid var(--color-accent); color: var(--color-accent-300); }

/* — cards — */
.elev-sm { box-shadow: var(--shadow-sm); }
.elev-md { box-shadow: var(--shadow-md); }
.elev-lg { box-shadow: var(--shadow-lg); }

.surface {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* The lift. README §6.1: translateY(-4px) + hover shadow over .3s. */
.card-lift { transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.card-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
@media (prefers-reduced-motion: reduce) {
  .card-lift:hover { transform: none; }
}

/* — forms — */
.field > label {
  display: block;
  font-size: 12px;
  margin-bottom: 5px;
  color: var(--text-70);
}
.input {
  width: 100%;
  min-height: 36px;
  padding: 6px 10px;
  font: inherit;
  font-size: 14px;
  color: var(--color-text);
  caret-color: var(--color-accent);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
textarea.input { min-height: 90px; resize: vertical; }

.radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.radio input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.radio .dot {
  width: 16px; height: 16px; flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--color-divider);
}
.radio:hover .dot { border-color: var(--color-accent); }
.radio input:checked + .dot {
  border-color: var(--color-accent);
  background: var(--color-accent);
  box-shadow: inset 0 0 0 4px var(--color-bg);
}
.radio input:focus-visible + .dot { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* — tables. Nocturne paints row rules as row-level strips so the end-fade
     spans the row rather than each cell. — */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table td { padding: var(--space-2); border-bottom: 1px solid transparent; }
.table tbody tr {
  background: linear-gradient(to right,
    transparent, var(--line-08) 48px,
    var(--line-08) calc(100% - 48px), transparent) no-repeat bottom / 100% 1px;
}
.table .table-label { color: var(--text-55); width: 200px; }
@media (max-width: 520px) {
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table .table-label { width: auto; padding-bottom: 0; }
  .table td { padding-block: 2px; }
  .table tbody tr { padding-bottom: var(--space-3); }
}

/* — media — */
/* Nocturne wants content photographs through .lighten. README §9 limits it to
   editorial images — NOT posters or gallery photos, where colour fidelity
   matters. */
.lighten { mix-blend-mode: lighten; background-color: transparent; }

.cover { width: 100%; height: 100%; object-fit: cover; }

.media {
  position: relative;
  overflow: hidden;
  background: var(--color-neutral-900);
}
.media > img { width: 100%; height: 100%; object-fit: cover; }

/* Gallery / Instagram tiles: hover to .82 opacity over .3s. */
.tile { transition: opacity var(--dur) var(--ease); }
.tile:hover { opacity: .82; }

/* ─────────────────────────────────────────────────────────────────────────
   Banner — the full-bleed image head used by event detail and journal posts
   (README §6.3, and §6.5 which asks to reuse this treatment).
   ───────────────────────────────────────────────────────────────────────── */

.banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 520px;
  overflow: hidden;
  background: var(--color-hero-ground);
}
.banner__media { position: absolute; inset: 0; }
.banner__media img { width: 100%; height: 100%; object-fit: cover; }

.banner__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top,
    rgba(15, 17, 28, .97) 0%,
    rgba(15, 17, 28, .5) 60%,
    rgba(15, 17, 28, .3) 100%);
}

.banner__inner {
  position: relative;
  width: 100%;
  padding-bottom: 54px;
}

.banner__back {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-60);
}
.banner__back:hover { color: var(--color-text); }

.banner__date {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 0;
  font-size: 12px;
  letter-spacing: var(--tracking-micro);
  text-transform: uppercase;
  color: var(--color-accent-400);
}
.banner__date .mark { flex: none; }

.banner__title {
  margin-top: 16px;
  font-size: var(--text-h1-hero);
  line-height: .95;
  letter-spacing: var(--tracking-h1);
}


/* No featured image: keep the type block, drop the reserved image height. */
.banner--bare {
  min-height: 0;
  padding-top: 76px;
  background: transparent;
}
.banner--bare .banner__inner { padding-bottom: 0; }

/* ─────────────────────────────────────────────────────────────────────────
   Prose — editor output (the_content). Shared by event detail, journal posts
   and album intros.
   ───────────────────────────────────────────────────────────────────────── */

.prose > p { margin: 0 0 20px; font-size: 16px; line-height: 1.7; color: var(--text-62); }
.prose > p:first-child { font-size: var(--text-lead); color: var(--text-82); }
.prose > h2,
.prose > h3 { margin: 40px 0 14px; font-size: 24px; }
.prose a { text-decoration: underline; }


.prose > ul,
.prose > ol { margin: 0 0 20px; padding-left: 22px; font-size: 16px; line-height: 1.7; color: var(--text-62); }
.prose > blockquote {
  margin: 28px 0;
  padding-left: 22px;
  border-left: 1px solid var(--color-accent);
  font-size: var(--text-lead);
  line-height: 1.5;
  color: var(--text-82);
}
.prose img { border-radius: var(--radius-tile); }
.prose figcaption { margin-top: 10px; font-size: 13px; color: var(--text-55); }

/* ─────────────────────────────────────────────────────────────────────────
   Tile grids — gallery mosaics and the Instagram strip.
   ───────────────────────────────────────────────────────────────────────── */

.tile-grid { display: grid; list-style: none; margin: 0; padding: 0; }
.tile-grid__item { position: relative; overflow: hidden; }
.tile-grid .tile { display: block; width: 100%; height: 100%; }
.tile-grid img { width: 100%; height: 100%; object-fit: cover; }

/* Card grid shared by the journal teaser and the journal index. */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

/* ─────────────────────────────────────────────────────────────────────────
   Full-bleed section bands — the testimonials band (§6.1d) and the "Najem
   kluba" band (§6.6), which mirrors it from the other side.
   ───────────────────────────────────────────────────────────────────────── */

.band {
  margin-top: 120px;
  background: var(--color-section);
}
.band--left {
  background-image: radial-gradient(120% 90% at 12% 0%,
    var(--color-section-glow) 0%, var(--color-section) 55%, var(--color-accent-900) 100%);
}
.band--right {
  background-image: radial-gradient(120% 90% at 88% 0%,
    var(--color-section-glow) 0%, var(--color-section) 55%, var(--color-accent-900) 100%);
}
.band__inner { padding-block: 96px; }

/* Two columns that wrap to one, shared by both bands. */
.band__cols {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
}
.band__cols > * { flex: 1 1 320px; min-width: 0; }
.band__title {
  margin-top: 16px;
  font-size: var(--text-h2-sm);
  line-height: 1.08;
  letter-spacing: var(--tracking-h2);
}

/* — checkbox, built to match .radio (Nocturne ships only the radio) — */
.checkbox { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; }
.checkbox input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.checkbox .box {
  position: relative;
  width: 16px; height: 16px; flex: none;
  margin-top: 2px;
  border: 1.5px solid var(--color-divider);
  border-radius: var(--radius-sm);
}
.checkbox:hover .box { border-color: var(--color-accent); }
.checkbox input:checked + .box {
  border-color: var(--color-accent);
  background: var(--color-accent);
}
/* The tick, drawn rather than loaded: two borders of a box, rotated. */
.checkbox input:checked + .box::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid var(--color-bg);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.checkbox input:focus-visible + .box { outline: 2px solid var(--color-accent); outline-offset: 2px; }
