/* lgspuanhesaplama.net.tr — tasarım sistemi
   Renkler pvp-serverlar.com paletinden: lacivert mürekkep, turuncu vurgu, açık mavi-gri zemin. */

:root {
  --ink: #10203C;
  --ink-2: #2F4F7F;
  --muted: #5D6B82;
  --faint: #8695AA;
  --bg: #F3F7FC;
  --surface: #FFFFFF;
  --soft: #EDF2F8;
  --soft-2: #F6F9FD;
  --line: #E3EBF4;
  --orange: #FD6A22;
  --orange-ink: #C9420A;
  --orange-tint: #FFF3EA;
  --orange-tint-2: #FFE3D0;
  --green: #2FAE7A;
  --red: #E2453A;
  --deep: #04142F;
  --grad-orange: linear-gradient(135deg, #FF9145 0%, #FD6A22 55%, #F0530F 100%);
  --grad-navy: linear-gradient(135deg, #123061 0%, #0D2149 60%, #081B3A 100%);

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --shadow: 0 1px 2px rgba(16, 32, 60, .04), 0 12px 32px -18px rgba(16, 32, 60, .18);
  --shadow-orange: 0 12px 24px -12px rgba(240, 83, 15, .55);

  --font-display: "Poppins", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}
body > main { flex: 1 0 auto; }

img { max-width: 100%; height: auto; }

[hidden] { display: none !important; }

a { color: inherit; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

.icon { width: 20px; height: 20px; flex: none; }
.icon-sm { width: 16px; height: 16px; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-sm);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Üst bant ve menü ---------- */

.topbar { background: var(--ink); color: rgba(255, 255, 255, .72); font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.topbar-inner > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.topbar-inner .icon { color: var(--orange); }
.topbar-links { display: flex; gap: 0; }
.topbar-links > * { padding: 0 12px; border-left: 1px solid rgba(255, 255, 255, .16); text-decoration: none; }
.topbar-links > *:first-child { border-left: 0; }
.topbar-links a:hover { color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--grad-orange); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: .02em;
  box-shadow: var(--shadow-orange);
}
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; color: var(--ink); }
.brand-name span { color: var(--faint); font-weight: 600; }
.brand-light .brand-name { color: #fff; }
.brand-light .brand-name span { color: rgba(255, 255, 255, .5); }

.main-nav { display: flex; gap: 4px; margin-right: auto; }
.main-nav a {
  position: relative; padding: 8px 12px; border-radius: var(--r-sm);
  font-weight: 600; font-size: 15px; color: var(--muted); text-decoration: none; white-space: nowrap;
}
.main-nav a:hover { color: var(--ink); background: var(--soft-2); }
.main-nav a.is-active { color: var(--ink); }
.main-nav a.is-active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -15px; height: 3px;
  border-radius: 3px 3px 0 0; background: var(--orange);
}

/* ---------- Butonlar ---------- */

.btn {
  display: inline-flex; white-space: nowrap; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px; border-radius: var(--r);
  font: 700 15px/1 var(--font-body); text-decoration: none; cursor: pointer;
  border: 0; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn-sm { height: 40px; padding: 0 14px; font-size: 14px; border-radius: var(--r-sm); }
.btn-primary { background: var(--grad-orange); color: #fff; box-shadow: var(--shadow-orange); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 28px -12px rgba(240, 83, 15, .65); }
.btn-primary:active { transform: translateY(0); }
.btn-outline { background: #fff; color: var(--ink); border: 1px solid var(--line); font-weight: 600; }
.btn-outline:hover { border-color: #CBD8E8; background: var(--soft-2); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--ink); background: var(--soft); }
.btn-light { background: #fff; color: var(--orange-ink); }
.btn-light:hover { transform: translateY(-1px); }

.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }

.icon-button {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--soft); border: 0; color: var(--muted); cursor: pointer;
}
.icon-button:hover { color: var(--ink); }

/* ---------- Kartlar ---------- */

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow);
}

.section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.section-head h2 { font-size: 20px; font-weight: 700; }
.section-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.section-icon {
  display: grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--grad-orange); color: #fff;
}

.page { padding: 24px 0 56px; }
.page > .container > * + * { margin-top: 24px; }

.ad-slot { text-align: center; }

/* ---------- Hero (ana sayfa) ---------- */

.hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start;
  padding: 44px;
  background: var(--grad-navy); color: #fff;
  border-radius: var(--r-xl);
}
.hero::before {
  /* turuncu ışık: referanstaki ay parlamasının karşılığı */
  content: ""; position: absolute; z-index: -1;
  width: 520px; height: 520px; left: -180px; top: -260px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(253, 106, 34, .28), rgba(253, 106, 34, 0));
}

