:root {
  --bg: #f5f7f5;          /* serin kağıt */
  --surface: #ffffff;
  --line: #dbe1dd;
  --fg: #1b2420;          /* mürekkep */
  --muted: #59655f;
  --accent: #2d5a4d;      /* selvi yeşili */
  --accent-fg: #ffffff;
  --accent-soft: #e3ede9;
  --gold: #85661c;        /* öne çıkan (ücretli) */
  --gold-soft: #f3ebd6;
  --wa: #1d7f47;
  --f-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-name: Georgia, "Times New Roman", serif;
  --r: 10px;
  --w: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101412; --surface: #171c1a; --line: #2a3330; --fg: #e5ebe8; --muted: #9aa7a1;
    --accent: #86c1ad; --accent-fg: #0f1513; --accent-soft: #1d2b27; --gold: #d8b15d; --gold-soft: #2c2616;
    --wa: #58c48a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101412; --surface: #171c1a; --line: #2a3330; --fg: #e5ebe8; --muted: #9aa7a1;
  --accent: #86c1ad; --accent-fg: #0f1513; --accent-soft: #1d2b27; --gold: #d8b15d; --gold-soft: #2c2616;
  --wa: #58c48a; color-scheme: dark;
}

* { box-sizing: border-box; }
body { background: var(--bg); color: var(--fg); font: 17px/1.55 var(--f-ui); }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.25; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(1.55rem, 1.2rem + 1.6vw, 2.2rem); letter-spacing: -0.01em; }
h2 { font-size: 1.25rem; }
p { margin: 0; }
.wrap { max-width: var(--w); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.stack { display: grid; gap: 28px; }


/* Üst bilgi */
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 16px; padding-block: 12px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--fg); font-weight: 700; font-size: 1.15rem; margin-right: auto; }
.logo svg { width: 26px; height: 26px; color: var(--accent); }
.logo span { color: var(--muted); font-weight: 500; }
.head-nav { display: flex; gap: 18px; align-items: center; }
.head-nav a { color: var(--fg); text-decoration: none; font-weight: 500; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r); border: 1px solid transparent; font: 600 1rem var(--f-ui); cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--fg); }
.btn-wa { background: var(--wa); color: #fff; }
.head-nav .btn { color: var(--accent-fg); }

/* Ana sayfa üst bölüm */
.hero { padding-block: 28px 8px; }
.hero .wrap { display: grid; gap: 18px; }
.date-line { color: var(--muted); font-weight: 500; }
.finder { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: grid; gap: 14px; }
.finder-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .legend { font-weight: 600; font-size: 0.92rem; }
.field .hint { font-size: 0.85rem; color: var(--muted); }
select, input[type="text"], input[type="url"], input[type="email"], input[type="password"], input[type="file"], input[type="date"], input[type="number"], input[type="search"], input[type="tel"], textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; font: 1rem var(--f-ui); color: var(--fg);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
select:disabled { opacity: 0.55; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.85rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.search-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.92rem; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); text-decoration: none; font-weight: 500; border: 1px solid transparent; }
.chip:hover { border-color: var(--accent); }
.chip small { color: var(--muted); margin-left: 6px; }

/* Bölüm başlıkları */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.sec-head a { font-size: 0.95rem; }

/* Öne çıkan (ücretli) ilanlar */
.featured { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.f-card { background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); border-radius: 12px; padding: 14px; display: grid; gap: 6px; align-content: start; }
.f-tag { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); font-weight: 700; }
.f-card .name { font-size: 1.15rem; }
.f-card.cta { background: var(--surface); border-style: dashed; border-color: var(--gold); }

