/* Enflasyon vs Maaş — sistem fontları, üçüncü taraf kaynak yok. Açık, pastel tema; koyu tema da desteklenir. */
:root {
  --bg: #f5f8fd;
  --surface: #ffffff;
  --surface-2: #f2f6fc;
  --text: #1b2433;
  --muted: #5a6678;
  --border: #e1e8f2;
  --accent: #2f64e0;
  --accent-ink: #ffffff;
  --accent-soft: #e8efff;
  --accent-text: #2752c4;
  --neg: #c43b33;
  --neg-soft: #fdeceb;
  --pos: #157a4c;
  --pos-soft: #e5f6ec;
  --bar: #b9c8e6;
  --bar-user: #2f64e0;
  --tint-sky: #e3eeff;
  --tint-mint: #e2f6ec;
  --tint-peach: #fff0e4;
  --shadow: 0 1px 2px rgba(30, 50, 90, .04), 0 8px 24px rgba(30, 50, 90, .07);
  --radius: 18px;
  --focus: 0 0 0 3px rgba(47, 100, 224, .3);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10151d;
    --surface: #18202b;
    --surface-2: #202a37;
    --text: #e9eef6;
    --muted: #9eabbe;
    --border: #2c3747;
    --accent: #8aabff;
    --accent-ink: #0b1226;
    --accent-soft: #1f2c47;
    --accent-text: #a9c1ff;
    --neg: #ff8f86;
    --neg-soft: #3a2222;
    --pos: #72d7a2;
    --pos-soft: #183229;
    --bar: #4b5b78;
    --bar-user: #8aabff;
    --tint-sky: #172338;
    --tint-mint: #142a24;
    --tint-peach: #2b2119;
    --shadow: none;
    --focus: 0 0 0 3px rgba(138, 171, 255, .45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #10151d;
  --surface: #18202b;
  --surface-2: #202a37;
  --text: #e9eef6;
  --muted: #9eabbe;
  --border: #2c3747;
  --accent: #8aabff;
  --accent-ink: #0b1226;
  --accent-soft: #1f2c47;
  --accent-text: #a9c1ff;
  --neg: #ff8f86;
  --neg-soft: #3a2222;
  --pos: #72d7a2;
  --pos-soft: #183229;
  --bar: #4b5b78;
  --bar-user: #8aabff;
  --tint-sky: #172338;
  --tint-mint: #142a24;
  --tint-peach: #2b2119;
  --shadow: none;
  --focus: 0 0 0 3px rgba(138, 171, 255, .45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 0% 0%, var(--tint-sky), transparent 70%),
    radial-gradient(700px 380px at 100% 0%, var(--tint-mint), transparent 70%),
    radial-gradient(700px 500px at 50% 100%, var(--tint-peach), transparent 75%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
  min-height: 100vh;
}
img, svg, canvas { max-width: 100%; }
a { color: var(--accent-text); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.22; margin: 0 0 .5em; }
h1 { font-size: clamp(1.75rem, 5.4vw, 2.6rem); letter-spacing: -.025em; font-weight: 800; }
h2 { font-size: 1.35rem; letter-spacing: -.01em; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 820px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: var(--focus); border-radius: 8px; }

/* Header / footer */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 750; color: var(--text); text-decoration: none; margin-right: auto; }
.brand img { width: 28px; height: 28px; }
.nav { display: flex; gap: 2px; flex-wrap: wrap; font-size: .93rem; }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 99px; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--accent-text); background: var(--accent-soft); }
.icon-btn {
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  width: 38px; height: 38px; border-radius: 12px; cursor: pointer; display: inline-grid; place-items: center; padding: 0;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; }
.site-footer { margin-top: 56px; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 70%, transparent); padding: 28px 0 36px; font-size: .9rem; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.linklike { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; }

