/* Events — "večerní program" theme
   Ink #211A3E on cool lavender paper #F4F3FA, marquee accent #E8442E,
   ticket-stub yellow #FFD84D. Display: Unbounded · Body: Schibsted Grotesk · Stubs: IBM Plex Mono */

:root {
  --ink: #211a3e;
  --ink-soft: #3a3357;
  --muted: #6e6a85;
  --paper: #f4f3fa;
  --card: #ffffff;
  --line: #dcd9ea;
  --accent: #e8442e;
  --accent-ink: #c7351f;
  --stub: #fbedc3; /* softened from saturated #FFD84D — stubs should whisper, not shout */
  --media-bg: #e9e7f2;
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Schibsted Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(33, 26, 62, 0.04), 0 4px 16px -10px rgba(33, 26, 62, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.shell { max-width: 1900px; margin: 0 auto; padding: 0 clamp(20px, 3vw, 48px); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.header-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.wordmark {
  font-family: var(--display);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}

.wordmark-mark { color: var(--accent); }
.wordmark-sm { font-size: 18px; }

.tagline {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.header-nav { margin-left: auto; }

.lang-switch {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  background: var(--card);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.lang-switch:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- hero ---------- */

.hero { padding: 56px 0 8px; }

.hero-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  text-wrap: balance;
}

.hero-accent {
  color: var(--accent);
  position: relative;
  white-space: nowrap;
}

.hero-sub {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 26px;
  max-width: 56ch;
}

.searchbar {
  display: flex;
  gap: 0;
  max-width: 620px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--card);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.searchbar input[type="search"] {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 14px 22px;
  font: inherit;
  color: var(--ink);
  min-width: 0;
}

.searchbar input[type="search"]:focus { outline: none; }

.searchbar button {
  border: 0;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 14px;
  padding: 0 26px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.searchbar button:hover { background: var(--accent); }

/* ---------- filters ---------- */

.filters { padding: 26px 0 6px; }

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
}

.filter-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  min-width: 78px;
}

.chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.chip small { font-family: var(--mono); font-size: 11px; color: var(--muted); }

.chip:hover { border-color: var(--ink); }

.chip-on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.chip-on small { color: var(--stub); }

/* ---------- ticket cards ---------- */

.listing { padding: 26px 0 70px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.ticket {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ticket:hover {
  transform: translateY(-2px);
  border-color: #c9c5de;
  box-shadow: 0 2px 4px rgba(33, 26, 62, 0.05), 0 12px 26px -14px rgba(33, 26, 62, 0.2);
}

.ticket-media {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--media-bg);
  position: relative;
  overflow: hidden;
}

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

.ticket-ph {
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 100%;
  padding: 14px 16px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
}

/* category-tinted placeholders */
.cat-koncerty  { background: linear-gradient(145deg, #2c2350, #563a8e); }
.cat-divadlo   { background: linear-gradient(145deg, #43213a, #8e3a5e); }
.cat-vystavy   { background: linear-gradient(145deg, #1f3a3d, #3a8e7d); }
.cat-festivaly { background: linear-gradient(145deg, #45301c, #c77b2e); }
.cat-film      { background: linear-gradient(145deg, #22283e, #3a4f8e); }
.cat-pro-deti  { background: linear-gradient(145deg, #3d3a1f, #b3a12e); }
.cat-gastro    { background: linear-gradient(145deg, #3d2a1f, #a85b3a); }
.cat-prednasky { background: linear-gradient(145deg, #26333a, #4a7ba0); }
.cat-sport     { background: linear-gradient(145deg, #1f3d29, #3a8e54); }
.cat-ostatni   { background: linear-gradient(145deg, #2f2f38, #5d5d70); }

.ticket-flag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--stub);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}

/* stub + perforation — the signature element */

.ticket-body {
  display: flex;
  flex: 1;
  position: relative;
}

.ticket-stub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 74px;
  flex-shrink: 0;
  padding: 14px 6px;
  background: var(--stub);
  color: var(--ink);
  position: relative;
}

/* perforated edge between stub and content */
.ticket-stub::after {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  right: -1px;
  border-right: 2px dashed rgba(33, 26, 62, 0.18);
}

/* punched notches */
.ticket-body::before,
.ticket-body::after {
  content: "";
  position: absolute;
  left: 74px;
  transform: translateX(-50%);
  width: 14px;
  height: 7px;
  background: var(--paper);
  z-index: 1;
}

.ticket-body::before { top: 0; border-radius: 0 0 7px 7px; box-shadow: inset 0 -1px 2px rgba(33,26,62,0.08); }
.ticket-body::after { bottom: 0; border-radius: 7px 7px 0 0; box-shadow: inset 0 1px 2px rgba(33,26,62,0.08); }

.stub-day {
  font-family: var(--display);
  font-weight: 900;
  font-size: 26px;
  line-height: 1;
}

.stub-month {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.stub-dow {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(33, 26, 62, 0.65);
}

.ticket-info {
  padding: 14px 16px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ticket-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ticket-title a { text-decoration: none; }
.ticket-title a:hover { color: var(--accent); }

/* whole-card click affordance */
.ticket-title a::before { content: ""; position: absolute; inset: 0; }
.ticket { position: relative; }
.ticket-media, .ticket-cat { position: relative; z-index: 1; }

.ticket-venue {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dot { margin: 0 4px; color: var(--line); }

.ticket-meta {
  margin: auto 0 0;
  padding-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.ticket-cat {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 9px;
}

.ticket-price { color: var(--muted); font-weight: 500; }

/* ---------- empty state ---------- */

.empty {
  text-align: center;
  padding: 70px 20px;
}

.empty h2 { font-family: var(--display); font-weight: 700; font-size: 22px; margin: 0 0 8px; }
.empty p { color: var(--muted); margin: 0 0 18px; }

/* ---------- detail ---------- */

.detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  max-width: 1440px; /* detail reads better narrower than the listing shell */
  padding-top: 34px;
  padding-bottom: 50px;
}

.breadcrumb {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 14px;
}

.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

.detail-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  text-wrap: balance;
}

.status-banner {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  padding: 10px 16px;
  margin: 0 0 18px;
}

.status-warn { background: var(--stub); color: var(--ink); }

.detail-media {
  margin: 0 0 22px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.detail-desc { max-width: 68ch; color: var(--ink-soft); }
.detail-desc p { margin: 0 0 1em; }

/* side ticket — big stub */

.detail-side { position: relative; }

.side-ticket {
  position: sticky;
  top: 20px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.side-stub {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--stub);
  padding: 18px 20px;
  position: relative;
}

.side-stub::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -1px;
  border-bottom: 2px dashed rgba(33, 26, 62, 0.18);
}

.side-stub .stub-day { font-size: 44px; }

.side-stub-rest { display: flex; flex-direction: column; gap: 2px; }

.side-stub .stub-month { font-size: 13px; }
.side-stub .stub-dow { font-size: 13px; }

.side-facts {
  margin: 0;
  padding: 18px 20px 8px;
  display: grid;
  grid-template-columns: 88px 1fr;
  row-gap: 12px;
}

.side-facts dt {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding-top: 2px;
}

.side-facts dd { margin: 0; font-size: 14.5px; }

.btn-tickets {
  display: block;
  margin: 14px 20px 20px;
  text-align: center;
  background: var(--accent);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 20px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-tickets:hover { background: var(--accent-ink); transform: translateY(-1px); }

.btn-secondary { background: var(--ink); }
.btn-secondary:hover { background: var(--ink-soft); }

.related { padding: 10px 0 70px; }

.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 18px;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--card);
  padding: 34px 0;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-about {
  color: var(--muted);
  font-size: 13.5px;
  max-width: 52ch;
  margin: 8px 0 0;
}

.footer-meta {
  display: flex;
  gap: 18px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

.footer-meta a { color: var(--muted); }
.footer-meta a:hover { color: var(--accent); }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .detail-shell { grid-template-columns: 1fr; gap: 26px; }
  .side-ticket { position: static; }
}

@media (max-width: 640px) {
  .hero { padding-top: 36px; }
  .tagline { display: none; }
  .filter-label { min-width: 100%; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
}
