/* ============================================================
   kidemtazminatihesaplama.net — ortak stil dosyası
   Mobile-first (375px taban) · vanilla CSS · framework yok
   ============================================================ */

/* ---------- Değişkenler ---------- */
:root {
  --lacivert: #1A365D;
  --lacivert-koyu: #12263F;
  --lacivert-acik: #2C4A7C;
  --altin: #C9A961;
  --altin-koyu: #A98B45;
  --zemin: #FAFAF7;
  --beyaz: #FFFFFF;
  --metin: #2A2F38;
  --metin-soluk: #5A6472;
  --cizgi: #E5E3DC;
  --hata: #B4423A;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 10px;
  --radius-kucuk: 6px;
  --golge: 0 2px 12px rgba(26, 54, 93, 0.08);
  --golge-koyu: 0 4px 20px rgba(26, 54, 93, 0.16);

  --icerik-genislik: 720px;   /* okuma sayfaları */
  --genis-genislik: 960px;    /* header/footer hizası */
}

/* ---------- Sıfırlama ve taban ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--metin);
  background: var(--zemin);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--lacivert); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--lacivert-acik); }

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

.rakam { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

.gorsel-gizli {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Tipografi ---------- */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--lacivert);
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
}
h1 { font-size: 1.75rem; }   /* ~28px mobil */
h2 { font-size: 1.35rem; margin-top: 2em; }
h3 { font-size: 1.1rem; margin-top: 1.6em; }
p  { margin: 0 0 1em; }

@media (min-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.2rem; }
}

/* ---------- Yerleşim ---------- */
.kap { width: 100%; max-width: var(--genis-genislik); margin: 0 auto; padding: 0 1.25rem; }
.kap--dar { max-width: var(--icerik-genislik); }

main { min-height: 60vh; padding: 1.5rem 0 3rem; }