/* Sections & cards */
main { padding-top: 36px; }
section { margin: 0 0 24px; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 56ch; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
@media (max-width: 480px) { .card { padding: 18px 16px; } }

/* Hero */
.hero { text-align: left; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 22px; }
.chips li { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; padding: 6px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.chips li:nth-child(1) svg { color: var(--accent); }
.chips li:nth-child(2) svg { color: #d9822b; }
.chips svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Form */
fieldset.step { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
fieldset.step + fieldset.step { padding-top: 20px; border-top: 1px dashed var(--border); }
.step legend { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.02rem; padding: 0; margin-bottom: 14px; }
.step-no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-text); font-size: .85rem; font-weight: 800; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: .93rem; }
.field .hint { font-size: .82rem; color: var(--muted); }
.field .hint:empty, .error:empty { display: none; }
input[type="text"], select {
  width: 100%; min-width: 0; font: inherit; color: var(--text); background: var(--surface-2);
  border: 1.5px solid transparent; border-radius: 12px; padding: 11px 14px; min-height: 48px;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
input[type="text"]:hover, select:hover { border-color: var(--border); }
input[type="text"]:focus, select:focus { outline: 2px solid transparent; background: var(--surface); border-color: var(--accent); box-shadow: var(--focus); }
input::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.input-affix { position: relative; }
.input-affix input { padding-right: 36px; font-variant-numeric: tabular-nums; }
.input-affix span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.field.invalid input, .field.invalid select { border-color: var(--neg); background: var(--neg-soft); }
.error { color: var(--neg); font-size: .85rem; }
.checks { display: flex; flex-direction: column; gap: 8px; margin: 0 0 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); flex: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 650;
  border-radius: 12px; padding: 11px 18px; min-height: 46px; cursor: pointer; border: 1px solid transparent; text-decoration: none;
  transition: background-color .15s, filter .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 25%, transparent); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-primary:disabled { opacity: .55; cursor: default; box-shadow: none; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-soft { background: var(--accent-soft); color: var(--accent-text); }
.btn-soft:hover { filter: brightness(.97); }
.btn-lg { min-height: 52px; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row .btn { flex: 1 1 auto; }
.form-actions { margin-top: 18px; }
.form-actions .btn { width: 100%; }
.data-note { margin: 12px 0 0; font-size: .8rem; color: var(--muted); text-align: center; }
.banner { border-radius: 12px; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--border); font-size: .9rem; }
.banner.warn { background: var(--neg-soft); border-color: transparent; }
#form-error:empty { display: none; }
#form-error { margin: 10px 0 0; }

/* Aç/kapa düğmesi ve paneller */
.btn-toggle { width: 100%; margin-top: 16px; }
.btn-toggle .chev { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.btn-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.prose .btn-toggle { width: auto; margin: 0 0 8px; }
.details-panel { margin-top: 18px; animation: reveal .22s ease-out; }
@keyframes reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .details-panel { animation: none; }
  .btn, .btn-toggle .chev, input[type="text"], select { transition: none; }
}

/* Result */
.result-card { border: 0; background: linear-gradient(180deg, var(--surface-2), var(--surface) 140px); }
.result-card:has(.big.neg) { background: linear-gradient(180deg, var(--neg-soft), var(--surface) 220px); }
.result-card:has(.big.pos) { background: linear-gradient(180deg, var(--pos-soft), var(--surface) 220px); }
.result-hero { text-align: center; padding: 8px 0 4px; }
.big { font-size: clamp(2.8rem, 13vw, 4.6rem); font-weight: 850; letter-spacing: -.035em; line-height: 1.05; font-variant-numeric: tabular-nums; margin: 4px 0; }
.neg { color: var(--neg); }
.pos { color: var(--pos); }
.neu { color: var(--text); }
.result-sentence { font-size: 1.1rem; margin: 8px auto 0; max-width: 44ch; }
.result-actions { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.stat .k { font-size: .8rem; color: var(--muted); }
.stat .v { font-size: 1.15rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.source-line { font-size: .8rem; color: var(--muted); margin: 16px 0 0; text-align: center; }
.enag-line { margin-top: 12px; font-size: .92rem; text-align: center; }
#breakdown h3 { margin-top: 26px; }

/* Category cards */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
@media (max-width: 400px) { .cat-grid { grid-template-columns: 1fr; } }
.cat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.cat:has(.val.neg) { background: color-mix(in srgb, var(--neg-soft) 60%, var(--surface)); border-color: color-mix(in srgb, var(--neg) 14%, var(--border)); }
.cat:has(.val.pos) { background: color-mix(in srgb, var(--pos-soft) 60%, var(--surface)); border-color: color-mix(in srgb, var(--pos) 14%, var(--border)); }
.cat .name { font-size: .85rem; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.cat .val { font-size: 1.3rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.cat .desc { font-size: .88rem; }
.cat .meter { height: 6px; background: color-mix(in srgb, var(--muted) 14%, transparent); border-radius: 99px; margin-top: 8px; overflow: hidden; position: relative; }
.cat .meter i { position: absolute; top: 0; bottom: 0; border-radius: 99px; }
.cat .meter i.neg { background: var(--neg); right: 50%; }
.cat .meter i.pos { background: var(--pos); left: 50%; }
.approx { font-size: .75rem; color: var(--muted); white-space: nowrap; }
.footnote { font-size: .8rem; color: var(--muted); margin-top: 10px; }

/* Report */
.report-head { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; justify-content: space-between; }
.report-stats { display: flex; flex-wrap: wrap; gap: 8px; font-size: .92rem; margin: 6px 0 12px; }
.report-stats:empty { display: none; }
.report-stats span { background: var(--surface-2); border-radius: 99px; padding: 4px 12px; }
.report-stats b { font-variant-numeric: tabular-nums; }
#report-position:empty { display: none; }
#report-position { font-weight: 600; }
.chart { width: 100%; }
.chart svg { display: block; width: 100%; height: auto; }
.chart .bar { fill: var(--bar); }
.chart .bar-user { fill: var(--bar-user); }
.chart .axis { stroke: var(--border); stroke-width: 1; }
.chart .zero { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .median { stroke: var(--text); stroke-width: 1.5; }
.chart text { fill: var(--muted); font-size: 11px; font-family: inherit; }
.chart .lbl-neg { fill: var(--neg); }
.chart .lbl-pos { fill: var(--pos); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .82rem; color: var(--muted); margin-top: 8px; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; margin-right: 6px; background: var(--bar); }
.swatch.user { background: var(--bar-user); }
.swatch.median { width: 12px; height: 2px; vertical-align: 3px; background: var(--text); }
.empty-report { padding: 22px; text-align: center; background: var(--surface-2); border-radius: 14px; color: var(--muted); }

/* Content */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.3em; }
.prose code, .formula { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: var(--accent-soft); color: var(--text); padding: 1px 6px; border-radius: 6px; }
.formula { display: block; padding: 12px 14px; margin: 0 0 1em; overflow-x: auto; white-space: pre; border-radius: 12px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.faq { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
details { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); padding: 0 16px; margin: 8px 0; }
.faq details { margin: 0; }
details > summary { cursor: pointer; padding: 13px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: "+"; flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-text); font-weight: 700; line-height: 1; }
details[open] > summary::after { content: "−"; }
details[open] > summary { border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.notice { border-left: 3px solid var(--accent); padding: 10px 14px; background: var(--accent-soft); border-radius: 0 12px 12px 0; font-size: .92rem; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table-wrap { overflow-x: auto; }

/* Ad slots: AdSense kapalıyken tamamen yok (yer kaplamaz, görünmez). */
.ad-slot { display: none; }
/* Beklerken yer kaplamaz ve görünmez; yalnız genişlik korunur ki AdSense alanı ölçebilsin. */
.ad-slot[data-state="pending"] { display: block; height: 0; margin: 0; overflow: hidden; visibility: hidden; }
.ad-slot[data-state="filled"]:not([hidden]) { display: block; margin: 0 0 24px; }
.ad-slot ins.adsbygoogle { display: block; }
.ad-slot ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }

/* Consent banner (yalnız AdSense etkinse) */
.consent {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; max-width: 760px; margin: 0 auto;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(30, 50, 90, .18); padding: 16px;
}
.consent p { font-size: .9rem; margin-bottom: 12px; }
.consent .btn-row { margin-top: 0; }
.consent .btn-row .btn { flex: 1 1 160px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 9px 16px; border-radius: 99px; font-size: .9rem; z-index: 60; box-shadow: var(--shadow); }

.page-404 { text-align: center; padding: 48px 0; }

/* Rapora katılma */
.join { margin-top: 12px; }
.join-msg { font-size: .88rem; color: var(--muted); }
.report-note { margin: 10px 0 0; font-size: .8rem; color: var(--muted); text-align: center; }
.btn[aria-disabled="true"] { opacity: .7; cursor: default; }
/* Turnstile (interaction-only): çoğu kullanıcıda boş; gerekirse küçük doğrulama kutusu için yer açılır. */
.ts-box { min-width: 0; }
.ts-box.ts-active { min-height: 65px; min-width: 300px; max-width: 100%; }
.join-msg { margin: 8px 0 0; font-weight: 600; text-align: center; }
.join-msg:empty { display: none; }

/* Kalem kartı kapsam notu */
.cat-note { margin-top: 6px; font-size: .8rem; color: var(--muted); border: 0; background: none; padding: 0; }
.cat-note > summary { padding: 0; font-weight: 600; width: fit-content; display: inline; text-decoration: underline dotted; text-underline-offset: 3px; }
.cat-note > summary::after { display: none; }
.cat-note[open] > summary { border: 0; margin: 0; }
.cat-note p { margin: 4px 0 0; }

/* Ana sayfadan Yöntem / SSS sayfalarına bağlantılar */
.more-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; }
@media (max-width: 560px) { .more-links { grid-template-columns: 1fr; } }
.more-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); color: var(--text); text-decoration: none; }
.more-link:hover { background: var(--accent-soft); }
.more-link > span { display: flex; flex-direction: column; min-width: 0; }
.more-link svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--accent-text); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Hızlı doldur */
.presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 12px; }
.presets-label { font-size: .85rem; color: var(--muted); font-weight: 600; }
.preset {
  font: inherit; font-size: .88rem; font-weight: 650; cursor: pointer; min-height: 36px; padding: 6px 14px;
  border-radius: 99px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text);
  display: inline-flex; align-items: center; gap: 6px;
}
.preset:hover { border-color: var(--accent); }
.preset[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); }
.preset[aria-pressed="true"]::before { content: "✓"; }
.preset-hint { margin: -4px 0 12px; font-size: .82rem; color: var(--muted); }
.preset-hint:empty { display: none; }
