/* ===========================================================
   Erotický slovník — styl
   Tasteful, klidný, důvěryhodný vzhled. Mobile-first.
   =========================================================== */

:root {
  --rose: #1f6feb;
  --rose-dark: #1550b0;
  --rose-soft: #e6f0fe;
  --ink: #11161d;
  --muted: #5b6675;
  --line: #e6eaf0;
  --bg: #f7f9fc;
  --card: #ffffff;
  --green: #2e9e6b;
  --red: #d84343;
  --violet: #7c4dff;
  --amber: #e0922a;
  --blue: #2f7fd6;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(29,26,30,.04), 0 8px 24px rgba(29,26,30,.06);
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

a { color: var(--rose-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 2rem; margin: 0 0 .4em; }
h2 { font-size: 1.4rem; margin: 1.8em 0 .6em; }
h3 { font-size: 1.1rem; margin: 1.4em 0 .4em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(251,249,252,.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand svg { width: 26px; height: 26px; }
.brand .b-rose { color: var(--rose); }
.nav { margin-left: auto; display: flex; gap: 22px; }
.nav a { color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--rose-dark); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 56px 0 32px;
  background: radial-gradient(120% 120% at 50% -10%, var(--rose-soft) 0%, transparent 60%);
}
.hero h1 { font-size: 2.5rem; max-width: 16ch; margin: 0 auto .3em; }
.hero p { color: var(--muted); font-size: 1.15rem; max-width: 52ch; margin: 0 auto 1.5em; }

/* viditelný počet hesel */
.hero-badge {
  display: inline-block; margin-bottom: 18px; padding: 7px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  font-size: .9rem; font-weight: 600; color: var(--rose-dark); box-shadow: var(--shadow);
}
.hero-stats { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-stats .stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 26px; min-width: 96px; box-shadow: var(--shadow);
}
.hero-stats .num { display: block; font-size: 2rem; font-weight: 800; color: var(--rose); line-height: 1; }
.hero-stats .lbl { display: block; font-size: .85rem; color: var(--muted); margin-top: 4px; }
.nav-count {
  display: inline-block; background: var(--rose); color: #fff; font-size: .72rem; font-weight: 700;
  border-radius: 999px; padding: 1px 8px; margin-left: 2px; vertical-align: middle;
}

/* ---------- Search ---------- */
.search { position: relative; max-width: 520px; margin: 0 auto; }
.search input {
  width: 100%; padding: 14px 18px 14px 46px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 1rem; background: var(--card); box-shadow: var(--shadow);
  outline: none; transition: border-color .15s;
}
.search input:focus { border-color: var(--rose); }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }

/* ---------- Našeptávač (autocomplete) ---------- */
.ac-list {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 40;
  margin-top: 8px; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 12px 32px rgba(29,26,30,.14); max-height: 360px; overflow-y: auto;
  display: none; text-align: left;
}
.ac-list.show { display: block; }
.ac-list li { margin: 0; }
.ac-list li a {
  display: flex; align-items: baseline; gap: 8px;
  padding: 10px 12px; border-radius: 9px; color: var(--ink);
}
.ac-list li a:hover, .ac-list li.active a { background: var(--rose-soft); text-decoration: none; }
.ac-list .ac-name { font-weight: 600; }
.ac-list .ac-cat { font-size: .78rem; color: var(--muted); margin-left: auto; white-space: nowrap; }
.ac-list .ac-empty { padding: 12px; color: var(--muted); }

/* ---------- Hub grid (kategorie) ---------- */
.section-title { text-align: center; margin: 48px 0 6px; }
.section-sub { text-align: center; color: var(--muted); margin: 0 0 28px; }

.hub-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  margin: 28px 0;
}
.hub-card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s; color: var(--ink);
}
.hub-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(29,26,30,.10); text-decoration: none; }
.hub-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  margin-bottom: 14px; background: var(--rose-soft); color: var(--rose);
}
.hub-icon svg { width: 24px; height: 24px; }
.hub-card h3 { margin: 0 0 6px; font-size: 1.15rem; }
.hub-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.hub-card .count { display: inline-block; margin-top: 12px; font-size: .8rem; color: var(--rose-dark); font-weight: 600; }

