/* ═══════════════════════════════════════════════════════
   home.css  –  Styly pro index.php (homepage)
   ═══════════════════════════════════════════════════════ */

/* ── Hero ────────────────────────────────────────────── */
.hero {
  max-width: 1100px; margin: 0 auto;
  padding: 32px clamp(16px, 4vw, 32px) 0;
  text-align: center;
  position: relative; z-index: 10;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.6px;
  text-transform: uppercase;
  background: var(--green-light); color: var(--green-dark);
  padding: 5px 14px; border-radius: var(--radius-pill);
  margin-bottom: 32px;
  animation: fadeUp 0.5s ease both;
}
/*
.hero-badge::before {
  content: ''; width: 6px; height: 6px;
  background: var(--green); border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.8)} }
*/

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 600; line-height: 1.18;
  letter-spacing: -0.5px; color: var(--text);
  margin-bottom: 32px;
  animation: fadeUp 0.5s 0.08s ease both;
}
.hero h1 em { font-style: italic; color: var(--green); }

.hero p {
  font-size: 1.1rem; color: var(--text-muted);
  max-width: 620px; margin: 0 auto 32px;
  line-height: 1.65;
  animation: fadeUp 0.5s 0.16s ease both;
}

/* ── Vyhledávací pole ────────────────────────────────── */
.search-wrap {
  position: relative; max-width: 640px; margin: 0 auto;
  animation: fadeUp 0.5s 0.22s ease both;
}
.search-field {
  display: flex; align-items: center;
  background: #fff; border: 1.5px solid var(--border-hover);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
  overflow: visible;
}
.search-field:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(29,158,117,0.12), var(--shadow);
}
.search-icon {
  padding: 0 14px 0 18px; color: var(--text-hint); font-size: 1.2rem;
  display: flex; align-items: center; flex-shrink: 0;
}
.search-input {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: var(--font-body); font-size: 1.1rem; color: var(--text);
  padding: 16px 0; min-width: 0;
}
.search-input::placeholder { color: var(--text-hint); }
.search-btn {
  margin: 6px; padding: 0 20px;
  background: var(--green); color: #fff; border: none;
  border-radius: var(--radius-sm); height: 42px;
  font-family: var(--font-body); font-size: 1rem; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  transition: background .15s, transform .1s;
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.search-btn:hover { background: var(--green-dark); }
.search-btn:active { transform: scale(0.97); }

.search-wrap .search-hint {
  font-size: 0.9rem; font-style: italic; color: var(--text-hint);
  margin-top: 16px; text-align: center; line-height: 1.5;
  max-width: none; width: 100%;
}

/* ── Autocomplete (homepage) ─────────────────────────── */
.autocomplete-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--border-hover);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  z-index: 300; overflow: hidden; display: none;
}
.ac-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px; cursor: pointer;
  transition: background 0.1s;
  border-bottom: 1px solid var(--border);
}
.ac-item:last-child { border-bottom: none; }
.ac-item:hover, .ac-item.focused { background: var(--gray-50); }
.ac-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--green); font-size: 1.1rem; flex-shrink: 0;
}
.ac-name { font-size: 1rem; font-weight: 500; color: var(--text); }
.ac-name mark { background: none; color: var(--green); font-weight: 600; }
.ac-meta { font-size: 0.9rem; color: var(--text-muted); margin-top: 1px; }
.ac-loading { padding: 14px 16px; font-size: 1rem; color: var(--text-muted); text-align: center; }

