/* Vzhled webu = paleta appky (Theme.kt): černé pozadí, žlutý akcent, světlý text. */
:root {
  --bg: #000000;
  --surface: #141414;
  --accent: #f5c518;
  --text: #e0e0e0;
  --muted: #757575;
  --line: #262626;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--accent); }

.top {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 2px solid var(--accent);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 5;
}

.brand {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.menu { display: flex; flex-wrap: wrap; gap: 18px; }
.menu a { text-decoration: none; }
.menu a:hover { text-decoration: underline; }

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
}

/* obsah stránky vlevo; na úzkém displeji se složí nad text */
.toc {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-self: start;
  position: sticky;
  top: 96px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 14px;
  max-height: calc(100vh - 130px);
  overflow: auto;
}

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

article { min-width: 0; }
main > article:only-child { grid-column: 1 / -1; }

h1 { font-size: 40px; line-height: 1.15; margin: 0 0 24px; color: var(--accent); }
h2 { font-size: 27px; margin: 44px 0 14px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
h3 { font-size: 20px; margin: 28px 0 10px; }

p { margin: 0 0 16px; }
ul, ol { margin: 0 0 18px; padding-left: 24px; }
li { margin-bottom: 8px; }

hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

code {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 14px;
}

pre {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  overflow-x: auto;
}

pre code { border: 0; padding: 0; background: none; }

blockquote {
  margin: 0 0 18px;
  padding: 10px 18px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  color: var(--text);
}

/* široké tabulky se scrollují uvnitř, stránka se nikdy nerozjede do šířky */
table {
  display: block;
  overflow-x: auto;
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
}

th, td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
th { background: var(--surface); color: var(--accent); }

img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  margin: 8px 0 20px;
}

/* obrázky návodu jsou snímky obrazovky telefonu — na plnou šířku působí obludně */
article img { max-width: 320px; display: block; }

footer {
  border-top: 1px solid var(--line);
  padding: 24px;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
}

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

.cta {
  display: inline-block;
  margin: 4px 12px 20px 0;
  padding: 12px 22px;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
}

@media (max-width: 900px) {
  main { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; max-height: none; }
  h1 { font-size: 32px; }
}

/* ---- žádost o testovací verzi + WhatsApp (pokyn 2. 8.) ---- */
.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 2px solid var(--accent);
  border-radius: 24px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.chip:hover { background: var(--accent); color: #000; }
a.chip { text-decoration: none; }
.chip-ic { display: inline-flex; width: 22px; height: 22px; color: var(--accent); }
.chip:hover .chip-ic { color: #000; }
.chip-ic svg { width: 100%; height: 100%; }

.wa-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .5);
}
.wa-fab svg { width: 32px; height: 32px; }
.wa-fab:hover { filter: brightness(1.1); }

/* modální okno = div (pokyn 24. 8.: černé okno, žlutý rám; <dialog> se na
   některých stránkách kreslil bez stylu). Jeden vzhled pro VŠECHNA okna webu. */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, .7);
}
.modal-backdrop[hidden] { display: none; }
.modal {
  background: var(--bg);
  color: var(--text);
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 24px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .6);
}
.modal h3 { margin: 0 0 4px; color: var(--accent); }
.modal label, .ref-card label { display: block; margin: 12px 0 0; font-weight: 600; }
.modal input, .ref-card input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.modal input:focus, .ref-card input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.beta-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
.beta-actions button {
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: var(--accent);
  color: #000;
}
.beta-actions button.ghost { background: transparent; color: var(--muted); }
.small { font-size: 13px; }

/* galerie screenshotů appky na landing page */
.shots {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
}
.shots img {
  /* náhledy jako ikonky — nikdy víc než 128×128 (pokyn 4. 8.) */
  max-width: 128px;
  max-height: 128px;
  width: auto;
  height: auto;
  border: 2px solid var(--line);
  border-radius: 12px;
  display: block;
}

/* partnerský program (referral.html) — stejný vzhled jako modální okno */
.ref-card { border: 2px solid var(--accent); border-radius: 16px; padding: 24px; margin: 16px 0; background: var(--bg); }
.ref-card h3 { margin: 0 0 4px; color: var(--accent); }
.ref-card code { color: var(--accent); font-size: 18px; font-weight: 700; }
.ref-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.ref-table th, .ref-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.ref-table th { background: transparent; color: var(--accent); }
.ref-table tfoot th { border-top: 2px solid var(--accent); }
.ref-banner { background: var(--accent); color: #000; padding: 10px 16px; text-align: center; font-weight: 600; }
