/* =========================================================
   Temel stiller: reset, tipografi, container, butonlar
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh; /* iPhone: adres çubuğu açıkken de sayfa ekranı tam doldurur, gereksiz kaydırma olmaz */
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--color-text-soft);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

/* hidden özniteliği, display tanımlı sınıfları da gizlesin (filtreler için) */
[hidden] { display: none !important; }

main { flex: 1 0 auto; }

h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  color: var(--color-text);
}

p { margin: 0; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

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

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  z-index: 1000;
  padding: var(--space-3) var(--space-4);
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: var(--space-4); }

/* ---------- Butonlar ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--color-text);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--tap-min);
  padding: 0 var(--space-5);
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.005em;
  white-space: nowrap;
  transition: background-color var(--dur-fast), border-color var(--dur-fast),
              color var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur-fast);
}
.btn .ti { font-size: 1.125rem; }
.btn:active { transform: translateY(1px); }

.btn-primary { --btn-bg: var(--color-primary); --btn-fg: #fff; }
.btn-primary:hover { --btn-bg: var(--color-primary-hover); box-shadow: var(--shadow-md); }


.btn-outline { --btn-border: var(--color-border-strong); --btn-bg: var(--color-surface); }
.btn-outline:hover { --btn-border: var(--navy-200); --btn-bg: var(--navy-50); }

.btn-ghost { --btn-fg: var(--color-text-soft); }
.btn-ghost:hover { --btn-bg: var(--gray-100); --btn-fg: var(--color-text); }

.btn-light { --btn-bg: #fff; --btn-fg: var(--color-primary); }
.btn-light:hover { --btn-bg: var(--navy-50); }

.btn-outline-light { --btn-fg: #fff; --btn-border: rgba(255, 255, 255, 0.35); }
.btn-outline-light:hover { --btn-bg: rgba(255, 255, 255, 0.1); --btn-border: rgba(255, 255, 255, 0.6); }

.btn:disabled { opacity: 0.7; cursor: progress; transform: none; }

.link { color: var(--color-accent); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.link:hover { color: var(--color-accent-hover); }

.btn-sm { min-height: 40px; padding: 0 var(--space-4); }
.btn-lg { min-height: 52px; padding: 0 var(--space-6); font-size: var(--fs-base); }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: var(--tap-min);
  height: var(--tap-min);
  border-radius: var(--radius-pill);
  color: var(--color-text);
  font-size: 1.375rem;
  transition: background-color var(--dur-fast);
}
.icon-btn:hover { background: var(--gray-100); }

/* ---------- Bölüm başlıkları ---------- */
.section { padding-block: var(--space-section); }
.section--alt { background: var(--color-bg-alt); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 640px;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
}
.section-head--center { margin-inline: auto; text-align: center; align-items: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-accent);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.section-title { font-size: var(--fs-3xl); }
.section-lead { font-size: var(--fs-lg); color: var(--color-text-muted); }
.section-head .section-lead { margin-top: var(--space-1); }

/* Başlık solda, "Tümünü gör" bağlantısı sağda */
.section-head--split {
  max-width: none;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4) var(--space-8);
}
.section-head--split > div { display: flex; flex-direction: column; gap: var(--space-3); max-width: 640px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--tap-min);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-accent);
  white-space: nowrap;
}
.link-arrow .ti { transition: transform var(--dur-fast); }
.link-arrow:hover { color: var(--color-accent-hover); }
.link-arrow:hover .ti { transform: translateX(3px); }

.container--narrow { max-width: calc(880px + var(--gutter) * 2); }

.empty-note {
  padding: var(--space-8);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--color-text-muted);
}

/* ---------- Rozet ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-3);
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  background: var(--gray-100);
  color: var(--gray-700);
}

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

/* ==========================================================================
   Biçimlendirilmiş metin (yönetim panelindeki düzenleyicinin çıktısı)
   Boyutlar --rt-taban'a göre mutlak hesaplanır; iç içe boyutlar birbirini büyütmez.
   ========================================================================== */
.rich-text { --rt-taban: 1rem; --rt-metin: var(--color-text); overflow-wrap: anywhere; }
.rich-text > * + * { margin-top: 0.5em; }
.rich-text ul, .rich-text ol { padding-left: 1.35em; }
.rich-text ul { list-style: disc; }
.rich-text ol { list-style: decimal; }
.rich-text li + li { margin-top: 0.2em; }
.rich-text a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 2px; }
.rich-text b, .rich-text strong { font-weight: 700; color: inherit; }
.rt-kucuk { font-size: calc(var(--rt-taban) * 0.86); }
.rt-normal { font-size: var(--rt-taban); }
.rt-buyuk { font-size: calc(var(--rt-taban) * 1.2); line-height: 1.45; }
.rt-cok-buyuk { font-size: calc(var(--rt-taban) * 1.45); line-height: 1.35; font-weight: 600; }
.rt-renk-varsayilan { color: var(--rt-metin); }
.rt-renk-lacivert { color: var(--navy-800); }
.rt-renk-mavi { color: var(--blue-600); }
.rt-renk-yesil { color: var(--teal-600); }
.rt-renk-turuncu { color: var(--amber-700); }
.rt-renk-kirmizi { color: var(--red-600); }
.rt-renk-gri { color: var(--gray-600); }
