/* Tek stil dosyası. Web fontu yok (hız için sistem fontu). */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #16191f;
  --muted: #5b6470;
  --border: #e2e5eb;
  --accent: #0f7a63;          /* ana renk: yeşil-turkuaz (güven) */
  --accent-2: #f2603a;        /* ikinci renk: mercan (enerji, dikkat) */
  --accent-soft: #e3f4ef;
  --accent-2-soft: #fdeae4;
  --hero-a: #e6f6f1;
  --hero-b: #fff1ea;
  --c-teal: #0f7a63;  --c-teal-bg: #e3f4ef;
  --c-amber: #b26a00; --c-amber-bg: #fff3d6;
  --c-coral: #d9472b; --c-coral-bg: #fde7e1;
  --c-violet: #6a3fd1; --c-violet-bg: #efe9fd;
  --c-blue: #1d5fd1;  --c-blue-bg: #e4edfd;
  --warn-bg: #fff6e0;
  --warn-text: #6b4e00;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 14px rgba(16, 24, 40, .06);
  --shadow-hover: 0 2px 4px rgba(16, 24, 40, .06), 0 10px 28px rgba(16, 24, 40, .10);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1216; --surface: #181c22; --text: #eceef1; --muted: #9ba4ae; --border: #2a3038;
    --accent: #4fd1ad; --accent-2: #ff8a63; --accent-soft: #163029; --accent-2-soft: #3a2119;
    --hero-a: #11231f; --hero-b: #2a1a15;
    --c-teal: #4fd1ad; --c-teal-bg: #163029; --c-amber: #f5b94a; --c-amber-bg: #33270f;
    --c-coral: #ff8a63; --c-coral-bg: #3a2119; --c-violet: #b49bff; --c-violet-bg: #261d3d;
    --c-blue: #7fb0ff; --c-blue-bg: #17243b;
    --warn-bg: #2e2712; --warn-text: #f0d48a; --shadow: none; --shadow-hover: 0 0 0 1px var(--border);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1216; --surface: #181c22; --text: #eceef1; --muted: #9ba4ae; --border: #2a3038;
  --accent: #4fd1ad; --accent-2: #ff8a63; --accent-soft: #163029; --accent-2-soft: #3a2119;
  --hero-a: #11231f; --hero-b: #2a1a15;
  --c-teal: #4fd1ad; --c-teal-bg: #163029; --c-amber: #f5b94a; --c-amber-bg: #33270f;
  --c-coral: #ff8a63; --c-coral-bg: #3a2119; --c-violet: #b49bff; --c-violet-bg: #261d3d;
  --c-blue: #7fb0ff; --c-blue-bg: #17243b;
  --warn-bg: #2e2712; --warn-text: #f0d48a; --shadow: none; --shadow-hover: 0 0 0 1px var(--border);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}
.container { max-width: 1040px; margin: 0 auto; padding: 0 1rem; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 5.2vw, 3rem); margin: .75rem 0 .75rem; font-weight: 800; }
h2 { font-size: 1.4rem; margin: 2.5rem 0 1rem; }
h3 { font-size: 1.1rem; margin: 0 0 .3rem; }
.muted { color: var(--muted); font-size: .95rem; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: var(--surface); padding: .5rem 1rem; z-index: 10; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }

/* Üst bar: sabit yükseklik (layout shift olmaz) */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.brand::before {
  content: "₺"; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-size: 1.05rem;
}
.theme-toggle {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 12px; cursor: pointer;
}

/* Giriş bölümü */
.hero {
  background:
    radial-gradient(60% 80% at 0% 0%, var(--hero-a), transparent 70%),
    radial-gradient(60% 80% at 100% 0%, var(--hero-b), transparent 70%);
  padding: 2.75rem 0 2rem;
  border-bottom: 1px solid var(--border);
}
.eyebrow {
  display: inline-block; font-size: .85rem; font-weight: 700; color: var(--accent-2);
  background: var(--accent-2-soft); padding: .25rem .75rem; border-radius: 999px;
}
.grad {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; margin: 0; }
.points { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.points li { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .97rem; }
.points svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; align-items: center; }
.chips-label { font-size: .9rem; color: var(--muted); margin-right: .25rem; }
.chips a {
  font-size: .92rem; text-decoration: none; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); padding: .4rem .85rem; border-radius: 999px; min-height: 36px;
  display: inline-flex; align-items: center;
}
.chips a:hover { border-color: var(--accent-2); color: var(--accent-2); }

