/* ============================================================
   Želví jídelníček — statický web bez frameworků
   Paleta: přírodní zeleně a hnědé, teplý jantarový akcent
   ============================================================ */

:root {
  --les: #35513A;
  --les-dark: #263D2B;
  --les-soft: #47684E;
  --list: #79A860;
  --list-dark: #587F42;
  --jantar: #D98E3B;
  --jantar-dark: #B87326;
  --pisek: #FAF6EC;
  --pisek-dark: #F1EADA;
  --white: #FFFFFF;
  --ink: #28322A;
  --muted: #67736A;
  --line: #E3E1D2;

  /* statusy rostlin */
  --ok: #3F8E4F;
  --ok-bg: #E7F3E8;
  --ok-line: #BBDCC0;
  --pozor: #A97F14;
  --pozor-bg: #FAF0D6;
  --pozor-line: #E8D49A;
  --stop: #BF4136;
  --stop-bg: #FAE7E4;
  --stop-line: #EBBAB3;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(38, 61, 43, 0.10);
  --shadow-soft: 0 4px 14px rgba(38, 61, 43, 0.07);
  --max: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--pisek);
  line-height: 1.65;
  font-size: 16.5px;
}

h1, h2, h3, h4 {
  font-family: "Sora", "Inter", sans-serif;
  color: var(--les-dark);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--les-soft); }

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

ul { list-style: none; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 72px 0; }

.section-head {
  max-width: 740px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head p { color: var(--muted); margin-top: 12px; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--jantar-dark);
  margin-bottom: 10px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--list);
  color: var(--les-dark);
  box-shadow: 0 6px 18px rgba(121, 168, 96, 0.4);
}
.btn-primary:hover { background: #8AB973; }

.btn-outline {
  border-color: var(--les);
  color: var(--les);
  background: transparent;
}
.btn-outline:hover { background: var(--les); color: var(--white); }

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
  background: transparent;
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.14); }

/* ---------- Header ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}

header.site.scrolled { box-shadow: var(--shadow-soft); }

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo img { height: 42px; width: 42px; }

.logo .wordmark {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 1.18rem;
  color: var(--les-dark);
  line-height: 1.15;
}

.logo .wordmark small {
  display: block;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

nav.main ul {
  display: flex;
  gap: 6px;
  align-items: center;
}

nav.main a {
  text-decoration: none;
  color: var(--les-dark);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 9px 14px;
  border-radius: 999px;
  transition: background 0.15s ease;
}

nav.main a:hover { background: var(--pisek); }
nav.main a.active { background: var(--les); color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--les-dark);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(150deg, var(--les-dark) 0%, var(--les) 55%, var(--les-soft) 100%);
  color: var(--white);
  padding: 84px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -170px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(121, 168, 96, 0.5), rgba(121, 168, 96, 0) 70%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; max-width: 880px; }

.hero h1 { color: var(--white); margin: 8px 0 18px; }

.hero .lead {
  font-size: 1.14rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
}

.hero .eyebrow { color: #C9E3B4; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* výstražný pruh — suchozemské vs. vodní želvy */
.notice {
  margin-top: 30px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-left: 5px solid var(--jantar);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(2px);
}

.notice strong { color: #FFD9A8; }

/* ---------- Legenda statusů ---------- */

.legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto 34px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid;
}

.legend-item .dot { width: 10px; height: 10px; border-radius: 50%; }

.legend-item.ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.legend-item.ok .dot { background: var(--ok); }
.legend-item.pozor { background: var(--pozor-bg); color: var(--pozor); border-color: var(--pozor-line); }
.legend-item.pozor .dot { background: var(--pozor); }
.legend-item.stop { background: var(--stop-bg); color: var(--stop); border-color: var(--stop-line); }
.legend-item.stop .dot { background: var(--stop); }

/* ---------- Vyhledávání a filtry ---------- */

.db-controls {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 22px;
  margin-bottom: 30px;
}

.search-row { position: relative; margin-bottom: 16px; }

.search-row .icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  font-size: 1.05rem;
}

#search {
  width: 100%;
  padding: 14px 44px;
  border: 2px solid var(--line);
  border-radius: 999px;
  font-size: 1.02rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--pisek);
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