/* ── Legenda barevných verdiktů (pod hero) ───────────── */
.legend {
  max-width: 1100px; margin: 32px auto 0;
  padding: 0 clamp(16px, 4vw, 32px);
}
.legend-title {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 600; color: var(--text);
  text-align: center; margin-bottom: 14px;
}
.legend-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  list-style: none; margin: 0; padding: 0;
}
.legend-item {
  display: flex; align-items: flex-start; gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.legend-badge {
  flex-shrink: 0;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-family: var(--font-body); font-weight: 700;
  font-size: 0.95rem; line-height: 1;
}
.legend-body { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
.legend-body strong {
  display: block; margin-bottom: 2px;
  font-size: 0.92rem; font-weight: 600; color: var(--text);
}
.legend-item.lg-green { border-left-color: var(--green); }
.legend-item.lg-green .legend-badge { background: var(--green-light); }
.legend-item.lg-blue  { border-left-color: var(--blue); }
/* Plný modrý kruh s „i" (.icon-info v shared.css) — stejně jako na detailu */
.legend-item.lg-blue  .legend-badge { background: var(--blue); color: #fff; font-size: 0.88rem; }
.legend-item.lg-amber { border-left-color: var(--amber); }
.legend-item.lg-amber .legend-badge { background: var(--amber-light); }
.legend-item.lg-red   { border-left-color: var(--red); }
.legend-item.lg-red   .legend-badge { background: var(--red-light); }

/* ── Affiliate strip (homepage, pod vysvětlujícími kartami) ───── */
.ad-strip-wrap {
  max-width: 1100px; margin: 32px auto 0;
  padding: 0 clamp(16px, 4vw, 32px);
}
.ad-strip { display: flex; flex-direction: column; gap: 8px; }

/* ── Výsledky vyhledávání ────────────────────────────── */
.results-section {
  max-width: 1100px; margin: 32px auto 0;
  padding: 0 clamp(16px, 4vw, 32px);
  display: none;
}
.results-section.visible { display: block; }
.results-label { font-size: 1rem; color: var(--text-muted); margin-bottom: 16px; }

.result-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px; margin-bottom: 10px;
  cursor: pointer; color: inherit;
  transition: border-color .15s, box-shadow .15s;
  box-shadow: var(--shadow);
}
.result-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-lg); }
.rc-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 12px; margin-bottom: 12px;
}
.rc-name { font-size: 1.1rem; font-weight: 500; line-height: 1.3; }
.rc-addr { font-size: 0.9rem; color: var(--text-muted); margin-top: 3px; }
.rc-pills { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

.rc-detail-link {
  margin-left: auto; font-size: 0.9rem; font-weight: 500;
  color: var(--green); text-decoration: none;
  display: inline-flex; align-items: center;
  padding: 4px 12px; border: 1px solid var(--green);
  border-radius: var(--radius-pill);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.rc-detail-link:hover { background: var(--green); color: #fff; text-decoration: none; }

/* ── Jak to funguje: kroky 1–2–3 + co ověřujeme ──────── */
.how {
  max-width: 1100px; margin: 40px auto 0;
  padding: 0 clamp(16px, 4vw, 32px);
}
.how-title {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 600; color: var(--text);
  text-align: center; margin-bottom: 20px;
}
.steps-row {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  list-style: none; margin: 0 0 16px; padding: 0;
}
.step {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  animation: fadeUp 0.5s ease both;
}
.step-num {
  flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 50%;
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 400; line-height: 1;
}
.step-text { font-size: 1rem; font-weight: 500; color: var(--text); line-height: 1.4; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.feature-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  text-align: center;
  animation: fadeUp 0.5s ease both;
}
.feature-icon { font-size: 1.6rem; color: var(--green); margin-bottom: 12px; }
.feature-title { font-size: 1rem; font-weight: 500; margin-bottom: 6px; }
.feature-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.55; }

/* ── Stats strip ─────────────────────────────────────── */
.stats-strip {
  max-width: 1100px; margin: 32px auto 0;
  padding: 0 clamp(16px, 4vw, 32px);
  display: flex; align-items: center; gap: 24px; flex-wrap: nowrap;
}
@media (max-width: 600px) { .stats-strip { flex-wrap: wrap; gap: 12px; } }
.stat-chip {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.85rem; color: var(--text-muted);
}
.stat-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.stat-dot.anim { animation: pulse 2s infinite; }