/* ---------- Header ---------- */
.site-header {
  background: var(--beyaz);
  border-bottom: 1px solid var(--cizgi);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header__ic {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1rem;
  color: var(--lacivert);
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.logo .nokta { color: var(--altin); }
.logo:hover { color: var(--lacivert); }

/* Hamburger butonu (mobil) */
.menu-dugme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.menu-dugme__cizgiler,
.menu-dugme__cizgiler::before,
.menu-dugme__cizgiler::after {
  content: "";
  display: block;
  width: 22px; height: 2px;
  background: var(--lacivert);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.menu-dugme__cizgiler { position: relative; }
.menu-dugme__cizgiler::before { position: absolute; top: -7px; }
.menu-dugme__cizgiler::after  { position: absolute; top: 7px; }

.menu-acik .menu-dugme__cizgiler { background: transparent; }
.menu-acik .menu-dugme__cizgiler::before { transform: translateY(7px) rotate(45deg); background: var(--beyaz); }
.menu-acik .menu-dugme__cizgiler::after  { transform: translateY(-7px) rotate(-45deg); background: var(--beyaz); }
.menu-acik .menu-dugme { position: relative; z-index: 102; }

/* Tam ekran overlay menü (mobil) */
.ana-menu {
  position: fixed;
  inset: 0;
  background: var(--lacivert);
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.menu-acik .ana-menu { opacity: 1; visibility: visible; }
.menu-acik body, body.menu-acik { overflow: hidden; }

.ana-menu ul { list-style: none; margin: 0; padding: 0; }
.ana-menu li + li { margin-top: 0.35rem; }

.ana-menu a {
  display: block;
  color: var(--beyaz);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 0.55rem 0.25rem;
  border-radius: var(--radius-kucuk);
}
.ana-menu a:hover { color: var(--altin); }
.ana-menu a[aria-current="page"] { color: var(--altin); }

.ana-menu .menu-ayrac {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 1.1rem 0;
}
.ana-menu .dis-link a {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}
.ana-menu .dis-link a:hover { color: var(--altin); }

/* Geniş ekranlarda overlay içeriğini ortala ve büyüt */
@media (min-width: 960px) {
  .ana-menu { align-items: center; }
  .ana-menu ul { min-width: 380px; }
  .ana-menu a { font-size: 1.5rem; padding: 0.65rem 0.25rem; }
  .ana-menu .dis-link a { font-size: 1.05rem; }
}

/* ---------- Breadcrumb ---------- */
.kirinti {
  font-size: 0.82rem;
  color: var(--metin-soluk);
  margin: 0.25rem 0 1.25rem;
}
.kirinti ol {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.kirinti li { display: flex; align-items: center; gap: 0.35rem; }
.kirinti li + li::before { content: "›"; color: var(--cizgi); }
.kirinti a { color: var(--metin-soluk); text-decoration: none; }
.kirinti a:hover { color: var(--lacivert); text-decoration: underline; }
.kirinti [aria-current="page"] { color: var(--metin); font-weight: 500; }

/* ---------- Butonlar ---------- */
.dugme {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  border-radius: var(--radius-kucuk);
  padding: 0.7rem 1.4rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.dugme--dolu {
  background: var(--lacivert);
  color: var(--beyaz);
  border: 1px solid var(--lacivert);
}
.dugme--dolu:hover { background: var(--lacivert-acik); border-color: var(--lacivert-acik); color: var(--beyaz); }

.dugme--cerceve {
  background: transparent;
  color: var(--lacivert);
  border: 1px solid var(--lacivert);
}
.dugme--cerceve:hover { background: rgba(26, 54, 93, 0.06); color: var(--lacivert); }

/* ---------- Floating "Hesapla" butonu (iç sayfalar) ---------- */
.hesapla-sabit {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--altin);
  color: var(--lacivert-koyu);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  box-shadow: var(--golge-koyu);
}
.hesapla-sabit:hover { background: var(--altin-koyu); color: var(--beyaz); }
.hesapla-sabit svg { width: 18px; height: 18px; }

@media (min-width: 960px) {
  .hesapla-sabit { right: 2rem; bottom: 2rem; }
}

/* ---------- Kartlar / ilgili sayfalar ---------- */
.ilgili {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--cizgi);
}
.ilgili h2 { margin-top: 0; font-size: 1.1rem; }
.ilgili__liste {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}
@media (min-width: 768px) {
  .ilgili__liste { grid-template-columns: repeat(3, 1fr); }
}
.ilgili__kart {
  display: block;
  background: var(--beyaz);
  border: 1px solid var(--cizgi);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: var(--metin);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ilgili__kart:hover { border-color: var(--altin); box-shadow: var(--golge); color: var(--metin); }
.ilgili__kart strong { display: block; color: var(--lacivert); margin-bottom: 0.25rem; font-size: 0.95rem; }
.ilgili__kart span { font-size: 0.85rem; color: var(--metin-soluk); }

/* ---------- İçerik yardımcıları ---------- */
.kutu {
  background: var(--beyaz);
  border: 1px solid var(--cizgi);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1.5rem 0;
}
.kutu--vurgu { border-left: 4px solid var(--altin); }

.tablo-kaydir { overflow-x: auto; margin: 1.5rem 0; }
table {
  border-collapse: collapse;
  width: 100%;
  background: var(--beyaz);
  font-size: 0.92rem;
}
th, td {
  text-align: left;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--cizgi);
}
th { background: var(--lacivert); color: var(--beyaz); font-weight: 600; }
tbody tr:nth-child(even) { background: #F4F3EE; }
td.rakam, th.rakam { text-align: right; }

/* Nötr CTA bloğu */
.yonlendirme {
  background: var(--beyaz);
  border: 1px solid var(--cizgi);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2.5rem 0 0;
  text-align: center;
}
.yonlendirme p { color: var(--metin-soluk); max-width: 48ch; margin: 0 auto 1rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--lacivert);
  color: rgba(255, 255, 255, 0.85);
  margin-top: 3rem;
  padding: 2.5rem 0 2rem;
  font-size: 0.88rem;
}
.site-footer a { color: var(--beyaz); text-decoration: none; }
.site-footer a:hover { color: var(--altin); text-decoration: underline; }

.site-footer__ust {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 768px) {
  .site-footer__ust { grid-template-columns: 1.2fr 1fr 1fr; }
}
.site-footer h2 {
  color: var(--beyaz);
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 0.45rem; }

.site-footer__uyari {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  line-height: 1.6;
}

.site-footer__alt {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}
