/* ==========================================================================
   Voluntia – rozcestník (odkazy)
   --------------------------------------------------------------------------
   Tokeny a komponenty jsou převzaté z webu voluntia.cz (Voluntiaweb,
   src/styles/global.css: tlačítka, karty, sociální sítě).
   Při změně tam je potřeba upravit i tady.
   ========================================================================== */

/* ── Písmo (self-host, bez Google Fonts kvůli GDPR) ────────────────────── */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('assets/fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('assets/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Tokeny (z IS / Voluntiaweb) ───────────────────────────────────────── */
:root {
  --yellow: #fed801;
  --white: #ffffff;
  --black: #000000;
  --bg: #121212;
  --field: #2a2a2a;
  --field-hover: #333333;
  --border: #2c2c2c;
  --muted: #a0a0a0;
  --dim: #717171;
  --card: #1c1c1c;
  --card-hover: #232323;

  --gutter: 20px;
  /* Jeden poloměr a jedna mezera pro všechny bloky stránky. */
  --radius: 12px;
  --radius-sm: 4px;
  --gap: 12px;
  --section: 32px;
  --btn-h: 48px;
  --btn-pad: 22px;

  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --dur: 200ms;
}

@media (min-width: 48em) {
  :root {
    --gutter: 24px;
    --section: 40px;
  }
}

/* ── Základ ─────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter Variable', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--yellow);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

[hidden] {
  display: none !important;
}

.ico {
  display: inline-block;
  flex: none;
}

:where(a, button):focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ── Žlutý pás přes celou šířku s logem (.band z IS + značka z DonateCta) ─ */
.band {
  position: relative;
  overflow: hidden;
  padding: 48px 0;
  background: var(--yellow);
  color: var(--black);
}

@media (min-width: 48em) {
  .band {
    padding: 64px 0;
  }
}

.band :focus-visible {
  outline-color: var(--black);
}

.band__inner {
  position: relative;
  display: flex;
  justify-content: center;
}

/* Značka Voluntie v pozadí, jako dekorace v DonateCta. */
.band__mark {
  position: absolute;
  right: -60px;
  bottom: -90px;
  width: 300px;
  height: auto;
  color: var(--black);
  opacity: 0.07;
  transform: rotate(-12deg);
  pointer-events: none;
}

@media (min-width: 48em) {
  .band__mark {
    right: 8%;
    width: 360px;
    bottom: -120px;
  }
}

.band__logo {
  margin: 0;
  line-height: 0;
}

.band__logo a {
  display: block;
}

.band__logo img {
  display: block;
  width: auto;
  height: 60px;
}

/* ── Záložky: segmentový přepínač, aktivní část žlutá (.tab z IS) ──────── */
.tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: var(--gap);
  padding: 4px;
  border-radius: var(--radius);
  background: var(--card);
}

.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px;
  border: 0;
  /* Vnitřní poloměr = vnější minus odsazení, ať rohy lícují s kartou. */
  border-radius: calc(var(--radius) - 4px);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.tab:hover {
  background: var(--field);
  color: var(--white);
}

.tab[aria-selected='true'] {
  background: var(--yellow);
  color: var(--black);
}

.tab__icon {
  flex: none;
}

/* ── Sociální sítě: dlaždice 2×2 (karta z webu) ────────────────────────── */
.socials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  margin-bottom: var(--section);
}

.social {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--card);
  color: var(--white);
  transition: background-color var(--dur) var(--ease), transform 120ms var(--ease);
}

.social:hover {
  background: var(--card-hover);
}

.social:active {
  transform: translateY(1px);
}

.social__icon {
  grid-row: span 2;
  justify-self: center;
  color: var(--yellow);
}

/* Úzký telefon: ikona nad názvem, ať se cenovka („50–200 Kč/měsíc“) vejde na řádek. */
@media (max-width: 25.99em) {
  .social {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 2px;
  }
  .social__icon {
    grid-row: auto;
    justify-self: start;
    margin-bottom: 8px;
  }
}

.social__name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.social__handle {
  font-size: 13px;
  line-height: 1.3;
  color: var(--muted);
  white-space: nowrap;
}

/* ── Odkazy ────────────────────────────────────────────────────────────── */
.page {
  flex: 1 0 auto;
  padding: var(--section) 0 calc(var(--section) * 1.5);
}


.wrap {
  width: 100%;
  max-width: calc(560px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.links {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

/* Řádek odkazu – rámeček karty z webu, název vlevo, šipka vpravo. */
.link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--card);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  transition: background-color var(--dur) var(--ease), transform 120ms var(--ease);
}

.link:hover {
  background: var(--card-hover);
}

.link:active {
  transform: translateY(1px);
}

.link__arrow {
  flex: none;
  color: var(--dim);
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}

.link:hover .link__arrow {
  color: var(--yellow);
  transform: translateX(2px);
}

/* ── 404 ───────────────────────────────────────────────────────────────── */
.notfound__title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.notfound__text {
  margin: 0 0 var(--section);
  color: var(--muted);
  line-height: 1.5;
}

/* ── Patička: členství v IALP vlevo, odkazy vpravo ──────────────────────── */
.footer {
  padding: 16px 0 calc(28px + env(safe-area-inset-bottom));
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  font-size: 13px;
}

.footer a {
  color: var(--dim);
}

.footer a:hover {
  color: var(--yellow);
}

.footer__ialp {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 240px;
  line-height: 1.35;
}

.footer__ialp img {
  display: block;
  width: 44px;
  height: auto;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
