/* ==========================================================
   Hesapmatik — stil dosyası
   ========================================================== */
:root {
  --brand: #4f46e5;
  --link: var(--brand);
  --brand-ink: #fff;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f1f3f9;
  --border: #e3e6ef;
  --text: #0f172a;
  --text-2: #475569;
  --muted: #5b6577;
  --good: #047857;
  --good-bg: #ecfdf5;
  --bad: #b91c1c;
  --bad-bg: #fef2f2;
  --warn: #92400e;
  --warn-bg: #fffbeb;
  --s1: #2a78d6;
  --s2: #eb6834;
  --s3: #1baf7a;
  --s4: #eda100;
  --s5: #e87ba4;
  --s6: #008300;
  --grid: #e8eaf0;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 4px 16px rgba(15, 23, 42, .06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, .18);
  --radius: 14px;
  --radius-sm: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1020;
    --surface: #131a2e;
    --surface-2: #1a2238;
    --border: #263052;
    --text: #e8ecf6;
    --text-2: #b4bdd3;
    --muted: #8e98b3;
    --link: #a5b4fc;
    --good: #34d399;
    --good-bg: rgba(52, 211, 153, .1);
    --bad: #f87171;
    --bad-bg: rgba(248, 113, 113, .1);
    --warn: #fbbf24;
    --warn-bg: rgba(251, 191, 36, .1);
    --s1: #3987e5;
    --s2: #d95926;
    --s3: #199e70;
    --s4: #c98500;
    --s5: #d55181;
    --s6: #008300;
    --grid: #232c47;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1020;
  --surface: #131a2e;
  --surface-2: #1a2238;
  --border: #263052;
  --text: #e8ecf6;
  --text-2: #b4bdd3;
  --muted: #8e98b3;
  --link: #a5b4fc;
  --good: #34d399;
  --good-bg: rgba(52, 211, 153, .1);
  --bad: #f87171;
  --bad-bg: rgba(248, 113, 113, .1);
  --warn: #fbbf24;
  --warn-bg: rgba(251, 191, 36, .1);
  --s1: #3987e5;
  --s2: #d95926;
  --s3: #199e70;
  --s4: #c98500;
  --s5: #d55181;
  --s6: #008300;
  --grid: #232c47;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
kbd {
  font: 600 11px/1 var(--font);
  padding: 4px 6px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--muted);
}
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.container-narrow { max-width: 820px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 100; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 var(--font);
  padding: 12px 18px; border-radius: 10px; border: 1px solid transparent;
  background: var(--brand); color: var(--brand-ink); cursor: pointer;
  transition: transform .06s ease, filter .15s ease, background .15s ease;
  text-decoration: none !important;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-sm { padding: 8px 12px; font-size: 13px; border-radius: 8px; }
.btn-ghost { background: transparent; color: var(--text-2); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); filter: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2); font: 500 13.5px/1.2 var(--font); cursor: pointer;
  text-decoration: none !important;
}
.chip:hover { border-color: var(--link); color: var(--link); }
.chip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Üst bilgi ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--text); letter-spacing: -.02em; text-decoration: none !important; flex-shrink: 0; }
.logo .logo-mark { width: 32px; height: 32px; color: var(--brand); }
.logo-sm { font-size: 17px; }
.logo-sm .logo-mark { width: 26px; height: 26px; }
.main-nav { display: flex; gap: 2px; margin-left: 8px; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { white-space: nowrap; padding: 8px 10px; border-radius: 8px; color: var(--text-2); font-size: 14px; font-weight: 500; text-decoration: none; }
.main-nav a:hover, .main-nav a[aria-current] { background: var(--surface-2); color: var(--text); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; min-width: 40px; justify-content: center;
  padding: 0 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text-2); cursor: pointer; font: 500 14px var(--font);
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.search-open .search-hint { color: var(--muted); min-width: 90px; text-align: left; }
.theme-toggle svg:last-child { display: none; }
:root[data-theme="dark"] .theme-toggle svg:first-child { display: none; }
:root[data-theme="dark"] .theme-toggle svg:last-child { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle svg:first-child { display: none; }
  :root:not([data-theme="light"]) .theme-toggle svg:last-child { display: block; }
}
.menu-toggle { display: none; }

@media (max-width: 1100px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 16px 16px; margin: 0; box-shadow: var(--shadow);
  }
  .main-nav.open a { padding: 12px; font-size: 15px; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 640px) {
  .search-open .search-hint, .search-open kbd { display: none; }
  .header-inner { gap: 8px; }
  .logo { font-size: 18px; }
}

/* ---------- Ana sayfa ---------- */
.hero {
  padding: 56px 0 40px; text-align: center;
  background:
    radial-gradient(900px 300px at 50% -60px, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%);
}
.hero h1 { font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3rem); max-width: 820px; margin: 0 auto .4em; letter-spacing: -.03em; }
.hero .lead { max-width: 680px; margin: 0 auto 28px; }
.lead { font-size: 1.08rem; color: var(--text-2); }
.hero-search {
  position: relative; max-width: 640px; margin: 0 auto;
}
.hero-search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.hero-search input {
  width: 100%; height: 60px; padding: 0 20px 0 54px; font-size: 17px;
  border-radius: 16px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  box-shadow: var(--shadow);
}
.hero-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent), var(--shadow); }
.hero-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.hero-tags a { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); text-decoration: none; }
.hero-tags a:hover { border-color: var(--link); color: var(--link); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 36px 0 14px; }
.section-head h2 { margin: 0; font-size: 1.3rem; }
.more { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; }
.more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.tool-grid-compact { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.tool-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); text-decoration: none !important;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.tool-card:hover { border-color: color-mix(in srgb, var(--brand) 50%, var(--border)); transform: translateY(-2px); box-shadow: var(--shadow); }
.tool-card-body { display: flex; flex-direction: column; min-width: 0; }
.tool-card-body strong { font-size: 15.5px; font-weight: 650; }
.tool-card-body span { font-size: 13.5px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tool-icon {
  --c: var(--brand);
  flex-shrink: 0; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  font-size: 22px; background: color-mix(in srgb, var(--c) 14%, transparent);
}
.tool-icon-lg { width: 60px; height: 60px; font-size: 30px; border-radius: 16px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 48px 0 8px; }
.features > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.features strong { display: block; margin-bottom: 6px; }
.features p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.home-prose { margin: 40px 0 56px; max-width: 860px; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }

/* ---------- Sayfa başlıkları ---------- */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 18px 0 10px; font-size: 13.5px; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 4px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.page-head { display: flex; gap: 16px; align-items: flex-start; margin: 6px 0 24px; }
.page-head h1 { margin-bottom: .25em; }
.page-head .lead { margin: 0; }
.cat-others { margin: 40px 0 56px; }

/* ---------- Hesaplayıcı sayfası ---------- */
.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; margin-bottom: 56px; }
@media (max-width: 1000px) { .tool-layout { grid-template-columns: minmax(0, 1fr); } }
.tool-head { display: flex; gap: 16px; align-items: flex-start; margin: 4px 0 20px; }
.tool-head h1 { margin-bottom: .2em; }
.tool-head .lead { margin: 0; }
@media (max-width: 560px) { .tool-head .tool-icon-lg { display: none; } }