/* barevné varianty ikon */
.c-rose .hub-icon{background:#fce4ec;color:#c2185b}
.c-green .hub-icon{background:#e3f5ec;color:#2e9e6b}
.c-red .hub-icon{background:#fde7e7;color:#d84343}
.c-violet .hub-icon{background:#efeaff;color:#7c4dff}
.c-amber .hub-icon{background:#fcf0db;color:#bd7615}
.c-blue .hub-icon{background:#e6f0fb;color:#2f7fd6}

/* ---------- Karty hesel / průvodců ---------- */
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 22px 0; }
.term-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; color: var(--ink);
}
.term-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(29,26,30,.10); text-decoration: none; }
.term-card .tag { font-size: .72rem; font-weight: 600; color: var(--rose); text-transform: uppercase; letter-spacing: .04em; }
.term-card h3 { margin: 6px 0 6px; font-size: 1.08rem; }
.term-card p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ---------- Obsah článku / hesla ---------- */
.page { padding: 32px 0 64px; }
.content { max-width: 760px; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--rose-dark); }

.term-short {
  font-size: 1.15rem; color: var(--ink); background: var(--rose-soft);
  border-left: 4px solid var(--rose); border-radius: 0 12px 12px 0;
  padding: 16px 20px; margin: 0 0 28px;
}
.content p { margin: 0 0 1em; }
.content ul { margin: 0 0 1.2em; padding-left: 1.3em; }
.content li { margin: .3em 0; }
.content code { background: #f1edf4; padding: 2px 6px; border-radius: 6px; font-size: .9em; }

.synonyms { font-size: .9rem; color: var(--muted); margin: -10px 0 24px; }
.synonyms strong { color: var(--ink); }

/* ---------- Permalink box (pro odkazování z jiných projektů) ---------- */
.permalink {
  margin: 32px 0; padding: 16px 18px; border: 1px dashed var(--line);
  border-radius: 12px; background: #fff; font-size: .9rem;
}
.permalink strong { display: block; margin-bottom: 8px; }
.permalink .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.permalink input {
  flex: 1; min-width: 220px; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: 8px; font-size: .85rem; color: var(--muted); background: var(--bg);
}
.permalink button {
  padding: 8px 14px; border: 0; border-radius: 8px; background: var(--rose);
  color: #fff; font-weight: 600; cursor: pointer; font-size: .85rem;
}
.permalink button:hover { background: var(--rose-dark); }

/* ---------- Související ---------- */
.related { margin-top: 40px; }
.related h2 { font-size: 1.2rem; }

/* ---------- FAQ ---------- */
.faq { margin-top: 40px; }
.faq details {
  border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  padding: 0 18px; margin-bottom: 10px;
}
.faq summary {
  cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--rose); font-size: 1.3rem; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* ---------- A–Z slovník ---------- */
.az-bar { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 24px; }
.az-bar a { padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-weight: 600; font-size: .85rem; background: var(--card); }
.az-bar a:hover { background: var(--rose-soft); color: var(--rose-dark); text-decoration: none; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.chip {
  padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--muted); font-size: .88rem; cursor: pointer; font-weight: 500;
}
.chip.active, .chip:hover { background: var(--rose); color: #fff; border-color: var(--rose); }

.az-group { margin: 28px 0 0; }
.az-letter { font-size: 1.5rem; color: var(--rose); border-bottom: 2px solid var(--line); padding-bottom: 4px; margin: 0 0 12px; }
.az-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.az-list li a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); }
.az-list li a:hover { background: var(--rose-soft); text-decoration: none; }
.az-list .a-cat { font-size: .75rem; color: var(--muted); }
.no-results { color: var(--muted); padding: 30px 0; text-align: center; display: none; }

/* ---------- CTA / disclaimer ---------- */
.note {
  background: #fff7e6; border: 1px solid #f3e2bd; color: #7a5b1a;
  border-radius: 12px; padding: 14px 18px; font-size: .92rem; margin: 28px 0;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 36px 0; color: var(--muted); font-size: .9rem; background: var(--card); }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--rose-dark); }
