/* ============================================================
   Değerini Öğren — ortak stil dosyası
   Renk paleti sahibinden.com'un kendi "sui" tasarım sisteminden
   alınmıştır (--sui-sahibinden-yellow #ffe800, --sui-primary
   #1064bc, --sui-body-color #111214, vb.) Font yığını da
   sahibinden'in gerçek sistem-fontu yedeğiyle birebir aynıdır.
   ============================================================ */

:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F4F4F4;
  --ink: #111214;
  --ink-muted: #565C63;
  --line: #DDDEE0;
  --accent: #FFE800;
  --accent-ui: #FFC700;
  --accent-ink: #111214;
  --primary: #1064BC;
  --primary-ink: #FFFFFF;
  --good: #1F9670;
  --warn: #FE7A18;
  --danger: #FF2020;
  --good-bg: #E9F5F1;
  --warn-bg: #FFF2E8;
  --danger-bg: #FFE9E9;
  --radius-sm: 4px;
  --radius: 6px;
  --radius-md: 8px;
  --max: 1120px;
  --shadow: 0 1px 2px rgba(17,18,20,.06), 0 8px 24px rgba(17,18,20,.05);
  --shadow-md: 0 4px 10px rgba(17,18,20,.08), 0 16px 32px rgba(17,18,20,.07);

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

:root[data-theme="dark"] {
  --bg: #111214;
  --surface: #1B1D20;
  --surface-2: #222528;
  --ink: #FFFFFF;
  --ink-muted: #A9ACAF;
  --line: #34373B;
  --accent: #FFE800;
  --accent-ui: #FFC700;
  --accent-ink: #111214;
  --primary: #4083C9;
  --primary-ink: #111214;
  --good: #4CAB8D;
  --warn: #FE9546;
  --danger: #FF4D4D;
  --good-bg: #173229;
  --warn-bg: #3A2711;
  --danger-bg: #3A1414;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 28px rgba(0,0,0,.35);
  --shadow-md: 0 4px 14px rgba(0,0,0,.45), 0 20px 40px rgba(0,0,0,.4);
}

* { box-sizing: border-box; }

html { background: var(--bg); scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  transition: background-color .2s ease, color .2s ease;
}

main { flex: 1 0 auto; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; display: block; }
code {
  font-family: var(--font-mono);
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: .1em .4em;
  border-radius: var(--radius-sm);
  font-size: .9em;
}
::selection { background: var(--accent); color: var(--accent-ink); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ============ Scroll progress ============ */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--accent); z-index: 300; transition: width .1s ease-out;
}

