/* ═══════════════════════════════════════════════════════════════
   shared.css  –  Sdílené styly pro všechny stránky Ověřený domov
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset & base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:        #1D9E75;
  --green-light:  #E1F5EE;
  --green-dark:   #0F6E56;
  --green-deep:   #085041;
  --amber:        #BA7517;
  --amber-light:  #FAEEDA;
  --red:          #A32D2D;
  --red-light:    #FCEBEB;
  --blue:         #1A5EA8;
  --blue-light:   #E0EDFA;
  --gray-50:      #F7F6F2;
  --gray-100:     #EEECE6;
  --gray-200:     #D3D1C7;
  --gray-400:     #888780;
  --text:         #1E1E1C;
  --text-muted:   #52514E;
  --text-hint:    #9B9A96;
  --border:       rgba(44,44,42,0.12);
  --border-hover: rgba(44,44,42,0.25);
  --radius:       12px;
  --radius-sm:    8px;
  --radius-pill:  999px;
  --font-display: 'Lora', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --shadow:       0 2px 12px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.05);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06);
  --nav-h:        58px;
}

html {
  font-size: 17px;
  overflow-x: hidden;
}
body {
  font-family: var(--font-body);
  background: var(--gray-50);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Navigace ────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(247,246,242,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 clamp(16px, 4vw, 40px);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo-img {
  height: 34px;
  width: auto;
  display: block;
}

/* Pravá část navu – search + links */
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  justify-content: flex-end;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}
.nav-links a {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .15s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); }

/* ── Nav search (detail stránka) ─────────────────────────────── */
.nav-search-wrap { position: relative; }
.nav-search {
  display: flex;
  background: #fff;
  border: 1.5px solid var(--border-hover);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.nav-search input {
  border: none; outline: none;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 8px 12px;
  width: 220px;
  background: transparent;
  color: var(--text);
}
.nav-search input::placeholder { color: var(--text-hint); }
.nav-search button {
  background: var(--green); border: none; color: #fff;
  padding: 8px 14px; cursor: pointer;
  font-size: 0.9rem; font-weight: 500;
  font-family: var(--font-body);
  white-space: nowrap;
  transition: background .15s;
}
.nav-search button:hover { background: var(--green-dark); }

.ac-drop {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 300;
  display: none;
  overflow: hidden;
  min-width: 280px;
}
.ac-drop .ac-item {
  display: flex; flex-direction: column;
  padding: 9px 14px; cursor: pointer;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.ac-drop .ac-item:last-child { border-bottom: none; }
.ac-drop .ac-item:hover { background: var(--gray-50); }
.ac-drop .ac-name { font-weight: 500; }
.ac-drop .ac-meta { font-size: 0.8rem; color: var(--text-muted); }

/* ── Hamburger ───────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .22s, opacity .22s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobil – hamburger menu ──────────────────────────────────── */
@media (max-width: 767px) {
  .nav-hamburger { display: flex; }

  .nav-right {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(247,246,242,0.98);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    box-shadow: var(--shadow-lg);
  }
  .nav-right.open { display: flex; }

  .nav-links { flex-direction: column; align-items: flex-start; gap: 12px; }
  .nav-links a { font-size: 1.1rem; }

  .nav-search { width: 100%; }
  .nav-search input { width: 100%; flex: 1; }
}

/* ── Patička ─────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px clamp(16px, 4vw, 32px) 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-hint);
  /*margin-top: clamp(32px, 4vw, 40px);*/
  margin-top: 32px;
  margin-left: auto;
  margin-right: auto;
  max-width: 1100px;
}
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-share-btn {
  display: inline-flex; align-items: center;
  background: none; border: none; cursor: pointer;
  color: var(--text-hint); padding: 0; margin-left: 1px;
  vertical-align: middle; line-height: 1;
  transition: color .15s;
}

/* ── Cookie banner ───────────────────────────────────────────── */
.cookie-banner {
  display: none; /* JS sets to flex */
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 0 clamp(16px, 4vw, 40px);
  height: 52px;
  z-index: 500;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  box-shadow: 0 -3px 12px rgba(0,0,0,0.06);
}
.cookie-banner > span { min-width: 0; }
.cookie-banner a { color: var(--green); text-decoration: none; }
.cookie-banner a:hover { text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.cookie-accept {
  background: var(--green); color: #fff; border: none;
  padding: 7px 18px; border-radius: var(--radius-pill);
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 500;
  cursor: pointer; white-space: nowrap; line-height: 1.2;
  transition: background .15s;
}
.cookie-accept:hover { background: var(--green-dark); }
.cookie-decline {
  background: none; border: none; color: var(--text-hint);
  padding: 7px 6px; font-family: var(--font-body); font-size: 0.82rem;
  cursor: pointer; white-space: nowrap; line-height: 1.2;
  transition: color .15s;
}
.cookie-decline:hover { color: var(--text-muted); }
@media (max-width: 600px) {
  .cookie-banner { height: auto; padding: 10px clamp(16px, 4vw, 40px); flex-wrap: wrap; }
}

/* ── Sdílené komponenty ──────────────────────────────────────── */
.status-badge {
  font-size: 0.8rem; font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  display: inline-block;
}
.status-ok   { background: var(--green-light); color: var(--green-dark); }
.status-blue { background: var(--blue-light);  color: var(--blue); }
.status-warn { background: var(--amber-light); color: var(--amber); }
.status-bad  { background: var(--red-light);   color: var(--red); }

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.8rem; color: var(--text-muted);
  background: var(--gray-50);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}
.pill-ok   { color: var(--green); }
.pill-warn { color: var(--amber); }
.pill-bad  { color: var(--red); }

/* Informační ikona „i" v plném modrém kruhu — modrý (informační) verdikt.
   Rozměr se dědí z kontextu; kruh je 1.8× vlastní font-size. */
.icon-info {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.8em; height: 1.8em;
  border-radius: 50%;
  background: var(--blue); color: #fff;
  font-family: var(--font-body);
  font-weight: 700; font-style: normal;
  line-height: 1; flex-shrink: 0;
}
.icon-info::before { content: 'i'; }

/* ── Zpět nahoru (dlouhé stránky) ─────────────────────────────── */
.to-top {
  position: fixed; right: 18px; bottom: 18px;
  width: 42px; height: 42px; border-radius: 50%;
  background: #fff; border: 1px solid var(--border-hover);
  box-shadow: var(--shadow-lg);
  color: var(--text-muted);
  font-family: var(--font-body); font-size: 1.15rem; line-height: 1;
  cursor: pointer; z-index: 250;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .2s, visibility .2s, color .15s, border-color .15s, bottom .2s;
}
.to-top.visible { opacity: 1; visibility: visible; }
.to-top:hover { color: var(--green); border-color: var(--green); }
/* Ustoupit liště cookies, dokud uživatel nerozhodne */
body.cookie-open .to-top { bottom: 66px; }
@media (max-width: 600px) { body.cookie-open .to-top { bottom: 96px; } }

.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid var(--border-hover);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; }
}

