/* ===== Zoukwawa Minimal — Swiss-influenced directory ===== */
/* Filozofia: każdy element ma cel. Hierarchy przez rozmiar typografii, nie kolor. */

:root {
  --bg: #ffffff;
  --fg: #111111;
  --text-2: #3f3f3f;       /* subline / hero secondary text — bardziej obecne niż muted */
  --muted: #666666;
  --border: #e8e8e8;
  --accent: #111111;
  --verified: #16a34a;

  /* 8-pt grid */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 48px;
  --s5: 96px;

  --max: 880px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
  border-radius: 2px;
}

button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

/* ===== Topbar ===== */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--s2) var(--s3);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 17px;
}

.topbar nav {
  display: flex;
  gap: var(--s3);
}

.nav-main {
  margin-left: auto;
  margin-right: var(--s3);
  padding-right: var(--s3);
  border-right: 1px solid var(--border);
}

.nav-lang {
  gap: var(--s2);
}

.nav-link {
  color: var(--muted);
  font-size: 14px;
}

.nav-link[aria-current="page"] {
  color: var(--fg);
  font-weight: 500;
}

.nav-link.nav-muted {
  opacity: 0.6;
}

/* ===== Main ===== */

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--s3);
}

/* ===== Hero ===== */

.hero {
  padding: var(--s5) 0 var(--s4);
}

/* Variant for inner pages (festivals, instructors) — mniej przestrzeni nad heading */
.hero-narrow {
  padding: var(--s4) 0 var(--s3);
}

.hero h1 {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: var(--s1);
}

.subline {
  font-size: 18px;
  color: var(--text-2);
  margin-bottom: var(--s3);
  font-weight: 400;
}

.search-input {
  display: block;
  width: 100%;
  max-width: 480px;
  padding: 10px 14px;
  font: inherit;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--fg);
  margin-bottom: var(--s2);
  transition: border-color 120ms ease;
  /* Strip default search styling */
  -webkit-appearance: none;
  appearance: none;
}

.search-input::placeholder {
  color: var(--muted);
}

.search-input:focus {
  outline: none;
  border-color: var(--fg);
}

.search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  height: 14px;
  width: 14px;
  background-image: linear-gradient(45deg, transparent 45%, var(--muted) 45%, var(--muted) 55%, transparent 55%),
                    linear-gradient(-45deg, transparent 45%, var(--muted) 45%, var(--muted) 55%, transparent 55%);
  cursor: pointer;
}

.time-filter,
.level-filter {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.level-filter {
  margin-top: 8px;
}

.chip {
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  transition: all 120ms ease;
}

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

.chip[aria-pressed="true"] {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

/* ===== Block (section) ===== */

.block {
  padding: var(--s4) 0;
  border-top: 1px solid var(--border);
}

/* ===== Day group (sekcje per dzień w grafiku zajęć) ===== */

.day-group + .day-group {
  margin-top: var(--s4);
}

.day-heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg);
  margin-bottom: var(--s2);
  padding-bottom: var(--s1);
}

/* ===== Card ===== */

.card {
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--border);
}

.card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.card-meta {
  display: flex;
  gap: var(--s2);
  align-items: center;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.card-meta time {
  font-weight: 500;
  color: var(--fg);
}

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

.card-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 4px;
}

.card-title a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.card-place,
.card-people {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 2px;
}

/* Linkowane place line (cała linia szkoła+adres → Google Maps) */
.card-place a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  transition: text-decoration-color 120ms ease;
}

.card-place a:hover {
  text-decoration-color: var(--fg);
}

.card-people {
  font-style: normal;
}

/* Instruktor — wzmocnienie kontrastu (główny entry-point dla użytkownika) */
.card-instructor {
  color: var(--fg);
  font-weight: 500;
}

/* Link do profilu instruktora — subtelne underline */
.instructor-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  transition: text-decoration-color 120ms ease;
}

.instructor-link:hover {
  text-decoration-color: var(--fg);
}

.link-muted {
  color: var(--muted);
  font-size: 14px;
}

/* ===== Social icons (instructors) ===== */

.icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 120ms ease;
}

.social-link:hover {
  color: var(--fg);
  text-decoration: none;
}

.card-socials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

/* ===== Empty state (inline pod sekcją gdy filter = 0 wyników) ===== */

.empty-state {
  padding: var(--s2) 0 var(--s3);
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.link-text {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 4px;
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: text-decoration-color 120ms ease;
}

.link-text:hover {
  text-decoration-color: var(--fg);
}

/* ===== Footer ===== */

.footer {
  max-width: var(--max);
  margin: var(--s4) auto 0;
  padding: var(--s4) var(--s3);
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-cta {
  font-size: 15px;
  margin-bottom: var(--s2);
}

.footer-cta a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ===== Mobile ===== */

@media (max-width: 640px) {
  .hero {
    padding: var(--s4) 0 var(--s3);
  }
  .hero h1 {
    font-size: 28px;
  }
  .subline {
    font-size: 16px;
  }
  .card-title {
    font-size: 19px;
  }
  .topbar {
    padding: var(--s2);
    gap: var(--s2);
  }
  /* Mobile nav: kompaktuj, ukryj placeholder PL/EN (EN nie istnieje), zdejmij separator */
  .logo {
    font-size: 16px;
  }
  .nav-main {
    gap: var(--s2);
    margin-right: 0;
    padding-right: 0;
    border-right: none;
  }
  .nav-link {
    font-size: 13px;
  }
  .nav-lang {
    display: none;
  }
  main {
    padding: 0 var(--s2);
  }
  .footer {
    padding: var(--s3) var(--s2);
  }
}

/* ===== Accessibility helper ===== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
