/* Filipíny – společný vzhled. Mobil 360–430 px na prvním místě. */

:root {
  color-scheme: light;
  --bg: #eef8fa;
  --surface: #ffffff;
  --surface-2: #f4f7f8;
  --ink: #191919;
  --ink-2: #5f6b6e;
  --line: #e3e9eb;
  --axis: #c2c8ca;
  --brand: #0a7f93;
  --brand-2: #0a6477;
  --brand-soft: #dff3f6;
  --sun: #ffc93c;
  --coral: #ff6b4a;
  --ok: #0aac23;
  --warn: #fbb315;
  --bad: #dc3c3d;
  --ok-text: #006c10;
  --bad-text: #b3261e;
  /* barvy řad v grafech (ověřená paleta, pořadí se nemění) */
  --s1: #257de0;
  --s2: #f47230;
  --s3: #00b894;
  --s4: #f2a600;
  --s1-soft: #cce3fd;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(10, 60, 70, .06), 0 6px 20px rgba(10, 60, 70, .07);
  --tabs-h: 62px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0b0b0b;
    --surface: #191919;
    --surface-2: #232323;
    --ink: #efefef;
    --ink-2: #9c9c9c;
    --line: #303030;
    --axis: #474747;
    --brand: #0a7f93;
    --brand-2: #0a6477;
    --brand-soft: #12333a;
    --ok-text: #53c556;
    --bad-text: #f08a84;
    --s1: #338ced;
    --s2: #e76624;
    --s3: #00a888;
    --s4: #d28e05;
    --s1-soft: #0e3d7e;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0px) + 16px);
  overflow-wrap: anywhere;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; text-wrap: balance; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.02rem; }
p { margin: 0 0 .75rem; }
a { color: var(--brand); }
.nowrap { white-space: nowrap; }

.top {
  position: sticky; top: 0; z-index: 1000;
  display: flex; align-items: center; gap: .75rem;
  padding: .6rem 1rem; padding-top: calc(.6rem + env(safe-area-inset-top, 0px));
  color: #fff;
  background: linear-gradient(135deg, #0b8499, #0a6477);
}
.brand { color: #fff; font-weight: 800; font-size: 1.1rem; text-decoration: none; letter-spacing: .2px; }
.top-count { font-size: .82rem; background: rgba(255, 255, 255, .18); padding: .15rem .6rem; border-radius: 99px; white-space: nowrap; }
.top-user { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.linkbtn { background: none; border: 0; color: #fff; font: inherit; font-size: .85rem; text-decoration: underline; padding: .4rem .2rem; cursor: pointer; }

.wrap { max-width: 760px; margin: 0 auto; padding: 1rem .9rem; }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.05rem;
  margin: 0 0 1rem;
}
.card > :last-child { margin-bottom: 0; }

.hero {
  border-radius: 24px; padding: 1.3rem 1.2rem; margin-bottom: 1rem; color: #fff;
  background:
    radial-gradient(120px 120px at 88% 18%, rgba(255, 201, 60, .95), rgba(255, 201, 60, 0) 70%),
    linear-gradient(160deg, #0b8499 0%, #0a6477 100%);
}
.hero h1 { font-size: 1.75rem; margin-bottom: .25rem; }
.hero-kicker { margin: 0 0 .2rem; font-weight: 600; opacity: .95; }
.hero-sub { margin: 0; opacity: .95; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 44px; padding: .55rem 1rem; border-radius: 14px; border: 0;
  background: var(--brand); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--brand-2); }
.btn-big { width: 100%; min-height: 50px; font-size: 1.05rem; }
.btn-ghost { background: var(--brand-soft); color: var(--ink); }
.btn-ghost:hover { background: var(--line); }
.btn[disabled] { opacity: .55; cursor: default; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

.alert { background: #fde8e6; color: #7a1c15; border-radius: 12px; padding: .6rem .8rem; }
@media (prefers-color-scheme: dark) { .alert { background: #4a1f1b; color: #ffd9d4; } }

.avatar {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--s1); color: #fff; font-weight: 800; font-size: .85rem; flex: none;
  box-shadow: 0 0 0 2px var(--surface);
}
.avatar[data-barva="oranzova"] { background: var(--s2); }
.avatar[data-barva="aqua"] { background: var(--s3); }
.top .avatar { box-shadow: 0 0 0 2px rgba(255, 255, 255, .6); }

.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  display: flex; justify-content: space-around;
  background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tabs a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: var(--tabs-h); color: var(--ink-2); text-decoration: none; font-size: .75rem; font-weight: 600;
}
.tabs a span { font-size: 1.35rem; line-height: 1; }
.tabs a.on { color: var(--brand); }
@media (prefers-color-scheme: dark) { .tabs a.on { color: #5cc9da; } }

.soon { list-style: none; margin: 0; padding: 0; color: var(--ink-2); }
.soon li { padding: .3rem 0; }
.soon span { display: inline-block; width: 1.7rem; }

/* Přihlášení */
.page-login { padding-bottom: 0; }
.login { max-width: 360px; margin: 6vh auto 0; text-align: center; }
.login-art { font-size: 4rem; line-height: 1; }
.login-sub { color: var(--ink-2); }
.form { display: grid; gap: .8rem; text-align: left; margin-top: 1rem; }
.form label { display: grid; gap: .25rem; font-weight: 600; font-size: .92rem; }
input, textarea, select {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--axis); border-radius: 12px; padding: .65rem .75rem; min-height: 46px; width: 100%;
}
textarea { min-height: 76px; resize: vertical; }