/* Araç kartları */
.tool-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.tool-card {
  --c: var(--c-teal); --cbg: var(--c-teal-bg);
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.35rem 1.35rem 1.2rem; box-shadow: var(--shadow);
  border-top: 4px solid var(--c); scroll-margin-top: 80px;
  transition: box-shadow .15s ease, transform .15s ease;
}
.tool-card.c-amber { --c: var(--c-amber); --cbg: var(--c-amber-bg); }
.tool-card.c-coral { --c: var(--c-coral); --cbg: var(--c-coral-bg); }
.tool-card.c-violet { --c: var(--c-violet); --cbg: var(--c-violet-bg); }
.tool-card.c-blue { --c: var(--c-blue); --cbg: var(--c-blue-bg); }
.tool-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.tool-card:target { outline: 3px solid var(--c); outline-offset: 3px; }
.tool-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: .85rem;
  background: var(--cbg); color: var(--c); font-weight: 800; font-size: 1.3rem;
}
.tool-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tool-card p { margin: 0; color: var(--muted); }
.tool-card a { text-decoration: none; color: var(--text); }
.tool-card a::after { content: ""; position: absolute; inset: 0; } /* tüm kart tıklanır */
.badge {
  display: inline-block; margin-top: .9rem; font-size: .8rem; font-weight: 700;
  padding: .2rem .7rem; border-radius: 999px; background: var(--cbg); color: var(--c);
}

.about { max-width: 820px; }
.about h3 { margin-top: 1.25rem; }
.about p { margin: 0; color: var(--muted); }

.site-footer { margin-top: 3rem; padding: 1.5rem 0 2rem; border-top: 1px solid var(--border); }
.disclaimer { font-size: .9rem; color: var(--muted); max-width: 75ch; }

