/* ═══════════════════════════════════════════════════════════════════════════
   QCHU — qchu.raesoftware.com ortak stil
   Kimlik: beyaz zemin · siyah (#262626) tipografi/butonlar · PALET v2 kategori
   renkleri vurgu · Poppins · iOS-vari sadelik · mobil-öncelikli · dark-mode.
   Kaynak renkler: lib/core/theme/app_colors.dart (PALET v2 kilidi 2026-07-12).
   Desen: açık temada kategorinin UI KOYU tonu, koyu temada PİN AÇIK tonu —
   uygulamadaki "UI koyu + pin/ısı açık" çift-ton sistemi birebir.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --ink: #262626;          /* AppColors.ink / textPrimary */
  --ink-soft: #636366;     /* AppColors.inkSoft */
  --muted: #8e8e93;        /* AppColors.textSecondary */
  --faint: #c7c7cc;        /* AppColors.textMuted */
  --bg: #ffffff;
  --bg-frost: rgba(255, 255, 255, 0.8);  /* D1 frosted (blur12/%80) */
  --surface: #fafafa;      /* AppColors.groupedBg */
  --hairline: #eeeeee;     /* AppColors.hairline */
  --divider: #e5e5ea;      /* AppColors.divider */

  /* ── PALET v2 kategori vurguları (UI koyu tonlar) ── */
  --dog: #0e8e82;          /* köpek — dogTeal */
  --dog-heat: #6dd5cc;     /* köpek ısı — dogTealLight */
  --cat: #4cbb6a;          /* kedi — catGreen */
  --cat-heat: #86efac;     /* kedi ısı — catGreenLight */
  --water: #378add;        /* su — waterBlue */
  --food: #ba7517;         /* mama — foodBrown */
  --shelter: #c0568c;      /* barınak — shelterPink */
  --belediye: #1e3a8a;     /* belediye laciverti */
  --vet: #f87171;          /* veteriner kimliği — vetRed */
  --danger: #dc2626;       /* TEK kırmızı: acil = uyarı = kritik */
  --help: #fcd34d;         /* yardım bekleyen sarısı — helpYellow */
  --success: #3da45f;      /* başarı / Bulundu yeşili */
  --gold: #f9a825;         /* rozet · favori · motivasyon altını */

  --fill-bg: #fff7e0;      /* [DOLDURULACAK] işaret zemini */
  --fill-ink: #8a6100;

  --radius: 14px;
  --maxw: 1060px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f2f4;
    --ink-soft: #b9b9bf;
    --muted: #8e8e93;
    --faint: #55555a;
    --bg: #121214;
    --bg-frost: rgba(18, 18, 20, 0.78);
    --surface: #1c1c1f;
    --hairline: #2a2a2e;
    --divider: #333338;

    /* Koyu temada kategorinin PİN AÇIK tonu (uygulamadaki çift-ton deseni) */
    --dog: #6dd5cc;
    --cat: #86efac;
    --water: #7fc9ff;
    --food: #d3ab83;
    --shelter: #ffb2da;
    --belediye: #93b4f5;

    --fill-bg: #3a3110;
    --fill-ink: #f0cf7a;
  }
  .gicon { filter: invert(1); }             /* siyah glif ikonlar → beyaz */
  .logo-img { filter: invert(1); }          /* siyah köpek → beyaz köpek */
  .btn-primary { background: #f2f2f4; color: #121214; }
  .btn-primary:hover { background: #ffffff; }
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }

/* ── Header — D1 frosted, sticky ───────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--hairline);
  background: var(--bg-frost);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.brand .logo-img { width: 34px; height: 34px; object-fit: contain; }
.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}
.site-nav a:hover { color: var(--ink); background: var(--surface); }
.site-nav a.nav-cta {
  color: var(--bg);
  background: var(--ink);
  font-weight: 600;
  padding: 7px 16px;
}
.site-nav a.nav-cta:hover { opacity: 0.85; }

/* ── Genel bölüm düzeni ────────────────────────────────────────────────── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

section { padding: 56px 0; }

h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.35rem, 3.5vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 600; }

.lead { color: var(--ink-soft); font-size: 1.08rem; max-width: 42rem; }

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

/* ── Hero — ısı alanı esintili zemin ───────────────────────────────────── */
.hero-band {
  position: relative;
  overflow: hidden;
}
/* Köpek TEAL + kedi YEŞİL ısı alanları — haritadaki splash'lerin yankısı */
.hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(38rem 24rem at 12% 8%,  color-mix(in srgb, var(--dog-heat) 22%, transparent), transparent 68%),
    radial-gradient(34rem 22rem at 88% 16%, color-mix(in srgb, var(--cat-heat) 18%, transparent), transparent 66%);
}
.hero { position: relative; text-align: center; padding: 76px 0 60px; }
.hero .logo-img { width: 108px; height: 108px; object-fit: contain; margin-bottom: 20px; }
.hero h1 { margin-bottom: 14px; }
.hero .lead { margin: 0 auto 26px; }

/* Kategori çipleri — paletin kendini tanıttığı satır */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 30px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-soft);
  border: 1px solid var(--hairline);
  background: var(--bg-frost);
  border-radius: 999px;
  padding: 5px 13px;
  white-space: nowrap;
}
.chip .dot { margin-right: 0; }