/* ── Affiliate / partnerské karty ────────────────────────────── */
.affil-eyebrow {
  font-size: 0.55rem; text-transform: uppercase; letter-spacing: 0.9px;
  color: var(--text-hint); margin-bottom: 8px;
}

/* Horizontální karta (homepage strip) */
.affil-card-h {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 16px;
  text-decoration: none; color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.affil-card-h:hover {
  border-color: var(--green);
  box-shadow: 0 1px 8px rgba(29,158,117,.09);
}
.affil-card-icon { font-size: 1.6rem; flex-shrink: 0; line-height: 1; }
.affil-card-body { flex: 1; min-width: 180px; }
.affil-card-body strong { display: block; font-size: 0.9rem; color: var(--text); margin-bottom: 2px; font-weight: 500; }
.affil-card-body span  { font-size: 0.8rem; color: var(--text-muted); }
.affil-card-cta { font-size: 0.8rem; color: var(--green); white-space: nowrap; flex-shrink: 0; font-weight: 500; }
@media (max-width: 500px) {
  .affil-card-h { align-items: flex-start; }
  .affil-card-cta { width: 100%; padding-top: 8px; border-top: 1px solid var(--border); margin-top: 4px; }
}

/* Vertikální karta (detail sidebar) */
.affil-sidebar-wrap { margin-bottom: 16px; }
.affil-card-v {
  display: flex; align-items: flex-start; gap: 10px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px;
  text-decoration: none; color: inherit; margin-bottom: 8px;
  transition: border-color .15s, box-shadow .15s;
  cursor: pointer;
}
.affil-card-v:hover {
  border-color: var(--green);
  box-shadow: 0 1px 6px rgba(29,158,117,.09);
}
.affil-card-v-icon { font-size: 1.4rem; flex-shrink: 0; line-height: 1; padding-top: 1px; }
.affil-card-v-body { flex: 1; min-width: 0; }
.affil-card-v-body strong { display: block; font-size: 0.85rem; color: var(--text); margin-bottom: 4px; line-height: 1.3; font-weight: 500; }
.affil-card-v-body span  { display: block; font-size: 0.78rem; color: var(--text-muted); line-height: 1.4; margin-bottom: 6px; }
.affil-card-v-cta { font-size: 0.78rem; color: var(--green); font-weight: 500; font-style: normal; }

.affil-info {
  display: inline-flex; align-items: center; justify-content: center;
  width: 13px; height: 13px;
  border: 1px solid var(--gray-200); border-radius: 50%;
  font-size: 0.55rem; font-style: normal; color: var(--text-hint);
  text-decoration: none; vertical-align: middle; margin-left: 3px;
  line-height: 1;
}
.affil-info:hover { border-color: var(--green); color: var(--green); }