#search:focus { border-color: var(--list); background: var(--white); }

.search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: var(--pisek-dark);
  color: var(--muted);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  display: none;
}

.search-clear.visible { display: block; }

.filter-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-group + .filter-group { margin-top: 12px; }

.filter-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-right: 4px;
}

.chip {
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink);
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

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

.chip.active { background: var(--les); border-color: var(--les); color: var(--white); }

.chip.chip-ok.active { background: var(--ok); border-color: var(--ok); }
.chip.chip-pozor.active { background: var(--pozor); border-color: var(--pozor); }
.chip.chip-stop.active { background: var(--stop); border-color: var(--stop); }

.chip .count { opacity: 0.65; font-weight: 500; margin-left: 3px; }

.results-info {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

/* ---------- Karty rostlin ---------- */

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

.plant-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.plant-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.plant-card.st-bezpecne { border-top-color: var(--ok); }
.plant-card.st-s_mirou { border-top-color: var(--pozor); }
.plant-card.st-toxicke { border-top-color: var(--stop); }

.plant-card .card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.plant-card h3 { font-size: 1.06rem; }

.badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid;
  white-space: nowrap;
}

.badge.st-bezpecne { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.badge.st-s_mirou { background: var(--pozor-bg); color: var(--pozor); border-color: var(--pozor-line); }
.badge.st-toxicke { background: var(--stop-bg); color: var(--stop); border-color: var(--stop-line); }

.plant-card .latin {
  font-style: italic;
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}

.plant-card .note { font-size: 0.92rem; margin: 0; color: var(--ink); }

.plant-card .meta {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--muted);
}