/* ============ Nav ============ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
[data-theme="dark"] .nav { background: rgba(17,18,20,.82); }

.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

.logo { display: flex; align-items: baseline; gap: 2px; font-weight: 800; font-size: 19px; letter-spacing: -.01em; color: var(--ink); }
.logo .hl { position: relative; color: var(--ink); }
.logo .hl::before {
  content: ""; position: absolute; left: -3px; right: -3px; bottom: .06em; height: .4em;
  background: var(--accent); z-index: -1; transform: rotate(-1deg);
}

.nav-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.nav-links a { font-size: 13.5px; font-weight: 600; color: var(--ink-muted); white-space: nowrap; border-bottom: 2px solid transparent; padding-bottom: 3px; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active { border-color: var(--accent); }

.nav-right { display: flex; align-items: center; gap: 12px; }

.theme-toggle { width: 44px; height: 24px; border-radius: 999px; border: none; background: var(--surface-2); position: relative; cursor: pointer; padding: 0; flex-shrink: 0; }
.theme-toggle-track { position: absolute; inset: 0; border-radius: 999px; border: 1px solid var(--line); }
.theme-toggle-thumb {
  position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .25s ease;
}
[data-theme="dark"] .theme-toggle-thumb { transform: translateX(20px); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

@media (max-width: 980px) {
  .menu-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--bg);
    border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start;
    gap: 0; max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 80vh; overflow-y: auto; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 24px; width: 100%; border-top: 1px solid var(--line); border-bottom: none; }
  .nav-links a.active { border-left: 3px solid var(--accent); background: var(--surface-2); }
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-md); font-size: 15px; font-weight: 700;
  border: 1px solid transparent; cursor: pointer; transition: filter .15s ease, transform .15s ease;
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { filter: brightness(1.05); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

/* ============ Hero ============ */
.hero { position: relative; padding: 76px 24px 56px; overflow: hidden; }
.hero-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: var(--surface-2); color: var(--ink-muted);
  font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; border: 1px solid var(--line);
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; margin: 0 0 16px; text-wrap: balance; }
.hero h1 .hl { position: relative; white-space: nowrap; }
.hero h1 .hl::before { content: ""; position: absolute; left: -.06em; right: -.08em; bottom: .06em; height: .32em; background: var(--accent); z-index: -1; transform: rotate(-1deg); }
.hero-sub { color: var(--ink-muted); font-size: 1.08rem; line-height: 1.6; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============ Section head ============ */
.section { padding: 60px 24px; }
.section-soft { background: var(--surface-2); }
.section-head { max-width: 640px; margin: 0 auto 36px; }
.section-head.center { text-align: center; }
.eyebrow { color: var(--ink-muted); font-weight: 700; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px; }
.section-head h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 800; letter-spacing: -.01em; margin: 0 0 10px; text-wrap: balance; }
.section-head p { color: var(--ink-muted); font-size: 1rem; margin: 0; }

/* ============ Feature grid (index) ============ */
.grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow); }
.card:hover { border-color: var(--primary); }
.card .card-icon { width: 42px; height: 42px; border-radius: var(--radius); background: var(--surface-2); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.card .card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 6px; }
.card p { color: var(--ink-muted); font-size: .92rem; margin: 0; line-height: 1.55; }
.card .card-link { display: inline-block; margin-top: 12px; color: var(--primary); font-weight: 700; font-size: .88rem; }

/* ============ Budget quick search (hero) ============ */
.quick-search {
  max-width: 680px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md); padding: 20px; display: flex; gap: 10px; flex-wrap: wrap;
}
.quick-search select, .quick-search input {
  flex: 1; min-width: 140px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font-size: 14.5px; font-family: var(--font-body);
}
.quick-search select:focus, .quick-search input:focus { outline: none; border-color: var(--primary); }

/* ============ Filter panel (arac-bul) ============ */
.filter-panel {
  max-width: var(--max); margin: 0 auto 28px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-md); box-shadow: var(--shadow); padding: 22px 24px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; align-items: end;
}
.field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-muted); margin-bottom: 7px; text-transform: uppercase; letter-spacing: .03em; }
.field select, .field input {
  width: 100%; padding: 11px 12px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font-size: 14.5px; font-family: var(--font-body);
}
.field select:focus, .field input:focus { outline: none; border-color: var(--primary); }
.filter-count { max-width: var(--max); margin: 0 auto 18px; color: var(--ink-muted); font-size: .9rem; }
.filter-count b { color: var(--ink); font-family: var(--font-mono); font-weight: 500; }