.calc-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 22px; box-shadow: var(--shadow);
}
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field-wide { grid-column: 1 / -1; }
.field > label, .field > legend { font-weight: 600; font-size: 14px; color: var(--text); padding: 0; }
.field .help { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.field input[type="text"], .field input[type="date"], .field input[type="search"], .field select, .field textarea, .repeater input, .repeater select {
  width: 100%; height: 46px; padding: 0 14px; font: 500 16px var(--font); color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field textarea { height: auto; padding: 12px 14px; line-height: 1.5; resize: vertical; font-weight: 400; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field input:focus, .field select:focus, .field textarea:focus, .repeater input:focus, .repeater select:focus {
  outline: none; border-color: var(--brand); background: var(--surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent);
}
.field input[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 15%, transparent); }
.input-wrap { position: relative; }
.input-wrap.has-unit input { padding-right: 56px; }
.unit { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; font-weight: 600; pointer-events: none; }
.segmented { display: flex; flex-wrap: wrap; gap: 6px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 4px; }
.segmented label { flex: 1 1 auto; position: relative; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; text-align: center; padding: 9px 12px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.segmented input:checked + span { background: var(--surface); color: var(--link); box-shadow: var(--shadow); }
.segmented input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); }
.field-check { justify-content: flex-end; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; cursor: pointer; min-height: 46px; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); }

.repeater-head { display: flex; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 0 2px; }
.repeater-rows { display: flex; flex-direction: column; gap: 8px; }
.repeater-row { display: flex; gap: 8px; align-items: center; }
.rep-cell { min-width: 0; }
.rep-x { width: 36px; flex-shrink: 0; }
.rep-remove { height: 36px; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--muted); font-size: 20px; cursor: pointer; line-height: 1; }
.rep-remove:hover { color: var(--bad); border-color: var(--bad); }
.repeater-add { align-self: flex-start; margin-top: 4px; }
@media (max-width: 520px) {
  .repeater input, .repeater select { padding: 0 8px; font-size: 15px; }
}