.plant-card .meta span {
  background: var(--pisek);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.empty-state .big { font-size: 2.6rem; margin-bottom: 10px; }

/* ---------- Obsahové bloky (mixy, o projektu) ---------- */

.page-hero {
  background: linear-gradient(150deg, var(--les-dark) 0%, var(--les) 70%);
  color: var(--white);
  padding: 60px 0 52px;
}

.page-hero h1 { color: var(--white); margin: 8px 0 12px; }
.page-hero .lead { color: rgba(255, 255, 255, 0.88); max-width: 680px; }
.page-hero .eyebrow { color: #C9E3B4; }

.content-narrow { max-width: 820px; margin: 0 auto; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 28px;
}

.card + .card { margin-top: 22px; }

.card h2 { font-size: 1.4rem; margin-bottom: 12px; }
.card h3 { margin: 18px 0 8px; }

.card ul { list-style: none; padding-left: 0; }
.card ul li {
  padding-left: 26px;
  position: relative;
  margin-bottom: 9px;
}
.card ul li::before {
  content: "🌿";
  position: absolute;
  left: 0;
  font-size: 0.85rem;
  top: 2px;
}
.card ul.plain li::before { content: "•"; color: var(--list-dark); font-size: 1.1rem; top: 0; }

/* poměrový graf jídelníčku */
.ratio-bar {
  display: flex;
  border-radius: 999px;
  overflow: hidden;
  height: 46px;
  margin: 18px 0 10px;
  box-shadow: var(--shadow-soft);
}

.ratio-bar div {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
}

.ratio-bar .r-listy { background: var(--les-soft); flex: 75; }
.ratio-bar .r-zelenina { background: var(--list-dark); flex: 18; }
.ratio-bar .r-ovoce { background: var(--jantar); flex: 7; }

.ratio-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.9rem; color: var(--muted); }
.ratio-legend .sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* sezónní karty */
.season-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.season-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.season-card .emoji { font-size: 1.8rem; margin-bottom: 8px; }
.season-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.season-card p { font-size: 0.92rem; color: var(--muted); }

/* výstražné / informační boxy */
.callout {
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 20px 0;
  border: 1px solid;
  font-size: 0.96rem;
}

.callout.warn { background: var(--pozor-bg); border-color: var(--pozor-line); color: #6E5510; }
.callout.danger { background: var(--stop-bg); border-color: var(--stop-line); color: #7E2B23; }
.callout.info { background: var(--ok-bg); border-color: var(--ok-line); color: #2A5E35; }

.callout strong { display: block; margin-bottom: 4px; }

.disclaimer-box {
  background: var(--stop-bg);
  border: 2px solid var(--stop);
  border-radius: var(--radius);
  padding: 28px;
  margin: 26px 0;
}

.disclaimer-box h2 { color: var(--stop); margin-bottom: 12px; }
.disclaimer-box p, .disclaimer-box li { color: #5E241D; }

/* ---------- Sestavovač mixu ---------- */

.mixer {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
  align-items: start;
}

.mixer-picker, .mixer-summary {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 22px;
}

.mixer-summary { position: sticky; top: 92px; }

.mixer-picker input[type="search"] {
  width: 100%;
  padding: 11px 16px;
  border: 2px solid var(--line);
  border-radius: 999px;
  font-size: 0.98rem;
  font-family: inherit;
  background: var(--pisek);
  outline: none;
  margin-bottom: 14px;
}

.mixer-picker input[type="search"]:focus { border-color: var(--list); background: var(--white); }

.mixer-list {
  max-height: 480px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.mixer-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  font-size: 0.93rem;
  transition: background 0.1s ease;
}

.mixer-item:last-child { border-bottom: none; }
.mixer-item:hover { background: var(--pisek); }

.mixer-item input { accent-color: var(--les); width: 16px; height: 16px; flex-shrink: 0; }

.mixer-item .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.mixer-item .dot.st-bezpecne { background: var(--ok); }
.mixer-item .dot.st-s_mirou { background: var(--pozor); }
.mixer-item .dot.st-toxicke { background: var(--stop); }

.mixer-item .latin { color: var(--muted); font-style: italic; font-size: 0.82rem; }

.mix-stat { display: flex; justify-content: space-between; font-size: 0.95rem; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.mix-stat:last-of-type { border-bottom: none; }
.mix-stat b.ok { color: var(--ok); }
.mix-stat b.pozor { color: var(--pozor); }
.mix-stat b.stop { color: var(--stop); }

.mix-bar {
  display: flex;
  height: 22px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--pisek-dark);
  margin: 14px 0 6px;
}

.mix-bar div { transition: width 0.25s ease; }
.mix-bar .b-listy { background: var(--les-soft); }
.mix-bar .b-zelenina { background: var(--list-dark); }
.mix-bar .b-ovoce { background: var(--jantar); }

.mix-verdicts { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }

.mix-verdicts .callout { margin: 0; padding: 12px 15px; font-size: 0.9rem; }

/* ---------- Patička ---------- */

footer.site {
  background: var(--les-dark);
  color: rgba(255, 255, 255, 0.82);
  padding: 46px 0 30px;
  margin-top: 40px;
  font-size: 0.93rem;
}

footer.site .foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}

footer.site h4 { color: var(--white); font-size: 1rem; margin-bottom: 10px; }
footer.site a { color: #C9E3B4; text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
footer.site li { margin-bottom: 6px; }

footer.site .foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Reveal animace ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Moje želva: formuláře a tracker ---------- */

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.field { display: flex; flex-direction: column; gap: 6px; }

.field label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--les-dark);
}

.field input[type="text"],
.field input[type="date"],
.field input[type="number"],
.field select,
.field textarea {
  padding: 11px 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.96rem;
  background: var(--pisek);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--list);
  background: var(--white);
}

.field .hint { font-size: 0.78rem; color: var(--muted); }

.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.btn-sm { padding: 9px 18px; font-size: 0.86rem; }

.btn-danger-outline {
  border-color: var(--stop);
  color: var(--stop);
  background: transparent;
}
.btn-danger-outline:hover { background: var(--stop-bg); }

/* profil souhrn */
.profile-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.profile-summary .who { display: flex; align-items: center; gap: 16px; }

.profile-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--les) 0%, var(--les-soft) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-soft);
}

.profile-summary h3 { margin-bottom: 3px; }
.profile-summary .species { color: var(--muted); font-size: 0.92rem; }
.profile-summary .acquired { color: var(--muted); font-size: 0.84rem; margin-top: 2px; }

/* statusové pilulky (semafor) */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid;
  white-space: nowrap;
}