/* ============ Result cards (arac-bul list) ============ */
.result-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.result-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
}
.result-top { background: var(--accent); color: var(--accent-ink); padding: 3px 16px; font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.result-body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.result-body h3 { margin: 0; font-size: 1.05rem; font-weight: 700; }
.result-body .r-sub { color: var(--ink-muted); font-size: .82rem; }
.result-price { font-family: var(--font-mono); font-weight: 500; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.result-price .sep { color: var(--ink-muted); font-size: .75em; padding: 0 .15em; }
.result-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: .72rem; font-weight: 600; background: var(--surface-2); color: var(--ink-muted); border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; }
.result-foot { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.result-foot a { color: var(--primary); font-weight: 700; font-size: .88rem; }
.result-empty { max-width: var(--max); margin: 0 auto; text-align: center; padding: 60px 20px; color: var(--ink-muted); }

/* ============ Favori butonu ============ */
.result-card { position: relative; }
.fav-btn {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-muted); cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1;
  box-shadow: var(--shadow); transition: color .15s ease, transform .15s ease;
}
.fav-btn:hover { transform: scale(1.1); }
.fav-btn.active { color: var(--accent-ui); border-color: var(--accent-ui); }
.fav-btn-inline { position: static; }

/* ============ Badge ============ */
.badge {
  font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  background: var(--surface-2); color: var(--ink-muted); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 999px; white-space: nowrap; display: inline-block;
}

/* ============ Report card (arac-detay) ============ */
.report { max-width: 820px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-md); overflow: hidden; }
.report-top { background: var(--accent); color: var(--accent-ink); padding: 4px 24px; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.report-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 24px 26px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.report-header h1, .report-header h3 { font-weight: 800; font-size: 1.6rem; margin: 0; }
.report-header .sub { color: var(--ink-muted); font-size: .92rem; margin-top: 2px; }

.price-block { padding: 22px 26px; border-bottom: 1px solid var(--line); }
.price-num { font-family: var(--font-mono); font-weight: 500; font-size: clamp(1.7rem, 4vw, 2.4rem); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.price-num .sep { color: var(--ink-muted); font-size: .75em; padding: 0 .2em; }
.price-caption { color: var(--ink-muted); font-size: .84rem; margin-top: 4px; }

.km-band { padding: 18px 26px 22px; border-bottom: 1px solid var(--line); }
.km-band-label { display: flex; justify-content: space-between; font-size: .8rem; color: var(--ink-muted); margin-bottom: 8px; }
.km-track { position: relative; height: 10px; background: var(--surface-2); border-radius: var(--radius); border: 1px solid var(--line); }
.km-fill { position: absolute; top: -1px; bottom: -1px; background: var(--accent); border-radius: var(--radius); border: 1px solid var(--line); }
.km-ticks { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .7rem; color: var(--ink-muted); margin-top: 6px; }

.report-grid { display: grid; grid-template-columns: 1.1fr .9fr; }
.report-grid > div { padding: 22px 26px; }
.report-grid > div:first-child { border-right: 1px solid var(--line); }
.panel-title { font-size: .92rem; font-weight: 700; margin: 0 0 14px; }

table.opts { width: 100%; border-collapse: collapse; font-size: .86rem; }
table.opts th { text-align: left; font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-muted); font-weight: 700; padding: 0 8px 8px 0; border-bottom: 1px solid var(--line); }
table.opts td { padding: 9px 8px 9px 0; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: .8rem; }
table.opts tr:last-child td { border-bottom: none; }

.chroniclist { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.chroniclist li { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; }
.dot { flex: none; width: 9px; height: 9px; border-radius: 50%; margin-top: .45em; }
.dot.warn { background: var(--warn); }
.dot.good { background: var(--good); }
.dot.danger { background: var(--danger); }

.gauge-label { display: flex; justify-content: space-between; font-size: .78rem; color: var(--ink-muted); margin-bottom: 6px; }
.gauge-track { position: relative; height: 8px; border-radius: var(--radius); background: linear-gradient(90deg, var(--good) 0 33%, var(--warn) 33% 66%, var(--danger) 66% 100%); opacity: .88; }
.gauge-marker { position: absolute; top: -4px; width: 2px; height: 16px; background: var(--ink); }
.gauge-caption { font-size: .8rem; color: var(--ink-muted); margin-top: 8px; }
.gauge-caption b { color: var(--ink); font-family: var(--font-mono); font-weight: 500; }

.report-footer { padding: 16px 26px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: .8rem; color: var(--ink-muted); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 720px) {
  .report-grid { grid-template-columns: 1fr; }
  .report-grid > div:first-child { border-right: none; border-bottom: 1px solid var(--line); }
}

/* ============ External listing link box ============ */
.external-box {
  max-width: 820px; margin: 20px auto 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 18px 22px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; box-shadow: var(--shadow);
}
.external-box p { margin: 0; color: var(--ink-muted); font-size: .88rem; max-width: 46ch; }
.external-box strong { color: var(--ink); }

/* ============ Compare (karsilastir) ============ */
.compare-picker { max-width: var(--max); margin: 0 auto 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; align-items: center; }
.compare-picker select { width: 100%; padding: 13px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 15px; }
.compare-slot { display: flex; gap: 8px; align-items: center; }
.compare-slot .slot-remove { flex-shrink: 0; width: 38px; height: 46px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--ink-muted); cursor: pointer; font-size: 18px; }
.compare-slot .slot-remove:hover { border-color: var(--danger); color: var(--danger); }
.compare-actions { max-width: var(--max); margin: 0 auto 28px; display: flex; justify-content: center; }
@media (max-width: 640px) { .compare-picker { grid-template-columns: 1fr; } }

.compare-table-wrap { max-width: var(--max); margin: 0 auto; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow); }
table.compare { width: 100%; border-collapse: collapse; background: var(--surface); min-width: 520px; }
table.compare th, table.compare td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; font-size: .9rem; }
table.compare thead th { background: var(--surface-2); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-muted); }
table.compare tbody th { color: var(--ink-muted); font-weight: 600; font-size: .82rem; white-space: nowrap; }
table.compare td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
table.compare tr:last-child td, table.compare tr:last-child th { border-bottom: none; }