.hero-copy { position: relative; display: flex; flex-direction: column; gap: 20px; min-height: 100%; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.pill .pill-dot { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #2F6FD0; }
.pill .icon { width: 13px; height: 13px; }

.hero-title { font-size: clamp(34px, 4.6vw, 52px); font-weight: 800; letter-spacing: -0.025em; }
.hero-title .accent { display: block; color: var(--orange); }
.hero-lead { margin: 0; max-width: 34em; color: rgba(255, 255, 255, .72); font-size: 16px; }

.rules { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rules li {
  padding: 6px 12px; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  font-size: 13px; color: rgba(255, 255, 255, .8);
}
.rules strong { color: #fff; font-weight: 700; }

/* Optik form deseni: imza öğe */
.optik {
  margin-top: auto; padding-top: 8px;
  display: grid; grid-template-columns: auto repeat(4, 18px); gap: 7px 9px; align-items: center; align-self: flex-start;
  font: 600 11px/1 var(--font-body); color: rgba(255, 255, 255, .38);
}
.optik span { text-align: right; padding-right: 2px; }
.optik i {
  display: block; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .22);
}
.optik i.on { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 3px rgba(253, 106, 34, .18); }

/* Sonuç (hesaplama sonrası hero sol sütun) */
.result-eyebrow { font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.hero.is-result .hero-copy { align-self: center; min-height: 0; gap: 18px; }
.result-score {
  margin: 0;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(52px, 7vw, 80px); line-height: 1; letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.result-score small { font-size: .38em; font-weight: 700; color: rgba(255, 255, 255, .55); letter-spacing: 0; margin-left: 6px; }
.result-chip {
  display: inline-flex; align-items: baseline; gap: 8px; align-self: flex-start;
  padding: 10px 16px; border-radius: var(--r);
  background: var(--grad-orange); box-shadow: var(--shadow-orange);
  font-weight: 700; font-size: 15px;
}
.result-chip b { font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.result-note { margin: 0; color: rgba(255, 255, 255, .72); }
.result-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0; }
.result-stats div { padding: 10px 12px; border-radius: var(--r); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); }
.result-stats dt { font-size: 12px; color: rgba(255, 255, 255, .6); }
.result-link { align-self: flex-start; }
.result-stats dd { margin: 2px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; }

/* ---------- Hesaplama formu ---------- */

.calc { position: relative; padding: 24px; color: var(--ink); background: var(--surface); border-radius: var(--r-lg); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45); }
.calc-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.calc-title h2 { font-size: 18px; font-weight: 700; }
.calc-title p { margin: 0; font-size: 13px; color: var(--faint); }

.calc-grid { --cols: minmax(0, 1.7fr) minmax(52px, 1fr) minmax(52px, 1fr) minmax(36px, .6fr) minmax(44px, .75fr); }
.calc-head, .calc-row { display: grid; grid-template-columns: var(--cols); gap: 8px; align-items: center; }
.calc-head { padding: 0 0 8px; font-size: 12px; font-weight: 600; color: var(--faint); text-align: center; }
.calc-head span:first-child { text-align: left; }
.calc-head .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
.dot-green { background: var(--green); }
.dot-red { background: var(--red); }

.calc-group { margin: 10px 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-ink); }
.calc-group span { color: var(--faint); font-weight: 600; }

.calc-row { padding: 6px 0; border-top: 1px solid var(--soft); }
.calc-subject { min-width: 0; }
.calc-subject strong { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calc-subject small { display: block; font-size: 12px; color: var(--faint); }
.calc-subject .short { display: none; }

.calc input {
  width: 100%; min-width: 0; height: 44px; margin: 0; padding: 0 6px;
  font: 600 16px/1 var(--font-body); color: var(--ink); text-align: center; font-variant-numeric: tabular-nums;
  background: var(--soft-2); border: 1px solid var(--line); border-radius: 10px;
  -moz-appearance: textfield; appearance: textfield;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.calc input::-webkit-outer-spin-button, .calc input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc input::placeholder { color: #B6C2D2; }
.calc input:hover { border-color: #CBD8E8; }
.calc input:focus { outline: none; background: #fff; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(253, 106, 34, .15); }
.calc input[readonly] { background: transparent; border-color: transparent; box-shadow: none; padding: 0; cursor: default; }
.calc input[readonly].net { font-weight: 700; }
.calc input[readonly].bos { color: var(--faint); font-weight: 500; }

.calc-total { margin: 6px -10px 0; padding: 8px 10px; border: 0; border-radius: var(--r); background: var(--soft); }
.calc-total .calc-subject strong { font-weight: 700; }
.calc-total input[readonly] { font-weight: 700; color: var(--ink); }

.calc-actions { display: flex; gap: 10px; margin-top: 18px; }
.calc-actions .btn-primary { flex: 1; height: 52px; font-size: 16px; }
.calc-fineprint { margin: 12px 0 0; font-size: 12px; color: var(--faint); }

/* ---------- Ana sayfa alt bölümler ---------- */

.split { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 24px; align-items: start; }
.split-main, .split > aside { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.split.is-wide { grid-template-columns: minmax(0, 1fr); }
.split.is-wide > aside { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }

.years { padding: 24px; }
.year-list { list-style: none; margin: 0; padding: 0; }
.year-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 84px; gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--soft); }
.year-row:first-child { border-top: 0; }
.year-label { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.year-label em { display: block; font-family: var(--font-body); font-style: normal; font-weight: 600; font-size: 11px; color: var(--orange-ink); }
.year-track { position: relative; height: 10px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.year-fill {
  position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit;
  background: linear-gradient(90deg, #2F4F7F, #123061);
  animation: fill .9s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: calc(var(--i) * 70ms);
}
.year-row.is-best .year-fill { background: var(--grad-orange); }
.year-pct { text-align: right; font-family: var(--font-display); font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.year-pct small { display: block; font-family: var(--font-body); font-size: 11px; font-weight: 600; color: var(--faint); }
.year-row.is-best .year-pct { color: var(--orange-ink); }
.years-foot { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
@keyframes fill { from { width: 0; } }

.steps { padding: 24px; }
.step-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step-list li { padding: 18px; border-radius: var(--r); background: var(--soft-2); border: 1px solid var(--line); counter-increment: step; }
.step-list li::before {
  content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 12px;
  border-radius: 8px; background: var(--orange-tint); color: var(--orange-ink);
  font-family: var(--font-display); font-weight: 800; font-size: 14px;
}
.step-list h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.step-list p { margin: 0; font-size: 14px; color: var(--muted); }
.step-list code { white-space: nowrap; font-family: var(--font-body); font-weight: 700; color: var(--ink); background: #fff; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line); }

.links { padding: 8px; }
.link-row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: var(--r); text-decoration: none; width: 100%;
}
.link-row + .link-row { border-top: 1px solid var(--soft); border-radius: 0 0 var(--r) var(--r); }
.link-row:hover { background: var(--soft-2); }
.link-row:hover .link-arrow { color: var(--orange); transform: translateX(3px); }
.link-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r); background: var(--orange-tint); color: var(--orange-ink); }
.link-row strong { display: block; font-size: 16px; font-weight: 700; }
.link-row span { display: block; font-size: 14px; color: var(--muted); }
.link-arrow { color: var(--faint); transition: transform .15s ease, color .15s ease; }

.promo { position: relative; overflow: hidden; padding: 24px; border-radius: var(--r-lg); background: var(--grad-navy); color: #fff; }
.promo::after { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12); }
.promo .promo-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r); background: rgba(255, 255, 255, .1); margin-bottom: 16px; }
.promo h2, .promo-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; line-height: 1.2; margin: 0 0 8px; }
.promo p { margin: 0 0 18px; color: rgba(255, 255, 255, .72); font-size: 14px; }
.promo-orange { background: var(--grad-orange); }
.promo-orange p { color: rgba(255, 255, 255, .88); }

.search-card { padding: 20px 24px; }
.search-card h2 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.search-card p { margin: 0 0 8px; font-size: 14px; color: var(--muted); }

/* ---------- İçerik sayfaları ---------- */

.page-hero { position: relative; overflow: hidden; padding: 32px 36px; border-radius: var(--r-xl); background: var(--grad-navy); color: #fff; }
.page-hero::before { content: ""; position: absolute; width: 420px; height: 420px; right: -160px; top: -220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(253, 106, 34, .25), rgba(253, 106, 34, 0)); }
.page-hero h1 { position: relative; font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.02em; max-width: 24em; }
.page-hero p { position: relative; margin: 10px 0 0; max-width: 46em; color: rgba(255, 255, 255, .72); }

.crumbs { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; font-size: 13px; color: rgba(255, 255, 255, .6); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs a { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs .icon { width: 14px; height: 14px; }

.article { padding: 32px; }
.article-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 24px; }
.article-top img { display: block; width: 100%; border-radius: var(--r); }

.sticky-aside { position: sticky; top: calc(var(--header-h) + 24px); }

.prose { font-size: 17px; line-height: 1.75; color: var(--ink); overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.1em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--font-display); margin: 1.6em 0 .6em; line-height: 1.25; }
.prose h2 { font-size: 24px; }
.prose h3 { font-size: 20px; }
.prose a { color: var(--orange-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--orange-tint-2); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--orange); }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--orange); }
.prose img { border-radius: var(--r); }
.prose strong { font-weight: 700; }
/* Yönetim panelinde sarıyla vurgulanmış metinler */
.prose [style*="yellow" i] { background-color: var(--orange-tint-2) !important; padding: 2px 6px; border-radius: 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Yönetim panelinden gelen tabloların satır içi renklerini palete çeker */
.prose table {
  width: 100% !important; height: auto !important; margin: 0 0 1.5em;
  border-collapse: separate !important; border-spacing: 0;
  border: 1px solid var(--line) !important; border-radius: var(--r);
  font-size: 15px; line-height: 1.45; background: #fff;
}
.prose td, .prose th {
  padding: 10px 12px !important; border: 0 !important; border-top: 1px solid var(--line) !important;
  background-color: transparent !important; color: var(--ink) !important; vertical-align: middle;
}
.prose tr { background-color: transparent !important; color: inherit !important; height: auto !important; }
.prose th { text-align: left; }
.prose td *, .prose th * { color: inherit !important; background-color: transparent !important; }
.prose td:first-child { text-align: left !important; font-weight: 600; }
@media (min-width: 861px) { .is-wide .prose td:first-child { min-width: 260px; } }
.prose tbody tr:nth-child(even) td { background-color: var(--soft-2) !important; }
.prose thead th, .prose thead td {
  position: sticky; top: var(--header-h); z-index: 1;
  border-top: 0 !important; text-align: left;
  background-color: var(--ink) !important; color: #fff !important; font-weight: 700; font-size: 13px;
}
.prose thead th:first-child { border-top-left-radius: var(--r); }
.prose thead th:last-child { border-top-right-radius: var(--r); }
.prose tbody tr:hover td { background-color: var(--orange-tint) !important; }
.prose tbody tr:first-child td { border-top: 0 !important; }

.table-scroll { overflow-x: auto; margin: 0 0 1.5em; border-radius: var(--r); -webkit-overflow-scrolling: touch; }
.table-scroll table { margin: 0; }
.table-scroll thead th { position: static; }

.not-found { padding: 48px 32px; text-align: center; }
.not-found h1 { font-size: 30px; font-weight: 800; margin-bottom: 8px; }
.not-found p { margin: 0 auto 24px; max-width: 32em; color: var(--muted); }
.not-found .btn + .btn { margin-left: 8px; }

/* ---------- Lise taban puanları sayfası ---------- */

.taban-hero .rules { position: relative; margin-top: 18px; }
.page > .container > .taban-hero + * { margin-top: 24px; }

.finder { padding: 24px; scroll-margin-top: calc(var(--header-h) + 16px); }
.finder-form { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) minmax(200px, 1.4fr) auto; gap: 12px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field select {
  width: 100%; height: 48px; padding: 0 14px; border-radius: var(--r);
  font: 500 16px var(--font-body); color: var(--ink);
  background: var(--soft-2); border: 1px solid var(--line);
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238695AA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; text-overflow: ellipsis; }
.field-puan input { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.field input:hover, .field select:hover { border-color: #CBD8E8; }
.field input:focus, .field select:focus { outline: none; background-color: #fff; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(253, 106, 34, .15); }
.finder-form .btn { height: 48px; }

.finder-status { margin: 18px 0 0; padding: 12px 14px; border-radius: var(--r); background: var(--soft-2); color: var(--muted); font-size: 14px; }
.finder-status strong { color: var(--ink); }
.finder-status.is-ok { background: var(--orange-tint); color: var(--ink); }
.finder-status.is-ok strong { color: var(--orange-ink); }
.finder-status.is-error { background: #FDECEB; color: #B4271D; }
.finder-more { width: 100%; margin-top: 12px; }
.finder-note { display: flex; gap: 8px; margin: 16px 0 0; font-size: 13px; color: var(--faint); }
.finder-note .icon { margin-top: 2px; }

.okul-list { list-style: none; margin: 12px 0 0; padding: 0; }
.okul-list:empty { display: none; }
.okul-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center;
  padding: 12px 4px; border-top: 1px solid var(--soft);
}
.okul-row:first-child { border-top: 0; }
.okul-main strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; }
.okul-main span { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.okul-puan { text-align: right; }
.okul-puan b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.okul-puan span { display: block; font-size: 12px; color: var(--faint); }
.okul-fark { min-width: 64px; padding: 4px 8px; border-radius: 8px; background: #E7F6EF; color: #177950; font-size: 13px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }

.okul-list-rank { counter-reset: sira; }
.okul-list-rank .okul-row { grid-template-columns: 32px minmax(0, 1fr) auto; counter-increment: sira; }
.okul-list-rank .okul-row::before {
  content: counter(sira); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: var(--soft); color: var(--muted); font-family: var(--font-display); font-weight: 700; font-size: 14px;
}
.okul-list-rank .okul-row:nth-child(-n+3)::before { background: var(--orange-tint); color: var(--orange-ink); }
.top-okullar { padding: 24px; }

.taban-featured { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.promo-link { display: block; text-decoration: none; transition: transform .15s ease; }
.promo-link:hover { transform: translateY(-2px); }

.il-rehberi { padding: 24px; scroll-margin-top: calc(var(--header-h) + 16px); }
.il-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.il-search { position: relative; flex: 0 1 260px; }
.il-search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.il-search input {
  width: 100%; height: 44px; padding: 0 14px 0 40px; border-radius: 999px;
  font: 500 15px var(--font-body); color: var(--ink); background: var(--soft-2); border: 1px solid var(--line);
}
.il-search input:focus { outline: none; background: #fff; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(253, 106, 34, .15); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  font: 600 13px var(--font-body); color: var(--muted); background: #fff; border: 1px solid var(--line);
}
.chip:hover { color: var(--ink); border-color: #CBD8E8; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.il-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.il-card {
  position: relative; display: block; padding: 14px 36px 14px 16px; border-radius: var(--r);
  background: var(--soft-2); border: 1px solid var(--line); text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.il-card:hover { background: #fff; border-color: var(--orange-tint-2); transform: translateY(-1px); box-shadow: var(--shadow); }
.il-card[hidden] { display: none; }
.il-ad { display: block; font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.il-meta { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.il-top { display: block; font-size: 12px; color: var(--muted); }
.il-top b { color: var(--ink); font-weight: 700; }
.il-meta b { color: var(--ink); font-weight: 700; }
.il-arrow { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); transition: color .15s ease, transform .15s ease; }
.il-card:hover .il-arrow { color: var(--orange); transform: translate(3px, -50%); }
.il-empty { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

@media (max-width: 1023px) {
  .finder-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finder-form .btn { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .finder, .il-rehberi, .top-okullar { padding: 20px 16px; }
  .finder-form { grid-template-columns: minmax(0, 1fr); }
  .taban-featured { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .il-toolbar { flex-direction: column; align-items: stretch; }
  .il-search { flex: none; }
  .chips { flex-wrap: nowrap; overflow-x: auto; width: calc(100% + 32px); min-width: 0; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .il-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .il-card { padding: 12px 28px 12px 12px; }
  .il-arrow { right: 8px; }
  .okul-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .okul-fark { grid-column: 1 / -1; justify-self: start; }
  .okul-list-rank .okul-row { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; }
  .okul-list-rank .okul-row::before { width: 28px; height: 28px; }
}

/* ---------- İl sayfaları ve makale ekleri ---------- */

.il-giris { margin-bottom: 8px; }
.lead { margin: 0 0 16px; font-size: 18px; line-height: 1.6; color: var(--ink); }
.ozet-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; }
.ozet-list li { padding: 10px 14px; border-radius: var(--r); background: var(--soft-2); border: 1px solid var(--line); }
.ozet-list span { display: block; font-size: 12px; color: var(--muted); }
.ozet-list b { font-family: var(--font-display); font-size: 18px; font-variant-numeric: tabular-nums; }
.il-bulucu { margin-bottom: 8px; }
.il-bolum { margin-top: 32px; }
.article > h2 { font-size: 22px; font-weight: 700; margin: 8px 0 14px; }
.il-bolum > h2 { font-size: 22px; font-weight: 700; margin-bottom: 14px; }
.ilgili-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ilgili-grid .link-row { border: 1px solid var(--line); border-radius: var(--r) !important; }
.bolge-baslik { margin: 22px 0 10px; font-size: 16px; font-weight: 700; }
.bolge-linkler { display: flex; flex-wrap: wrap; gap: 6px; }
.bolge-linkler a {
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none;
}
.bolge-linkler a:hover { color: var(--orange-ink); border-color: var(--orange-tint-2); background: var(--orange-tint); }
.soru-linkler { margin: 0 0 8px; padding-left: 1.2em; }
.soru-linkler li { margin: 6px 0; }
.soru-linkler li::marker { color: var(--orange); }
.soru-linkler a { color: var(--ink); font-weight: 600; text-decoration: none; }
.soru-linkler a:hover { color: var(--orange-ink); }

@media (max-width: 600px) {
  .lead { font-size: 16px; }
  .ilgili-grid { grid-template-columns: minmax(0, 1fr); }
  .il-bolum > h2 { font-size: 19px; }
}

/* ---------- OBP sayfası ---------- */

.facts { padding: 24px; }
.fact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fact { padding: 18px; border-radius: var(--r); background: var(--soft-2); border: 1px solid var(--line); }
.fact-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px; border-radius: 11px; background: var(--orange-tint); color: var(--orange-ink); }
.fact h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.fact p { margin: 0; font-size: 14px; color: var(--muted); }
.field select:disabled { opacity: .6; cursor: not-allowed; }

/* ---------- SSS sayfası ---------- */

.faq-toolbar { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; }
.faq-search { flex: none; width: 100%; }
.faq-search input { height: 48px; font-size: 16px; }
.faq-topics { display: flex; flex-wrap: wrap; gap: 6px; }
.faq-topics a {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none;
}
.faq-topics a:hover { color: var(--ink); border-color: #CBD8E8; }
.faq-topics a span { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--soft); color: var(--ink); font-size: 12px; }

.faq-group { padding: 24px; scroll-margin-top: calc(var(--header-h) + 16px); }
.faq-list { border-top: 1px solid var(--soft); }
.faq { border-bottom: 1px solid var(--soft); scroll-margin-top: calc(var(--header-h) + 16px); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 4px; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 16px; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-q { margin: 0; font-family: var(--font-body); font-size: inherit; font-weight: 600; line-height: inherit; color: inherit; letter-spacing: 0; }
.faq summary:hover { color: var(--orange-ink); }
.faq-chevron { flex: none; color: var(--faint); transition: transform .2s ease, color .2s ease; }
.faq[open] summary { color: var(--orange-ink); }
.faq[open] .faq-chevron { transform: rotate(90deg); color: var(--orange); }
.faq-body { padding: 0 4px 18px; }
.faq-body .prose { font-size: 16px; line-height: 1.7; }
.faq-body .prose > :last-child { margin-bottom: 0; }
.faq-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--orange-ink); text-decoration: none; }
.faq-link:hover { color: var(--orange); }
.faq-empty { padding: 20px 24px; margin: 0; color: var(--muted); }

@media (max-width: 860px) {
  .fact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .facts, .faq-group { padding: 20px 16px; }
  .faq-toolbar { padding: 16px; }
  .faq summary { font-size: 15px; padding: 14px 2px; }
}

/* ---------- Alt bilgi ---------- */

.site-footer { background: var(--ink); color: rgba(255, 255, 255, .72); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding-top: 44px; padding-bottom: 32px; }
.footer-about p { margin: 16px 0 0; max-width: 30em; }
.footer-links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-links h2, .footer-title { margin: 0; font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .45); margin-bottom: 4px; }
.footer-links a, .footer-links button { text-decoration: none; color: rgba(255, 255, 255, .8); }
.footer-links a:hover, .footer-links button:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: rgba(255, 255, 255, .5); }
.footer-bottom a { color: rgba(255, 255, 255, .75); }

/* ---------- Sitene ekle penceresi ---------- */

.embed-dialog { width: min(560px, calc(100% - 32px)); padding: 0; border: 0; border-radius: var(--r-lg); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(4, 20, 47, .55); }
.embed-dialog::backdrop { background: rgba(4, 20, 47, .55); backdrop-filter: blur(2px); }
.embed-dialog-inner { padding: 24px; }
.embed-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.embed-dialog-head h2, .embed-dialog-title { margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.embed-dialog p { color: var(--muted); font-size: 14px; }
.embed-dialog textarea { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--soft-2); font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); resize: none; }
.embed-dialog-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.embed-credit { font-size: 13px; color: var(--faint); }
.embed-credit a { color: var(--orange-ink); }

/* ---------- Duyarlı düzen ---------- */

@media (max-width: 1100px) {
  .main-nav a { padding: 8px 9px; font-size: 14px; }
  .header-inner { gap: 16px; }
}

@media (max-width: 1023px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 32px; }
  .optik { display: none; }
  .split { grid-template-columns: 1fr; }
  .sticky-aside { position: static; }
  .topbar-links span { display: none; }
  .topbar-links a { border-left: 0; }
}

@media (max-width: 860px) {
  :root { --header-h: 60px; }
  .header-inner { flex-wrap: wrap; height: auto; padding-top: 10px; gap: 0 12px; }
  .brand { height: 40px; }
  .header-cta { margin-left: auto; }
  .main-nav {
    order: 3; width: calc(100% + 32px); margin: 10px -16px 0; padding: 0 12px 10px;
    overflow-x: auto; scrollbar-width: none;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { background: var(--soft-2); border: 1px solid var(--line); }
  .main-nav a.is-active { background: var(--orange-tint); border-color: var(--orange-tint-2); color: var(--orange-ink); }
  .main-nav a.is-active::after { display: none; }
  .site-header { position: static; }
  .prose thead th { top: 0; }
  .step-list { grid-template-columns: 1fr; }
  .article-top { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .topbar { display: none; }
  .split-main, .split > aside { gap: 16px; }
  .brand-mark { width: 36px; height: 36px; font-size: 12px; }
  .brand-name { font-size: 16px; }
  .brand-name span { display: none; }
  .page { padding-top: 16px; }
  .page > .container > * + * { margin-top: 16px; }
  .hero { padding: 24px 16px 16px; border-radius: var(--r-lg); gap: 22px; margin-left: -8px; margin-right: -8px; }
  .hero-copy { gap: 16px; }
  .rules { display: none; }
  .calc { padding: 16px 12px; margin: 0 -4px; }
  .calc-title p { display: none; }
  .calc-grid { --cols: minmax(0, 1.15fr) minmax(44px, 1fr) minmax(44px, 1fr) minmax(22px, .45fr) minmax(46px, .8fr); }
  .calc input[readonly] { font-size: 15px; }
  .calc-head, .calc-row { gap: 6px; }
  .calc-subject .full { display: none; }
  .calc-subject .short { display: block; }
  .calc-subject strong { font-size: 14px; }
  .calc input { height: 42px; font-size: 16px; }
  .result-stats { grid-template-columns: repeat(2, 1fr); }
  .years, .steps, .article { padding: 20px 16px; }
  .year-row { grid-template-columns: 64px minmax(0, 1fr) 72px; gap: 12px; }
  .link-row { padding: 12px 10px; gap: 12px; }
  .page-hero { padding: 24px 20px; border-radius: var(--r-lg); }
  .prose { font-size: 16px; }
  .prose table { font-size: 12px; }
  .prose td, .prose th { padding: 7px 6px !important; }
  .footer-grid { grid-template-columns: 1fr; }
  .not-found .btn + .btn { margin: 8px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Sitene ekle (iframe) ---------- */

body.embed { background: #fff; min-height: 0; display: block; }
.embed-main { max-width: 760px; margin: 0 auto; padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.embed-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.embed-head .brand-mark { width: 34px; height: 34px; font-size: 11px; border-radius: 10px; box-shadow: none; }
.embed-head .brand-name { font-size: 17px; }
.embed-head .brand-name span { color: var(--orange); }
.embed-tag { padding: 4px 10px; border-radius: 999px; background: var(--orange-tint); color: var(--orange-ink); font-size: 12px; font-weight: 700; }
.embed .calc { border: 1px solid var(--line); box-shadow: var(--shadow); }
.embed .calc-fineprint { display: none; }
.embed .calc { padding: 16px 18px; }
.embed .calc-title { margin-bottom: 8px; }
.embed .calc-group { margin: 6px 0 4px; }
.embed .calc-row { padding: 4px 0; }
.embed .calc input { height: 40px; }
.embed .calc-total { margin-top: 4px; padding: 6px 10px; }
.embed .calc-actions { margin-top: 12px; }
.embed .calc-actions .btn-primary { height: 48px; }
.embed-result { padding: 18px; border-radius: var(--r-lg); background: var(--grad-navy); color: #fff; }
.embed-score { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.embed-score .result-score { font-size: 44px; }
.embed-years { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.embed-years li { padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); }
.embed-years span { display: block; font-size: 11px; color: rgba(255, 255, 255, .6); }
.embed-years b { font-family: var(--font-display); font-size: 16px; font-variant-numeric: tabular-nums; }
.embed-years li.is-best { background: var(--grad-orange); border-color: transparent; }
.embed-years li.is-best span { color: rgba(255, 255, 255, .85); }
.embed-note { margin: 8px 0 0; font-size: 11px; color: rgba(255, 255, 255, .55); }
.embed-credit { margin: 0; text-align: center; font-size: 12px; color: var(--faint); }
.embed-credit a { color: var(--orange-ink); font-weight: 600; }
@media (max-width: 640px) {
  .embed-years { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .embed-main { padding: 8px 4px; }
  .embed .calc { padding: 12px 10px; }
  .embed .calc-title { display: none; }
  .embed .calc { margin: 0; }
  .embed-score .result-score { font-size: 36px; }
  .embed-years b { font-size: 14px; }
  .embed-years li { padding: 6px 7px; }
}