/* İlan listesi */
.day { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.day-head { display: flex; justify-content: space-between; gap: 10px; padding: 12px 16px; background: var(--accent-soft); font-weight: 600; flex-wrap: wrap; }
.day-head .count { color: var(--muted); font-weight: 500; }
.list { list-style: none; margin: 0; padding: 0; }
.item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--line); align-items: start; }
.item:first-child { border-top: 0; }
.avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font: 600 1.1rem var(--f-name); overflow: hidden; }
.avatar svg { width: 100%; height: 100%; }
.name { font-family: var(--f-name); font-weight: 600; font-size: 1.2rem; color: var(--fg); text-decoration: none; }
a.name:hover { color: var(--accent); text-decoration: underline; }
.meta { color: var(--muted); font-size: 0.95rem; }
.meta b { color: var(--fg); font-weight: 600; }
.when { font-size: 0.85rem; color: var(--muted); text-align: right; white-space: nowrap; }
.when strong { display: block; color: var(--fg); font-size: 0.95rem; }

/* Reklam kutusu: sabit yükseklik, CLS olmasın */
.ad { min-height: 280px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 0.85rem; background: repeating-linear-gradient(45deg, transparent 0 12px, color-mix(in srgb, var(--line) 35%, transparent) 12px 13px); }

/* 81 il listesi */
.alpha { columns: 4 180px; column-gap: 24px; }
.alpha-group { break-inside: avoid; margin-bottom: 14px; }
.alpha-group h3 { font-size: 0.85rem; color: var(--muted); letter-spacing: 0.06em; margin-bottom: 4px; }
.alpha-group a { display: block; padding: 3px 0; text-decoration: none; color: var(--fg); }
.alpha-group a:hover { color: var(--accent); text-decoration: underline; }

/* Rehber */
.guides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.guide { display: grid; gap: 4px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--fg); }
.guide b { font-size: 1.05rem; }
.guide span { color: var(--muted); font-size: 0.92rem; }
.guide:hover b { color: var(--accent); text-decoration: underline; }

/* Kırıntı yolu */
.crumbs { font-size: 0.9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; padding-block: 16px 4px; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-hidden] { opacity: 0.6; }

/* İl sayfası */
.page-head { display: grid; gap: 10px; padding-block: 6px 4px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font: 500 0.95rem var(--f-ui); cursor: pointer; }
.tab[aria-pressed="true"] { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.tab .n { opacity: 0.75; margin-left: 4px; }
.chips-scroll { display: flex; flex-wrap: wrap; gap: 8px; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pager a, .pager span { min-width: 44px; min-height: 44px; display: grid; place-items: center; padding: 0 10px; border-radius: var(--r); border: 1px solid var(--line); text-decoration: none; color: var(--fg); background: var(--surface); }
.pager [aria-current] { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); font-weight: 600; }
.pager span.gap { border: 0; background: none; min-width: 20px; }
.prose { max-width: 68ch; display: grid; gap: 12px; }
.prose h2 { font-size: 1.15rem; }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.aside { display: grid; gap: 16px; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 10px; }
.box h2 { font-size: 1.05rem; }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }

