/* =======================================================================
   ParselSorgu sade katman (2026-12-04)
   En çok trafik alan şablonlarda (ana sayfa, parsel sorgu, imar durumu,
   makale, ada parsel harita, askı ilanları, maliyet, tapu harcı) tek yazı tipi,
   tek başlık ölçeği, en fazla 700 kalınlık ve tek zemin rengi.
   navbar.php -> ps_sade_apply() <html class="ps-sade"> ekler; başka sayfayı etkilemez.
   Renk ve ölçüler design_system.css değişkenlerinden gelir.
   ========================================================================== */

html.ps-sade body {
  background-color: var(--bg-primary, #0B1120) !important;
  color: #E2E8F0;
  font-family: var(--font-sans, Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Tek yazı tipi: sayfa içi Arial / Helvetica / -apple-system karışıklığını kaldırır.
   İkon fontları ve bilinçli eş aralıklı (koordinat, kod) alanlar hariç. */
html.ps-sade body :is(p, span, a, li, td, th, div, h1, h2, h3, h4, h5, h6, button, input, select, textarea, label, small, strong, b, em, summary, section, article, header, footer, nav, main, aside, dd, dt, figcaption, blockquote, caption):not([class*="fa-"]):not(.fa):not([class*="icon"]):not([class*="mono"]):not([class*="coord"]):not([style*="monospace"]):not(.leaflet-container *) {
  font-family: inherit !important;
}
html.ps-sade body :is(code, pre, kbd, samp, .font-mono) {
  font-family: var(--font-mono, ui-monospace, monospace) !important;
}

/* Kalınlık: 800/900 yerine en fazla 700 (yazı tipi de 700'e kadar yükleniyor). */
html.ps-sade body :is(h1, h2, h3, h4, h5, h6) {
  font-weight: 700 !important;
}
html.ps-sade body [style*="font-weight:900"],
html.ps-sade body [style*="font-weight: 900"],
html.ps-sade body [style*="font-weight:800"],
html.ps-sade body [style*="font-weight: 800"] {
  font-weight: 700 !important;
}

/* Başlık ölçeği: sayfa başlığı her şablonda aynı boyda. */
html.ps-sade body h1 {
  font-size: clamp(1.625rem, 1.15rem + 1.6vw, 2.125rem) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.015em !important;
  text-wrap: balance;
}
html.ps-sade body :is(h2, h3) {
  line-height: 1.3 !important;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* Okunabilir gövde metni */
html.ps-sade body main p {
  line-height: 1.65;
}
html.ps-sade body :is(main, article) a:not([class]):not([style]) {
  color: var(--brand-400, #60A5FA);
  text-underline-offset: 2px;
}

/* Mobil üst bar: bazı şablonların ek kenar boşluğu menü butonunu ekran dışına itiyordu. */
@media (max-width: 420px) {
  html.ps-sade body .saas-2026-header { padding-left: 0 !important; padding-right: 0 !important; }
  html.ps-sade body .saas-header-container { padding: 0 12px !important; gap: 8px !important; }
  html.ps-sade body .saas-brand-title { font-size: 1rem !important; }
}
html.ps-sade body .saas-mob-link { font-size: 12px !important; }

/* Butonlar: tek birincil (dolu mavi), diğerleri aynı nötr ikincil stil. */
html.ps-sade .ps-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 16px; border-radius: 10px;
  font-size: 14px; font-weight: 600; line-height: 1.3; text-align: center; text-decoration: none;
  background: var(--bg-secondary, #111827); color: #E2E8F0;
  border: 1px solid var(--border-default, #334155); cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
html.ps-sade .ps-btn:hover { background: var(--bg-tertiary, #1F2937); border-color: var(--border-strong, #475569); color: #fff; }
html.ps-sade .ps-btn:focus-visible { outline: 2px solid var(--brand-400, #60A5FA); outline-offset: 2px; }
html.ps-sade .ps-btn i { color: var(--brand-400, #60A5FA); }
html.ps-sade .ps-btn .fa-whatsapp { color: #25D366; }
html.ps-sade .ps-btn .fa-bell { color: var(--warning, #F59E0B); }
html.ps-sade .ps-btn--primary { background: var(--brand-600, #2563EB); border-color: var(--brand-600, #2563EB); color: #fff; }
html.ps-sade .ps-btn--primary:hover { background: var(--brand-500, #3B82F6); border-color: var(--brand-500, #3B82F6); }
html.ps-sade .ps-btn--primary i { color: #fff; }
html.ps-sade .ps-btnrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
html.ps-sade .ps-actions { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 260px; }
html.ps-sade .ps-actions .ps-btn { width: 100%; }
@media (max-width: 700px) {
  html.ps-sade .ps-actions { max-width: none; display: grid; grid-template-columns: 1fr 1fr; }
  html.ps-sade .ps-actions .ps-btn--primary { grid-column: 1 / -1; }
  html.ps-sade .ps-actions > .ps-btn:last-child:nth-child(even) { grid-column: 1 / -1; }
  html.ps-sade .ps-btnrow .ps-btn { flex: 1 1 100%; }
}