/* ============ Guide items (butce-rehberi, kronik-arizalar) ============ */
.guide-item { max-width: 820px; margin: 0 auto 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 26px; box-shadow: var(--shadow); }
.guide-item .g-tag { display: inline-block; background: var(--surface-2); color: var(--ink-muted); font-size: .68rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; margin-bottom: 12px; letter-spacing: .04em; text-transform: uppercase; border: 1px solid var(--line); }
.guide-item h3 { margin: 0 0 8px; font-size: 1.1rem; font-weight: 700; }
.guide-item p { color: var(--ink-muted); font-size: .93rem; margin: 0 0 10px; line-height: 1.6; }
.guide-item ul { color: var(--ink-muted); font-size: .9rem; padding-left: 18px; list-style: disc; }
.guide-item ul li { margin-bottom: 5px; }
.guide-item .price-tier { font-family: var(--font-mono); font-size: 1.1rem; font-weight: 500; color: var(--ink); margin: 8px 0; }

/* ============ FAQ ============ */
.faq-item { max-width: 780px; margin: 0 auto 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow); }
.faq-item summary { padding: 18px 22px; cursor: pointer; font-weight: 700; font-size: .96rem; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--primary); font-size: 1.3rem; font-weight: 400; margin-left: 16px; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding: 0 22px 20px; color: var(--ink-muted); font-size: .92rem; line-height: 1.6; margin: 0; }

/* ============ Disclaimer ============ */
.disclaimer-box { max-width: 780px; margin: 0 auto 36px; background: var(--warn-bg); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px 20px; color: var(--ink-muted); font-size: .85rem; line-height: 1.6; }
.disclaimer-box strong { color: var(--ink); }

/* ============ CTA ============ */
.cta { background: var(--surface-2); border-top: 1px solid var(--line); padding: 56px 24px; text-align: center; }
.cta h2 { font-size: 1.4rem; font-weight: 800; margin: 0 0 10px; }
.cta p { color: var(--ink-muted); margin: 0 0 24px; }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--line); padding: 36px 24px; text-align: center; color: var(--ink-muted); font-size: .84rem; }
.footer .foot-links { display: flex; justify-content: center; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.footer .foot-links a { color: var(--ink-muted); font-weight: 600; }
.footer .foot-links a:hover { color: var(--primary); }
.footer .disclaimer { max-width: 640px; margin: 12px auto 0; font-size: .76rem; opacity: .85; }

/* ============ Reveal animation ============ */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ 404 ============ */
.notfound { text-align: center; padding: 100px 24px; }
.notfound .code { font-family: var(--font-mono); font-size: 4rem; font-weight: 500; color: var(--accent-ui); }