.status-pill.ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.status-pill.pozor { background: var(--pozor-bg); color: var(--pozor); border-color: var(--pozor-line); }
.status-pill.stop { background: var(--stop-bg); color: var(--stop); border-color: var(--stop-line); }
.status-pill.never { background: var(--pisek-dark); color: var(--muted); border-color: var(--line); }

/* doplňky */
.supp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.supp-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  background: var(--pisek);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.supp-card .supp-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.supp-card h3 { font-size: 1rem; margin: 0; }
.supp-card .freq { font-size: 0.83rem; color: var(--muted); }
.supp-card .last, .supp-card .next { font-size: 0.88rem; }
.supp-card .last b, .supp-card .next b { color: var(--les-dark); }

/* žárovka */
.bulb-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.bulb-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.bulb-top h3 { margin: 0 0 4px; }
.bulb-meta { color: var(--muted); font-size: 0.88rem; }

.bulb-progress {
  height: 14px;
  border-radius: 999px;
  background: var(--pisek-dark);
  overflow: hidden;
  margin: 16px 0 8px;
}

.bulb-progress > div { height: 100%; transition: width 0.3s ease; }
.bulb-progress.ok > div { background: var(--ok); }
.bulb-progress.pozor > div { background: var(--pozor); }
.bulb-progress.stop > div { background: var(--stop); }

.bulb-countdown { font-size: 0.95rem; }
.bulb-countdown b { font-family: "Sora", sans-serif; }

/* deník krmení */
.log-list { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }

.log-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  background: var(--pisek);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  border-left: 4px solid var(--line);
}

.log-entry.st-bezpecne { border-left-color: var(--ok); }
.log-entry.st-s_mirou { border-left-color: var(--pozor); }
.log-entry.st-toxicke { border-left-color: var(--stop); background: var(--stop-bg); }

.log-entry .info { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.log-entry .plant-name { font-weight: 600; }
.log-entry .date { color: var(--muted); font-size: 0.82rem; white-space: nowrap; }

.log-del {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.log-del:hover { background: var(--pisek-dark); color: var(--stop); }

/* stat dlaždice */
.stat-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 16px 0; }

.stat-tile {
  background: var(--pisek);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 22px;
  text-align: center;
  min-width: 120px;
}

.stat-tile .num {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--les-dark);
  line-height: 1.1;
}

.stat-tile .lbl {
  font-size: 0.74rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 3px;
}

/* prázdný stav / onboarding */
.onboarding { text-align: center; padding: 46px 20px; }
.onboarding .big { font-size: 2.8rem; margin-bottom: 12px; }
.onboarding p { color: var(--muted); max-width: 460px; margin: 0 auto 18px; }

/* mini historie (žárovky) */
.history-mini { font-size: 0.87rem; color: var(--muted); margin-top: 16px; }
.history-mini h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 8px; font-family: "Inter", sans-serif; font-weight: 700; }
.history-mini ul { list-style: none; padding: 0; }
.history-mini li { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.history-mini li:last-child { border-bottom: none; }

/* datalist input má stejný vzhled jako ostatní pole, žádné extra CSS potřeba */

/* ---------- Moje želva: přepínač sekcí (Dnes / Krmení / Péče) ---------- */

.seg-nav {
  display: inline-flex;
  gap: 4px;
  background: var(--pisek-dark);
  border-radius: 999px;
  padding: 5px;
  margin: 28px 0 30px;
  flex-wrap: wrap;
}

.seg-btn {
  border: none;
  background: transparent;
  color: var(--les-dark);
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 0.94rem;
  padding: 11px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.seg-btn:hover { background: rgba(53, 81, 58, 0.08); }
.seg-btn.active { background: var(--les); color: var(--white); box-shadow: var(--shadow-soft); }

.seg-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--jantar);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 800;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: tabFadeIn 0.25s ease; }

@keyframes tabFadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* červená tečka u "Moje želva" v hlavní navigaci */
.nav-alert-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--stop);
  margin-left: 6px;
  vertical-align: middle;
}

/* hvězdička "mám k dispozici" na kartě rostliny */
.star-btn {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  font-family: inherit;
}

.star-btn:hover { border-color: var(--jantar); }
.star-btn.active { background: var(--jantar); border-color: var(--jantar-dark); color: var(--white); }

.card-actions { margin-top: 10px; display: flex; justify-content: flex-end; }