/* ---------- Hesaplama sayfaları ---------- */
body { --c: var(--c-teal); --cbg: var(--c-teal-bg); }
body.t-amber { --c: var(--c-amber); --cbg: var(--c-amber-bg); }
body.t-coral { --c: var(--c-coral); --cbg: var(--c-coral-bg); }
body.t-violet { --c: var(--c-violet); --cbg: var(--c-violet-bg); }
body.t-blue { --c: var(--c-blue); --cbg: var(--c-blue-bg); }
.hero-tool { padding: 1.5rem 0 1.5rem; }
.hero-tool h1 { font-size: clamp(1.6rem, 4.2vw, 2.4rem); }
.crumbs { font-size: .9rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.tool-layout { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); margin-top: 1.5rem; align-items: start; }
@media (min-width: 900px) { .tool-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.panel h2 { margin: 0 0 1rem; font-size: 1.15rem; }
.form-panel { border-top: 4px solid var(--c); }
.result-panel { min-height: 420px; } /* sonuç gelince sayfa zıplamasın */
.field { display: block; margin: 0 0 1rem; border: 0; padding: 0; }
.field > span, .field legend { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.field small { display: block; color: var(--muted); font-size: .85rem; margin-top: .3rem; }
input:not([type="checkbox"]):not([type="radio"]), select {
  width: 100%; min-height: 46px; padding: .55rem .75rem; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
}
input:focus, select:focus { border-color: var(--c); outline: none; box-shadow: 0 0 0 3px var(--cbg); }
.input-tl, .input-pct { position: relative; display: block; }
.input-tl input { padding-right: 2.6rem; }
.input-pct input { padding-right: 2.2rem; }
.input-tl::after, .input-pct::after { position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-tl::after { content: "TL"; }
.input-pct::after { content: "%"; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.seg { display: flex; flex-wrap: wrap; gap: .5rem; }
.seg legend { width: 100%; }
.seg label { flex: 1 1 auto; display: flex; align-items: center; gap: .45rem; padding: .55rem .8rem; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; min-height: 44px; }
.seg label:has(input:checked) { border-color: var(--c); background: var(--cbg); font-weight: 600; }
.check { display: flex; gap: .55rem; align-items: center; margin: 0 0 1rem; min-height: 44px; cursor: pointer; }
.check input, .seg input { width: 18px; height: 18px; accent-color: var(--c); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .6rem 1.1rem;
  font: inherit; font-weight: 700; border-radius: 12px; border: 1px solid transparent; cursor: pointer; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { width: 100%; background: var(--c); color: #fff; }
:root[data-theme="dark"] .btn-primary { color: #0f1216; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { color: #0f1216; } }
.btn-wa { background: #25d366; color: #0b2e17; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.cards { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 1rem; }
.card { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: .8rem .9rem; }
.card span { display: block; font-size: .85rem; color: var(--muted); }
.card strong { display: block; font-size: 1.25rem; font-variant-numeric: tabular-nums; margin-top: .15rem; }
.card.hl { background: var(--cbg); border-color: var(--c); }
.card.hl strong { color: var(--c); font-size: 1.55rem; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
caption { text-align: left; font-weight: 600; padding: .25rem 0 .5rem; color: var(--muted); }
th, td { padding: .5rem .55rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
thead th { font-size: .82rem; color: var(--muted); font-weight: 700; white-space: nowrap; }
tfoot th, tfoot td { font-weight: 700; border-top: 2px solid var(--border); }
td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.strong { font-weight: 700; }
td.src { font-size: .85rem; }
.params th[scope="row"] { font-weight: 500; }
.status { display: inline-block; font-size: .78rem; font-weight: 700; padding: .1rem .55rem; border-radius: 999px; white-space: nowrap; }
.status-verified { background: var(--c-teal-bg); color: var(--c-teal); }
.status-announced { background: var(--c-blue-bg); color: var(--c-blue); }
.status-needs_verification { background: var(--warn-bg); color: var(--warn-text); }
.note { background: var(--warn-bg); color: var(--warn-text); padding: .6rem .8rem; border-radius: 10px; font-size: .92rem; }
.error { background: var(--accent-2-soft); color: var(--c-coral); padding: .6rem .8rem; border-radius: 10px; font-weight: 600; }
.result-disclaimer { font-size: .82rem; color: var(--muted); margin: .9rem 0 0; }
.prose { max-width: 860px; }
.prose p, .how li { color: var(--text); }
.how { padding-left: 1.3rem; } .how li { margin: .4rem 0; }
.example { background: var(--surface); border-left: 4px solid var(--c); padding: .9rem 1rem; border-radius: 0 12px 12px 0; }
.faq { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: .2rem 1rem; margin: .5rem 0; }
.faq summary { cursor: pointer; font-weight: 600; padding: .7rem 0; min-height: 44px; }
.faq p { margin: 0 0 .9rem; color: var(--muted); }
.link-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; }
.link-list a { display: inline-flex; min-height: 40px; align-items: center; padding: .35rem .85rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; font-size: .93rem; }
.link-list a:hover { border-color: var(--accent-2); color: var(--accent-2); }

/* ---------- Rehber sayfaları ---------- */
.guide-answer { font-size: 1.08rem; padding: 1rem 1.1rem; border-radius: 12px; border-left: 5px solid var(--c); background: var(--cbg); margin: 1.5rem 0 0; }
.guide-answer.wait { background: var(--warn-bg); color: var(--warn-text); border-left-color: var(--c-amber); }
.guide-cta { margin: 1.5rem 0; }
.btn-inline { width: auto; text-decoration: none; }

/* ---------- Çerez izni ---------- */
.consent { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 20; max-width: 640px; margin: 0 auto;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1.1rem; box-shadow: var(--shadow-hover); }
.consent p { margin: 0 0 .75rem; font-size: .93rem; }
.consent-actions { display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; }
.btn-accept { background: var(--accent); color: #fff; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }
.link-btn[hidden] { display: none; }

/* Yazdırma / PDF: yalnızca içerik */
@media print {
  .site-header, .theme-toggle, .chips, .no-print, .consent, .guide-cta, .form-panel .btn, .link-list, .faq, .crumbs { display: none !important; }
  .tool-layout { display: block; } .panel { box-shadow: none; border-color: #999; margin-bottom: 1rem; } .result-panel { min-height: 0; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .hero { background: none; }
  .grad { color: #000; background: none; }
  .tool-card { box-shadow: none; border-color: #999; }
  a { color: #000; text-decoration: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