/* İlan sayfası */
.obit { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: grid; gap: 18px; }
.obit-top { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; align-items: center; }
.obit-photo { width: 120px; height: 150px; border-radius: 10px; overflow: hidden; background: var(--accent-soft); }
.obit-photo svg { width: 100%; height: 100%; display: block; }
.obit .eyebrow { font-size: 0.9rem; color: var(--accent); font-weight: 600; }
.obit h1 { font-family: var(--f-name); font-weight: 600; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 18px; margin: 0; border-top: 1px solid var(--line); padding-top: 16px; }
.facts dt { color: var(--muted); font-size: 0.95rem; }
.facts dd { margin: 0; font-weight: 500; }
.facts dd a { font-weight: 500; font-size: 0.92rem; margin-left: 6px; white-space: nowrap; }
.relatives { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 6px; }
.source { font-size: 0.88rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.share { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.share .btn { min-height: 44px; font-size: 0.95rem; }
.share .btn-wa { grid-column: 1 / -1; }
.card-preview { aspect-ratio: 1200 / 630; max-width: 100%; border-radius: 10px; background: #24483e; color: #f1f5f3; padding: 6% 7%; display: grid; grid-template-columns: auto 1fr; gap: 6%; align-items: center; position: relative; overflow: hidden; }
.card-preview { grid-template-columns: 16% minmax(0, 1fr); }
.card-preview svg { width: 100%; height: auto; aspect-ratio: 1; color: #9fd0bf; }
.card-preview .cp-name { font: 600 clamp(1rem, 4.2vw, 1.5rem) var(--f-name); }
.card-preview .cp-sub { font-size: clamp(0.62rem, 2.2vw, 0.8rem); opacity: 0.9; }
.card-preview .cp-site { position: absolute; right: 5%; bottom: 6%; font-size: clamp(0.55rem, 1.8vw, 0.7rem); opacity: 0.8; }

/* İlan ver formu */
.form-grid { display: grid; gap: 18px; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 0; display: grid; gap: 14px; background: var(--surface); min-width: 0; }
legend { font-weight: 700; padding: 0 6px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plans { display: grid; gap: 10px; }
.plan { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; background: var(--bg); }
.plan:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan.paid:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); background: var(--gold-soft); }
.plan input { width: 20px; height: 20px; accent-color: var(--accent); }
.plan b { display: block; }
.plan span { color: var(--muted); font-size: 0.9rem; }
.plan .price { font-weight: 700; color: var(--fg); white-space: nowrap; }
.havale { background: var(--gold-soft); border-radius: var(--r); padding: 14px; display: grid; gap: 6px; font-size: 0.95rem; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 0.95rem; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); }
.success { background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 12px; padding: 16px; display: grid; gap: 6px; }
.sticky-preview { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 16px); }

.site-foot { margin-top: 48px; background: var(--surface); border-top: 1px solid var(--line); }
.site-foot .wrap { padding-block: 28px; display: grid; gap: 16px; font-size: 0.92rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot-links a { color: var(--fg); }

@media (max-width: 860px) {
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .featured { grid-template-columns: minmax(0, 1fr); }
  .sticky-preview { position: static; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .head-nav .hide-sm { display: none; }
  .finder-row { grid-template-columns: 1fr; }
  .finder-row .btn { width: 100%; }
  .guides { grid-template-columns: minmax(0, 1fr); }
  .item { grid-template-columns: 48px minmax(0, 1fr); }
  .avatar { width: 48px; height: 48px; }
  .when { grid-column: 2; text-align: left; }
  .when strong { display: inline; margin-right: 6px; }
  .obit { padding: 16px; }
  .obit-top { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; }
  .obit-photo { width: 88px; height: 110px; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .facts dd { margin-bottom: 10px; }
  .row-2 { grid-template-columns: 1fr; }
  .ad { min-height: 250px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }


/* Sitede ek parçalar */
img { max-width: 100%; height: auto; }
.avatar img, .obit-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.alert { border-radius: 12px; padding: 14px 16px; border: 1px solid var(--accent); background: var(--accent-soft); }
.alert.err { border-color: #b3261e; background: color-mix(in srgb, #b3261e 10%, var(--surface)); }
.err-text { color: #b3261e; font-size: 0.9rem; }
@media (prefers-color-scheme: dark) { .err-text { color: #f2b8b5; } }
.empty { padding: 18px 16px; color: var(--muted); }
.narrow { max-width: 560px; }
.post-list { display: grid; gap: 12px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; }
.prose h3 { font-size: 1.02rem; }
.prose blockquote { margin: 0; padding: 14px 16px; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--r) var(--r) 0; display: grid; gap: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--accent-soft); }
.prose details { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.prose summary { cursor: pointer; list-style: none; padding: 12px 40px 12px 14px; font-weight: 600; position: relative; min-height: 44px; }
.prose summary::-webkit-details-marker { display: none; }
.prose summary::after { content: "+"; position: absolute; right: 14px; top: 10px; font-size: 1.2rem; color: var(--accent); }
.prose details[open] summary::after { content: "\2212"; }
.prose details > :not(summary) { padding: 0 14px 12px; margin: 0; }
.tab { display: inline-flex; align-items: center; text-decoration: none; }
.tab[aria-current="page"] { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.head-nav .user { color: var(--muted); font-size: 0.95rem; }
.status { font-size: 0.8rem; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.status.beklemede { background: var(--gold-soft); color: var(--gold); }
.hp { position: absolute; left: -9999px; }