.uw-empty { text-align: center; padding: 30px 20px; color: var(--muted); }
.uw-empty .big { font-size: 2.4rem; margin-bottom: 10px; }

.uw-item-actions { margin-top: 10px; }

.season-chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.season-chip-list span {
  background: var(--pisek);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.86rem;
}

/* klikací návrhové čipy (sezóna / moje suroviny) — vyplní vstup rychlého záznamu */
.chip.chip-suggest {
  background: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip.chip-suggest:hover { background: var(--ok-bg); border-color: var(--ok-line); }

/* ---------- Moje želva: hero profil želvy ---------- */

.turtle-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.turtle-hero .profile-avatar.lg { width: 76px; height: 76px; font-size: 2.2rem; }

.turtle-hero .who { flex: 1; min-width: 200px; }
.turtle-hero h2 { font-size: 1.5rem; margin-bottom: 3px; }
.turtle-hero .species { color: var(--muted); font-size: 0.92rem; }
.turtle-hero .today-line {
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--les-dark);
  font-weight: 600;
}

.edit-link {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-family: inherit;
  padding: 4px;
}
.edit-link:hover { color: var(--les-dark); }

/* banner s aktivními upozorněními (nad segmentovou navigací) */
.warning-banner {
  border: 1px solid var(--pozor-line);
  background: var(--pozor-bg);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-top: 20px;
}
.warning-banner.has-urgent { border-color: var(--stop-line); background: var(--stop-bg); }
.warning-banner h4 { font-size: 0.95rem; margin-bottom: 8px; color: inherit; font-family: "Inter", sans-serif; }
.warning-banner ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.warning-banner li { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.9rem; flex-wrap: wrap; }
.warning-banner li .dot-lvl { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-right: 8px; display: inline-block; }
.warning-banner li.lvl-stop .dot-lvl { background: var(--stop); }
.warning-banner li.lvl-pozor .dot-lvl { background: var(--pozor); }
.warning-banner .jump-btn {
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  opacity: 0.85;
}
.warning-banner .jump-btn:hover { opacity: 1; background: rgba(255,255,255,0.4); }

/* ---------- "Dnes": checklist ---------- */

.checklist { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--pisek);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.checklist-item.done { background: var(--ok-bg); border-color: var(--ok-line); }

.check-circle {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: transparent;
  margin-top: 1px;
}
.checklist-item.done .check-circle { background: var(--ok); border-color: var(--ok); color: var(--white); }

.checklist-item .body { flex: 1; min-width: 0; }
.checklist-item .title { font-weight: 700; color: var(--les-dark); font-size: 0.98rem; }
.checklist-item .sub { font-size: 0.85rem; color: var(--muted); margin-top: 2px; }
.checklist-item .inline-action { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.checklist-item .inline-action input[type="text"] {
  flex: 1;
  min-width: 160px;
  padding: 9px 12px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--white);
}

.celebrate {
  text-align: center;
  padding: 34px 20px;
  background: linear-gradient(150deg, var(--ok-bg), var(--pisek));
  border: 1px solid var(--ok-line);
  border-radius: var(--radius);
}
.celebrate .big { font-size: 2.6rem; margin-bottom: 8px; }
.celebrate p { color: var(--les-dark); font-weight: 600; }

/* ---------- vizuální timeline pruh (posledních/následujících dní) ---------- */