.form-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.form-actions .btn-lg { flex: 1 1 200px; }

/* ---------- Sonuçlar ---------- */
.results:empty { display: none; }
.results { margin-top: 22px; padding-top: 22px; border-top: 1px dashed var(--border); animation: fade .25s ease; }
@keyframes fade { from { opacity: .4; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.result-primary-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 12px; }
.result-primary {
  display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 14%, var(--surface)), color-mix(in srgb, var(--brand) 6%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--border));
}
.r-label { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.r-value { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; word-break: break-word; font-variant-numeric: tabular-nums; }
.r-hint { font-size: 13px; color: var(--muted); }
.copy-btn { align-self: flex-start; margin-top: 6px; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 0; }
.result-item { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.result-item dt { font-size: 13px; color: var(--muted); font-weight: 600; }
.result-item dd { margin: 2px 0 0; font-size: 1.12rem; font-weight: 700; font-variant-numeric: tabular-nums; word-break: break-word; }
.result-item dd small { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.tone-good .r-value, .tone-good dd { color: var(--good); }
.tone-bad .r-value, .tone-bad dd { color: var(--bad); }
.tone-warn .r-value, .tone-warn dd { color: var(--warn); }
.result-error { background: var(--bad-bg); color: var(--bad); border-radius: 12px; padding: 14px 16px; font-weight: 500; }
.result-note { margin: 14px 0 0; font-size: 14px; color: var(--text-2); background: var(--surface-2); border-radius: 10px; padding: 10px 14px; }
.result-html { margin-top: 12px; }

.split { margin-top: 18px; }
.split h3, .table-wrap h3, .chart figcaption { font-size: 15px; margin: 0 0 10px; font-weight: 700; }
.split-bar { display: flex; gap: 2px; height: 14px; border-radius: 4px; overflow: hidden; background: var(--surface-2); }
.split-bar span { display: block; height: 100%; }
.split-legend { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.split-legend li { display: grid; grid-template-columns: 14px 1fr auto 56px; align-items: center; gap: 10px; font-size: 14.5px; }
.split-legend b { font-variant-numeric: tabular-nums; }
.split-legend em { font-style: normal; color: var(--muted); text-align: right; font-size: 13px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.s1 { background: var(--s1); fill: var(--s1); }
.s2 { background: var(--s2); fill: var(--s2); }
.s3 { background: var(--s3); fill: var(--s3); }
.s4 { background: var(--s4); fill: var(--s4); }
.s5 { background: var(--s5); fill: var(--s5); }
.s6 { background: var(--s6); fill: var(--s6); }

.chart { margin: 22px 0 0; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13.5px; color: var(--text-2); margin-bottom: 6px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-box { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: var(--grid); stroke-width: 1; }
.chart .baseline { stroke: var(--muted); stroke-width: 1; opacity: .6; }
.chart .axis { fill: var(--muted); font: 500 11px var(--font); }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .hit.on { fill: color-mix(in srgb, var(--text) 6%, transparent); }
.chart-tip {
  position: absolute; top: 0; transform: translateX(-50%); pointer-events: none; z-index: 2;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  border-radius: 10px; padding: 8px 12px; font-size: 13px; min-width: 150px; white-space: nowrap;
}
.chart-tip strong { display: block; margin-bottom: 4px; }
.chart-tip div { display: flex; align-items: center; gap: 6px; color: var(--text-2); }
.chart-tip b { color: var(--text); font-variant-numeric: tabular-nums; }
.tip-total { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 4px; }

.table-wrap { margin-top: 22px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.table-wrap.collapsed .table-scroll { max-height: 470px; overflow-y: hidden; position: relative; }
.table-wrap.collapsed .table-scroll::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(transparent, var(--surface)); pointer-events: none; }
.table-toggle { margin-top: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { padding: 9px 12px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--border); }
th:first-child, td:first-child { text-align: left; }
thead th { position: sticky; top: 0; background: var(--surface-2); font-weight: 700; font-size: 13px; color: var(--text-2); }
tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface-2) 45%, transparent); }
tfoot td { font-weight: 700; background: var(--surface-2); border-bottom: 0; }
.prose table th, .prose table td { white-space: normal; }

.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.embed-credit { display: none; }

/* ---------- Öne çıkan yanıt, kaynaklar, rehberler ---------- */
.ozet { position: relative; margin: 0 0 1.6em; padding: 18px 20px 16px; border-radius: var(--radius); background: color-mix(in srgb, var(--brand) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--border)); }
.ozet p { margin: 0; font-size: 16.5px; }
.ozet strong { display: block; margin-bottom: 4px; font-size: 17px; }
.ozet-etiket { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--link); margin-bottom: 6px; }
.kaynaklar { margin-top: 36px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.kaynaklar h2 { font-size: 1.1rem; }
.kaynaklar ul { margin: 0 0 10px; padding-left: 1.2em; }
.kaynaklar li { margin-bottom: 4px; font-size: 14.5px; }
.kaynaklar p { margin: 0; font-size: 13.5px; color: var(--text-2); }
.cta-kart { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); margin-bottom: 8px; }
.cta-kart p { margin: 0; color: var(--text-2); flex: 1 1 260px; }
.cta-kart strong { display: block; color: var(--text); font-size: 17px; margin-bottom: 2px; }
.prose table td.vurgu, .prose table th.vurgu { background: color-mix(in srgb, var(--brand) 9%, transparent); font-weight: 700; }
.rehber-grup { margin: 8px 0 32px; }

/* ---------- İş ortaklığı kutusu ---------- */
.promo {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 18px; padding: 16px 18px; border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--border));
  background: color-mix(in srgb, var(--brand) 6%, var(--surface));
}
.promo > div { flex: 1 1 260px; min-width: 0; }
.promo strong { display: block; font-size: 16px; }
.promo p { margin: 2px 0 0; color: var(--text-2); font-size: 14.5px; }
.promo-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.promo .btn svg { width: 16px; height: 16px; }
.embed .promo { display: none; }