.site-footer h4 { color: var(--ink); margin: 0 0 10px; font-size: .95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; line-height: 2; }
.site-footer .legal { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .82rem; }

/* ---------- Age gate ---------- */
.agegate {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(20,16,22,.75); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 20px;
}
.agegate.show { display: flex; }
.agegate .box {
  background: #fff; border-radius: 20px; max-width: 420px; padding: 32px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.agegate h2 { margin: 0 0 10px; }
.agegate p { color: var(--muted); margin: 0 0 22px; }
.agegate .btns { display: flex; gap: 12px; justify-content: center; }
.agegate button {
  padding: 12px 22px; border-radius: 10px; border: 0; font-weight: 600; cursor: pointer; font-size: 1rem;
}
.agegate .yes { background: var(--rose); color: #fff; }
.agegate .yes:hover { background: var(--rose-dark); }
.agegate .no { background: var(--line); color: var(--ink); }

/* ---------- Restricted (zakázaná) sekce — heslový gate ---------- */
.restricted-gate {
  position: fixed; inset: 0; z-index: 200; display: flex;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(20,12,16,.92); backdrop-filter: blur(8px);
}
.restricted-gate .box {
  background: #fff; border-radius: 20px; max-width: 460px; padding: 34px;
  text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.restricted-gate .lock-ic {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; background: var(--rose-soft); color: var(--rose);
}
.restricted-gate .lock-ic svg { width: 28px; height: 28px; }
.restricted-gate h2 { margin: 0 0 10px; }
.restricted-gate p { color: var(--muted); font-size: .95rem; margin: 0 0 18px; }
.restricted-gate input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 1rem; margin-bottom: 14px; text-align: center;
}
.restricted-gate .rg-row { display: flex; gap: 12px; justify-content: center; align-items: center; }
.restricted-gate .rg-ok {
  padding: 12px 22px; border: 0; border-radius: 10px; background: var(--rose);
  color: #fff; font-weight: 600; cursor: pointer; font-size: 1rem;
}
.restricted-gate .rg-ok:hover { background: var(--rose-dark); }
.restricted-gate .rg-back { color: var(--muted); font-size: .9rem; }
.restricted-gate .rg-err { color: var(--red); font-weight: 600; margin: 14px 0 0; }

@media (max-width: 640px) {
  .hero h1 { font-size: 1.9rem; }
  .nav { gap: 14px; }
  .nav a { font-size: .88rem; }
  .site-header .wrap { gap: 12px; }
}

/* ============================================================
   INZERCE / PARTNEŘI — nativní reklamní bloky
   ============================================================ */
.ad-slot { --ad-accent: var(--rose); margin: 30px 0; }
.ad-slot-head {
  display: flex; align-items: baseline; gap: 8px;
  font-size: .82rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px;
}
.ad-slot-note {
  font-weight: 600; text-transform: none; letter-spacing: 0;
  font-size: .72rem; color: var(--muted); opacity: .8;
  border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px;
}
.ad-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.ad-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line);
  border-left: 4px solid var(--ad-accent);
  border-radius: var(--radius); padding: 16px 18px;
  text-decoration: none; color: var(--ink);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.ad-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--ad-accent); }
.ad-thumb { flex: 0 0 56px; }
.ad-thumb img { width: 56px; height: 56px; object-fit: cover; border-radius: 12px; display: block; }
.ad-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ad-label {
  align-self: flex-start; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--ad-accent); background: var(--rose-soft);
  border-radius: 999px; padding: 2px 9px; margin-bottom: 3px;
}
.ad-title { font-weight: 700; font-size: 1.02rem; line-height: 1.25; }
.ad-desc { font-size: .9rem; color: var(--muted); line-height: 1.45; }
.ad-cta { margin-top: 6px; font-weight: 700; font-size: .9rem; color: var(--ad-accent); }
@media (max-width: 560px) { .ad-card { padding: 14px; } }

/* Hero ilustrace (PC kutil) */
.hero-art { width: 100%; max-width: 360px; margin: 0 auto 6px; }
.hero-art svg { width: 100%; height: auto; display: block; }
@media (max-width: 560px) { .hero-art { max-width: 280px; } }