.timeline-strip {
  display: flex;
  gap: 5px;
  margin-top: 18px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.timeline-day {
  flex: 1;
  min-width: 30px;
  max-width: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.timeline-day .bar {
  width: 100%;
  height: 40px;
  border-radius: 8px;
  background: var(--pisek-dark);
  border: 1px solid var(--line);
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.timeline-day.fed .bar { background: var(--ok); border-color: var(--ok); }
.timeline-day.today .bar { box-shadow: 0 0 0 2px var(--jantar); }

.timeline-day .evt {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--white);
}
.timeline-day .evt.ev-doplnek { background: var(--jantar); }
.timeline-day .evt.ev-zarovka { background: var(--stop); top: 14px; }

.timeline-day .lbl { font-size: 0.66rem; color: var(--muted); }
.timeline-day.today .lbl { color: var(--les-dark); font-weight: 800; }

.timeline-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-size: 0.78rem; color: var(--muted); }
.timeline-legend span { display: inline-flex; align-items: center; gap: 6px; }
.timeline-legend .sw-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* ---------- prstencový graf (pestrost, žárovka) ---------- */

.ring-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.ring {
  --pct: 0;
  --ring-color: var(--les);
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: conic-gradient(var(--ring-color) calc(var(--pct) * 1%), var(--pisek-dark) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ring-inner {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px var(--line);
}

.ring-num { font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.15rem; color: var(--les-dark); line-height: 1.1; }
.ring-sub { font-size: 0.62rem; color: var(--muted); text-align: center; }

.ring-text { flex: 1; min-width: 180px; }
.ring-text .headline { font-weight: 700; color: var(--les-dark); margin-bottom: 4px; }
.ring-text p { color: var(--muted); font-size: 0.9rem; margin: 0; }

.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--jantar);
  color: var(--white);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 5px 13px;
  border-radius: 999px;
  margin-top: 8px;
}

/* ---------- potvrzovací zpráva po zápisu krmení ---------- */

.log-toast {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
}
.log-toast.show {
  max-height: 80px;
  opacity: 1;
  margin: 12px 0;
  padding: 12px 16px;
}
.log-toast.ok { background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok-line); }
.log-toast.warn { background: var(--stop-bg); color: var(--stop); border: 1px solid var(--stop-line); }

/* ---------- rozbalovací panel "Moje suroviny" ---------- */

details.accordion {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--pisek);
  overflow: hidden;
}
details.accordion summary {
  cursor: pointer;
  padding: 15px 18px;
  font-weight: 700;
  color: var(--les-dark);
  font-family: "Sora", sans-serif;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
details.accordion summary::-webkit-details-marker { display: none; }
details.accordion summary::after { content: "▾"; color: var(--muted); transition: transform 0.15s ease; }
details.accordion[open] summary::after { transform: rotate(180deg); }
details.accordion .accordion-body { padding: 0 18px 20px; }

/* aside s dnešním doporučením vedle rychlého záznamu */
.feed-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; align-items: start; }
.feed-aside {
  background: var(--pisek);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
}
.feed-aside h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 10px; font-family: "Inter", sans-serif; }
.feed-aside .mini-ratio { display: flex; height: 16px; border-radius: 999px; overflow: hidden; margin-bottom: 10px; }
.feed-aside .mini-ratio .r-listy { background: var(--les-soft); flex: 75; }
.feed-aside .mini-ratio .r-zelenina { background: var(--list-dark); flex: 18; }
.feed-aside .mini-ratio .r-ovoce { background: var(--jantar); flex: 7; }

/* ---------- Responzivita ---------- */

@media (max-width: 920px) {
  .mixer { grid-template-columns: 1fr; }
  .mixer-summary { position: static; }
  footer.site .foot-grid { grid-template-columns: 1fr 1fr; }
  .feed-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  section { padding: 52px 0; }

  .nav-toggle { display: block; }

  nav.main {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }

  nav.main.open { display: block; }

  nav.main ul { flex-direction: column; align-items: stretch; padding: 12px 20px 18px; gap: 4px; }
  nav.main a { display: block; padding: 12px 14px; border-radius: var(--radius-sm); }

  .hero { padding: 60px 0 52px; }

  .ratio-bar { height: 40px; }
  .ratio-bar div { font-size: 0.72rem; }

  footer.site .foot-grid { grid-template-columns: 1fr; gap: 22px; }

  .seg-nav { width: 100%; }
  .seg-btn { flex: 1; justify-content: center; padding: 10px 12px; font-size: 0.86rem; }
  .profile-summary { flex-direction: column; align-items: flex-start; }
  .turtle-hero { flex-direction: column; align-items: flex-start; }
  .turtle-hero .edit-link { align-self: flex-start; }
  .timeline-day { min-width: 26px; }
  .ring-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 460px) {
  .plant-grid { grid-template-columns: 1fr; }
  .db-controls { padding: 16px; }
  .ratio-bar div { font-size: 0; }
  .checklist-item { flex-direction: column; }
  .check-circle { margin-top: 0; }
}