/* ---------- Metin içeriği ---------- */
.prose a, .faq-item a, .kaynaklar a, .updated a, .result-note a, .static-page a, .cta-kart p a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.sonuc-baslik { font-size: 15px; margin: 0 0 10px; font-weight: 700; }
.prose { margin-top: 36px; font-size: 16.5px; }
.prose h2 { margin-top: 1.6em; font-size: 1.4rem; }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose table { margin: 0 0 1.2em; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: block; overflow-x: auto; }
.prose blockquote, .prose .formula {
  margin: 0 0 1.2em; padding: 14px 18px; border-left: 4px solid var(--brand); border-radius: 0 12px 12px 0;
  background: var(--surface-2); font-size: 15.5px;
}
.prose .formula { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 14.5px; overflow-x: auto; }
.prose .tip { padding: 14px 18px; border-radius: 12px; background: var(--good-bg); margin: 0 0 1.2em; }
.prose .warn { padding: 14px 18px; border-radius: 12px; background: var(--warn-bg); margin: 0 0 1.2em; }
.prose code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; font-size: .92em; }

.faq { margin-top: 40px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; }
.faq-item summary { cursor: pointer; padding: 14px 44px 14px 18px; font-weight: 650; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--muted); font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item > div { padding: 0 18px 16px; color: var(--text-2); }
.faq-item > div p:last-child { margin-bottom: 0; }