.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: opacity 0.15s, background 0.15s;
}
.btn-primary { background: var(--ink); color: #ffffff; }
.btn-primary:hover { opacity: 0.85; }
.btn-outline { border-color: var(--divider); color: var(--ink); background: var(--bg-frost); }
.btn-outline:hover { background: var(--surface); }
.btn .soon {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}
.btn-outline .soon { background: var(--surface); color: var(--muted); border: 1px solid var(--hairline); }
.btn[aria-disabled="true"] { cursor: default; }

.hero-note { margin-top: 14px; font-size: 0.8rem; color: var(--muted); }

/* ── Sayı bandı ────────────────────────────────────────────────────────── */
.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 56px;
  padding: 26px 20px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--surface);
}
.stat { text-align: center; min-width: 130px; }
.stat b {
  display: block;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: 0.8rem; color: var(--muted); }

/* ── Özellik kartları ──────────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 32px;
}
.card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px 22px;
  background: var(--bg);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--divider);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.08);
}
.card h3 { margin: 14px 0 6px; display: flex; align-items: center; gap: 9px; }
.card p { color: var(--ink-soft); font-size: 0.9rem; }
.card .icon {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.card .icon img { width: 34px; height: 34px; object-fit: contain; }
.card .icon svg { width: 30px; height: 30px; }

/* Öne çıkan geniş kart — Kayıp & Bulundu */
.card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  background:
    linear-gradient(0deg, color-mix(in srgb, var(--help) 7%, transparent),
                          color-mix(in srgb, var(--help) 7%, transparent)),
    var(--bg);
}
.card-featured .pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 4px 12px;
  border: 1px solid transparent;
}
.pill .dot { margin-right: 0; }
.pill-help    { background: color-mix(in srgb, var(--help) 22%, var(--bg));    border-color: color-mix(in srgb, var(--help) 55%, var(--bg)); }
.pill-found   { background: color-mix(in srgb, var(--success) 14%, var(--bg)); border-color: color-mix(in srgb, var(--success) 40%, var(--bg)); }
.pill-danger  { background: color-mix(in srgb, var(--danger) 10%, var(--bg));  border-color: color-mix(in srgb, var(--danger) 32%, var(--bg)); }

/* ── Gizlilik-önce bölümü ──────────────────────────────────────────────── */
.trust { background: var(--surface); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.trust-list { list-style: none; margin-top: 26px; display: grid; gap: 14px; max-width: 46rem; }
.trust-list li { display: flex; gap: 14px; align-items: flex-start; }
.trust-list .tick {
  flex: 0 0 auto;
  width: 24px; height: 24px; margin-top: 2px;
  border-radius: 50%;
  background: var(--success);
  color: #ffffff;
  display: flex; align-items: center; justify-content: center;
}
.trust-list .tick svg { width: 13px; height: 13px; }
.trust-list b { display: block; }
.trust-list span { color: var(--ink-soft); font-size: 0.9rem; }

/* ── SSS (details/summary) ─────────────────────────────────────────────── */
.faq-list { margin-top: 26px; max-width: 46rem; }
.faq-list details { border-bottom: 1px solid var(--hairline); }
.faq-list summary {
  cursor: pointer;
  padding: 16px 4px;
  font-weight: 600;
  font-size: 0.98rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--muted); font-size: 1.3rem; font-weight: 400; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { padding: 0 4px 18px; color: var(--ink-soft); font-size: 0.92rem; max-width: 60ch; }

/* ── Kapanış CTA ───────────────────────────────────────────────────────── */
.cta-band { text-align: center; }
.cta-band .lead { margin: 0 auto 26px; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 44px 0 32px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  margin-bottom: 30px;
}
.footer-grid h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 12px; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-grid a { color: var(--ink-soft); text-decoration: none; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
}
.footer-attrib { font-size: 0.75rem; color: var(--muted); max-width: 60ch; }
.footer-attrib a { color: var(--muted); }

/* ── Hukuki / belge sayfaları ──────────────────────────────────────────── */
.doc { max-width: 68ch; margin: 0 auto; padding: 48px 20px 80px; }
.doc-meta { color: var(--muted); font-size: 0.82rem; margin: 8px 0 4px; }
.doc h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 6px; }
.doc h2 {
  font-size: 1.25rem;
  margin: 44px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}
.doc h3 { margin: 24px 0 8px; }
.doc p { margin: 12px 0; }
.doc ul, .doc ol { margin: 12px 0 12px 22px; }
.doc li { margin: 6px 0; }
.doc .note {
  background: var(--surface);
  border-left: 3px solid var(--ink);
  border-radius: 0 10px 10px 0;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 18px 0;
}
.doc .note-danger { border-left-color: var(--danger); }

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 16px 0;
}
.doc th, .doc td {
  border: 1px solid var(--divider);
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
}
.doc th { background: var(--surface); font-weight: 600; }
.table-scroll { overflow-x: auto; }

/* İçindekiler */
.toc {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 26px 0 8px;
  font-size: 0.9rem;
}
.toc strong { display: block; margin-bottom: 8px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.toc ol { margin: 0 0 0 20px; }
.toc li { margin: 4px 0; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }

/* Doldurulacak alan işareti — Emre kararı bekleyen her yer */
.fill {
  background: var(--fill-bg);
  color: var(--fill-ink);
  border-radius: 6px;
  padding: 1px 7px;
  font-weight: 600;
  font-size: 0.9em;
  white-space: normal;
}

/* Adım listesi (hesap silme) */
.steps { counter-reset: step; list-style: none; margin: 20px 0 !important; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 18px 46px;
  margin: 0 !important;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}

/* Kategori nokta vurgusu */
.dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: baseline;
}
.dot-sm { width: 8px; height: 8px; }

@media (max-width: 560px) {
  .header-inner { padding: 12px 16px; }
  .site-nav a { padding: 5px 8px; font-size: 0.82rem; }
  section { padding: 44px 0; }
  .hero { padding: 56px 0 44px; }
  .stats { gap: 14px 32px; }
}