.embed-box { margin-top: 40px; padding: 20px; border-radius: var(--radius); border: 1px dashed var(--border); background: var(--surface); }
.embed-box h2 { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; }
.embed-box h2 svg { width: 22px; height: 22px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.embed-box p { color: var(--text-2); font-size: 14.5px; }
.embed-code { display: flex; flex-direction: column; gap: 10px; }
.embed-code code { display: block; font: 12.5px/1.5 ui-monospace, Consolas, monospace; background: var(--surface-2); border-radius: 10px; padding: 12px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; color: var(--text-2); }
.embed-code .btn { align-self: flex-start; }
.embed-code .btn svg { width: 16px; height: 16px; }
.updated { margin-top: 28px; font-size: 13.5px; color: var(--muted); }

.sidebar { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 1000px) { .sidebar { position: static; } }
.side-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.side-box h2 { font-size: 15px; margin-bottom: 10px; }
.tool-list { display: flex; flex-direction: column; gap: 6px; }
.tool-list .tool-card { padding: 8px 10px; border: 0; border-radius: 10px; gap: 10px; }
.tool-list .tool-card:hover { background: var(--surface-2); transform: none; box-shadow: none; }
.tool-list .tool-icon { width: 34px; height: 34px; font-size: 17px; border-radius: 9px; }
.tool-list .tool-card-body strong { font-size: 14.5px; font-weight: 600; }
.side-box .more { margin-top: 8px; }

/* ---------- Reklam alanları ---------- */
.ad { margin: 28px 0; text-align: center; min-height: 100px; }
.prose + .ad { margin-top: 8px; }
.ad + .prose { margin-top: 0; }
.ad-label { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.ad-placeholder { display: grid; place-items: center; min-height: 120px; border: 2px dashed var(--border); border-radius: 12px; color: var(--muted); font-size: 13px; background: repeating-linear-gradient(45deg, transparent, transparent 10px, var(--surface-2) 10px, var(--surface-2) 20px); }
.sidebar .ad { margin: 0; min-height: 250px; }
.sidebar .ad-placeholder { min-height: 600px; }

/* ---------- Statik sayfalar ---------- */
.static-page { margin: 8px 0 64px; }
.static-page h1 { margin-bottom: .8em; }
.notfound { text-align: center; padding: 48px 16px 72px; }
.notfound .big { font-size: 96px; font-weight: 900; line-height: 1; margin: 0; color: var(--brand); letter-spacing: -.04em; }
.notfound .big { color: var(--link); }
.notfound .tool-grid { margin-top: 32px; text-align: left; }
.contact-card { display: grid; gap: 12px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-bottom: 24px; }

/* ---------- Alt bilgi ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 40px 0 28px; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; }
.footer-grid h3 { font-size: 14px; margin-bottom: 10px; }
.footer-grid h3 a { color: var(--text); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-grid li a { color: var(--text-2); font-size: 14px; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 28px; padding-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }
.footer-links a { color: var(--text-2); }
.copyright { width: 100%; margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- Arama penceresi ---------- */
.search-modal { position: fixed; inset: 0; z-index: 90; display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; }
.search-backdrop { position: absolute; inset: 0; background: rgba(2, 6, 23, .55); backdrop-filter: blur(3px); }
.search-dialog { position: relative; width: 100%; max-width: 620px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); overflow: hidden; }
.search-field { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--border); }
.search-field svg { width: 22px; height: 22px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex-shrink: 0; }
.search-field input { flex: 1; height: 58px; border: 0; background: transparent; font: 500 17px var(--font); color: var(--text); outline: none; min-width: 0; }
.search-field kbd { cursor: pointer; }
.search-results { list-style: none; margin: 0; padding: 8px; max-height: 60vh; overflow-y: auto; }
.search-results a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; color: var(--text); text-decoration: none; }
.search-results a span:last-child { display: flex; flex-direction: column; min-width: 0; }
.search-results small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-results li[aria-selected="true"] a, .search-results a:hover { background: var(--surface-2); }
.search-results .tool-icon { width: 38px; height: 38px; font-size: 19px; border-radius: 10px; }
.search-empty { padding: 24px; text-align: center; color: var(--muted); }

/* ---------- Çerez bildirimi & toast ---------- */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 560px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; font-size: 14px;
}
.consent p { margin: 0; color: var(--text-2); }
.consent-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.consent .btn { padding: 10px 16px; font-size: 14px; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 40px); opacity: 0; z-index: 95;
  background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
  transition: all .2s ease; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Gömülü (iframe) modu ---------- */
.embed body { background: transparent; }
.embed .site-header, .embed .site-footer, .embed .breadcrumb, .embed .prose, .embed .faq, .embed .embed-box,
.embed .updated, .embed .sidebar, .embed .ad, .embed .consent, .embed .tool-head .lead, .embed .skip-link, .embed .tool-head .tool-icon { display: none !important; }
.embed .tool-layout { display: block; margin: 0; }
.embed .container { padding: 0; }
.embed .tool-head { margin: 0 0 12px; }
.embed .tool-head h1 { font-size: 1.3rem; }
.embed .calc-card { box-shadow: none; }
.embed .embed-credit { display: block; text-align: right; font-size: 12.5px; margin-top: 14px; color: var(--muted); }

/* ---------- Yazdırma ---------- */
@media print {
  .site-header, .site-footer, .sidebar, .ad, .share-bar, .form-actions, .embed-box, .faq, .consent, .toast, .breadcrumb, .prose, .search-modal, .table-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  .calc-card { box-shadow: none; border: 1px solid #ccc; }
  .tool-layout { display: block; }
  .table-wrap.collapsed .table-scroll { max-height: none; overflow: visible; }
  .table-wrap.collapsed .table-scroll::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
