/* ============================================
   DOKTOR WEB SİTESİ — ANA STİL DOSYASI
   Tüm CSS buraya taşındı, PHP dosyaları temiz
   ============================================ */

/* ---- RENK PALETİ (CSS Değişkenleri) ------------------ */
:root {

  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --yesil-600: #16a34a;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --amber-400: #fbbf24;

  --radius-full: var(--radius-pill, 9999px);

  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.07), 0 1px 2px -1px rgb(0 0 0 / 0.07);

  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- RESET & BASE ------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* margin: 0 — Tailwind kaldırılırken onun sıfırlaması da gitmişti; tarayıcının
   8 piksellik varsayılan kenar boşluğu bütün temalarda sayfanın çevresinde açık
   bir çerçeve bırakıyordu (koyu üst menü ve koyu alt bilgi kenara değmiyordu). 2.15.0
   font-family: gövde yazı tipi temadan/panelden (--font-body) — önceden sabit
   'Inter' yazıyordu; Görünüm'deki "Gövde yazı tipi" seçimi metne hiç ulaşmıyordu. 2.16.0 */
body {
  margin: 0;
  font-family: var(--font-body, 'Inter', ui-sans-serif, system-ui, sans-serif);
  background-color: var(--slate-50);
  color: var(--slate-800);
  line-height: var(--leading, 1.75);   /* yoğunluk ayarından (2.28.0: dosya sonundaki ikinci body kuralı buraya) */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* height:auto + şablonlardaki width/height öznitelikleri: tarayıcı görsele önceden yer
   ayırır, yüklenince sayfa zıplamaz (CLS). 2.28.0: dosyanın ilerisindeki iki tekrar silindi. */
img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

/* ---- TIPOGRAFI ---------------------------------------- */
h1, h2, h3, h4, h5, h6 { line-height: 1.25; font-weight: 700; }

/* ---- HEADER ------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

/* .site-header.scrolled tanımı components.css'e taşındı — tek yerde
   dursun. Burada bırakılsaydı aynı sınıf iki dosyada tanımlı olur,
   hangisinin kazandığı yükleme sırasına kalırdı. */

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-600);
  padding: 0.375rem 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-600);
  border-bottom-color: var(--brand-600);
}

/* ---- BUTONLAR ----------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn svg {   /* boyut: aşağıdaki "SVG İkon Boyut Kontrolü" */
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-primary {
  background: var(--brand-600);
  color: white;
  box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
  background: var(--brand-700);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -4px rgba(var(--brand-rgb), 0.45);
}

.btn-primary:active { transform: translateY(0); }

.btn-lg {
  font-size: 1rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-xl);
}

.btn-sm {
  font-size: 0.8125rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
}

/* .hero, .hero-grid, .hero-badge, .hero-title, .site-footer, .social-btn ve
   .footer-grid kuralları 2.27.0'da kaldırıldı: yalnız eski Klinik şablonu
   kullanıyordu. Yeni Klinik (ve öteki dokuz tema) karşılamayı ve alt bilgiyi
   kendi tema.css'inde çizer. .mobile-bottom-bar daha önce kaldırılmıştı. */

/* ---- SAYFALAR - ORTAK --------------------------------- */
.page-hero {
  background: linear-gradient(135deg, var(--slate-900) 0%, var(--brand-900) 100%);
  padding: 4rem 0 3rem;
  text-align: center;
}

.page-hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-300);
  margin-bottom: 0.75rem;
}

/* ---- FORM ELEMANLAR ----------------------------------- */
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  color: var(--slate-800);
  background: white;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: inherit;
  outline: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 219, 0.12);
}

.form-textarea { resize: vertical; min-height: 6rem; }

/* ---- ALERT / FEEDBACK --------------------------------- */
.alert {
  padding: 0.875rem 1.125rem;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
}

.alert svg {   /* boyut: aşağıdaki "SVG İkon Boyut Kontrolü" */
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

/* ---- ÇEREZ/FADE ANİMASYONLARI ------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.5s ease forwards;
}

.fade-up-delay-2 { animation-delay: 0.2s; }

/* ---- UTILITY ------------------------------------------ */
/* Tailwind kaldırıldığı için ondan gelen tek eksik yardımcı: */
html.scroll-smooth { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html.scroll-smooth { scroll-behavior: auto; }
}

.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Container — tek tanım. 2.28.0'a dek dosyanın ilerisinde ikinci bir .container
   (75rem, 1.25 / 1.5 / 2rem) bunu eziyordu (80rem, 1 / 1.5 / 2rem hiç geçerli
   olmadı); geçerli değerler buraya alındı, ikincisi silindi. */
.container {
  width: 100%;
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 640px)  { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ---- REDUCED MOTION ----------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── SVG İkon Boyut Kontrolü ────────────────────────────────── */
/* icons.php her SVGye width:1em ekliyor — container sınıfları override eder */
.btn     svg { width: 1rem    !important; height: 1rem    !important; }
.btn-sm  svg { width: 0.875rem !important; height: 0.875rem !important; }
.btn-lg  svg { width: 1.125rem !important; height: 1.125rem !important; }
.nav-link    svg { width: 1rem    !important; height: 1rem    !important; }
.alert svg   { width: 1.125rem !important; height: 1.125rem !important; }

/* ── Utility ─────────────────────────────────────────────────── */
.hidden   { display: none !important; }

/* ── Prose İçerik (hizmet & makale detay) ─────────────────── */
.prose-content {
  color: var(--slate-700);
  font-size: 0.9375rem;
  line-height: 1.8;
}
.prose-content h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--slate-900);
  margin: 1.75rem 0 0.75rem;
}
.prose-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--slate-900);
  margin: 1.5rem 0 0.625rem;
}
.prose-content p  { margin-bottom: 1rem; }
.prose-content ul,
.prose-content ol { margin: 1rem 0 1rem 1.5rem; }
.prose-content li { margin-bottom: 0.375rem; }
.prose-content strong { color: var(--slate-900); font-weight: 700; }
.prose-content a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 2px; }
.prose-content a:hover { color: var(--brand-700); }
.prose-content img {
  max-width: 100%;
  border-radius: var(--radius-lg);
  margin: 1rem 0;
}
.prose-content blockquote {
  border-left: 3px solid var(--brand-300);
  padding: 0.75rem 1.25rem;
  margin: 1.25rem 0;
  background: var(--brand-50);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--slate-600);
  font-style: italic;
}
.prose-content pre {
  background: var(--slate-800);
  color: #e2e8f0;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-size: 0.875rem;
  margin: 1.25rem 0;
}
.prose-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.875rem;
}
.prose-content th,
.prose-content td {
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--slate-200);
  text-align: left;
}
.prose-content th {
  background: var(--slate-50);
  font-weight: 700;
  color: var(--slate-700);
}

/* ── Baskı Stilleri ──────────────────────────────────────── */
@media print {
  .site-header,
  footer[role="contentinfo"],   /* 2.27.0: bütün temaların alt bilgisi (eskiden yalnız .site-footer) */
  .page-hero,
  nav, aside { display: none !important; }

  @page { margin: 2cm 2.5cm; }
  body  { font-size: 11pt; color: #000; background: white; }

  h1, h2, h3 { color: #000; page-break-after: avoid; }
  img { max-width: 100%; page-break-inside: avoid; }
  a   { color: #000; text-decoration: underline; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.75em; color: #666; }
  .prose-content p   { orphans: 3; widows: 3; }
  .prose-content pre { white-space: pre-wrap; word-break: break-all; }
}

/* ── GENEL RESPONSIVE DÜZELTMELER ─────────────────────────── */

/* Yatay taşmaları önle (img için dosya başındaki kural) */
video, iframe { max-width: 100%; }

/* Mobilde nav overflow gizle */
@media (max-width: 767px) {
  .site-header .container {
    overflow: visible;
  }
}

/* Section padding — bkz. dosya sonundaki --section-py tanımı.
   Buradaki sabit değerler kaldırıldı: panelin Görünüm → Yoğunluk
   ayarını (Sıkışık / Normal / Ferah) sessizce eziyorlardı. Kaynak
   sırası değişse ayar tamamen devre dışı kalabilirdi. */

/* ================================================================
   HAKKIMDA IZGARASI — tam duyarlı ölçek
   ----------------------------------------------------------------
   Önceden bu düzen hakkimda.php içinde inline "grid-template-columns:
   1fr 22rem" olarak yazılıydı ve düzeltme yalnızca max-width:767px için
   vardı. 768–1023px arasında (tablet, iPad dikey) 22rem'lik sabit sütun
   metin alanını ~320px'e sıkıştırıp düzeni bozuyordu. Artık iki sütuna
   yalnızca 1024px üzerinde geçiliyor. (Aynı yorumun anlattığı .hero-grid
   2.27.0'da eski Klinik karşılamasıyla birlikte gitti.)
   ================================================================ */

/* Hakkımda: fotoğraf + içerik */
.about-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
.about-content-grid > .about-aside {
  max-width: 22rem;
  margin: 0 auto;
  width: 100%;
}
@media (min-width: 1024px) {
  .about-content-grid {
    grid-template-columns: 22rem minmax(0, 1fr);
    gap: 3rem;
  }
  .about-content-grid > .about-aside { max-width: none; margin: 0; }
}


/* ================================================================
   YASAL METİN SAYFALARI (KVKK / Gizlilik / Çerez)
   Uzun metinlerde okunabilirlik için tipografi düzeni
   ================================================================ */
.legal-content { color:#334155; font-size:1rem; line-height:1.85; }
.legal-content h2 {
  font-size:1.25rem; font-weight:800; color:#0f172a;
  margin:2.25rem 0 0.75rem; padding-top:0.5rem;
}
.legal-content h2:first-child { margin-top:0; }
.legal-content h3 {
  font-size:1.0625rem; font-weight:700; color:#1e293b;
  margin:1.5rem 0 0.5rem;
}
.legal-content p  { margin-bottom:1rem; }
.legal-content ul, .legal-content ol { margin:0 0 1.25rem 1.25rem; padding-left:0.75rem; }
.legal-content li { margin-bottom:0.5rem; }
.legal-content a  { color:var(--brand-600); font-weight:600; }
.legal-content strong { color:#0f172a; font-weight:700; }
.legal-content table {
  width:100%; border-collapse:collapse; margin:1rem 0 1.5rem;
  font-size:0.875rem; display:block; overflow-x:auto;
}
.legal-content table th,
.legal-content table td {
  border:1px solid #e2e8f0; padding:0.6rem 0.75rem; text-align:left; vertical-align:top;
}
.legal-content table th { background:#f8fafc; font-weight:700; color:#0f172a; white-space:nowrap; }

/* ================================================================
   ÇEREZ ONAY BANNERI
   ================================================================ */
.cerez-banner {
  position:fixed; left:0; right:0; bottom:0; z-index:9999;
  background:#0f172a; color:#e2e8f0;
  padding:1rem 1.25rem;
  box-shadow:0 -4px 24px rgba(0,0,0,0.18);
  display:flex; gap:1rem; align-items:center; justify-content:center;
  flex-wrap:wrap;
  animation:cerezYukari 0.35s ease-out;
}
@keyframes cerezYukari { from { transform:translateY(100%); } to { transform:translateY(0); } }
@media (prefers-reduced-motion: reduce) { .cerez-banner { animation:none; } }
.cerez-banner p { margin:0; font-size:0.875rem; line-height:1.6; max-width:46rem; }
.cerez-banner a { color:var(--brand-300); font-weight:600; text-decoration:underline; }
.cerez-banner-btns { display:flex; gap:0.5rem; flex-shrink:0; }
.cerez-btn {
  border:0; cursor:pointer; font-family:inherit; font-weight:700; font-size:0.85rem;
  padding:0.55rem 1.1rem; border-radius:0.5rem; white-space:nowrap;
}
.cerez-btn-kabul { background:var(--brand-600); color:#fff; }
.cerez-btn-kabul:hover { background:#1a5aad; }
.cerez-btn-detay { background:transparent; color:#cbd5e1; border:1px solid #475569; }
.cerez-btn-detay:hover { background:#1e293b; }

/* ================================================================
   VİDEO TIKLA-YÜKLE KAPAĞI (çerez öncesi izin)
   YouTube/Vimeo iframe'i ancak kullanıcı oynat'a basınca yüklenir;
   böylece izin verilmeden üçüncü taraf çerezi oluşmaz.
   ================================================================ */
/* 2.18.0: renkler temadan. Zemin ve not şeridi markanın en koyu tonu;
   düğme beyaz, üçgen marka renginde. Düğme eskiden sabit klinik mavisiydi
   (öteki temalarda markaya uymuyordu); doğrudan marka rengine bağlamak da
   koyu markalarda (lacivert, espresso) koyu zeminde kaybolurdu — beyaz
   daire her markada okunur. */
.video-kapak {
  position:relative; width:100%; height:100%;
  background:var(--brand-900, #0f172a); cursor:pointer; border:0; padding:0;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
}
.video-kapak img { width:100%; height:100%; object-fit:cover; opacity:0.75; }
.video-kapak-play {
  position:absolute; width:4rem; height:4rem; border-radius:9999px;
  background:rgb(255 255 255 / 0.94); color:var(--brand-600, #1d65c1);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 4px 20px rgba(0,0,0,0.4); transition:transform 0.2s;
}
.video-kapak:hover .video-kapak-play { transform:scale(1.08); }
.video-kapak-not {
  position:absolute; bottom:0; left:0; right:0;
  background:color-mix(in srgb, var(--brand-900, #0f172a) 88%, transparent);
  color:rgb(255 255 255 / 0.78);
  font-size:0.7rem; padding:0.45rem 0.6rem; line-height:1.4; text-align:center;
}

/* ================================================================
   SIKÇA SORULAN SORULAR (accordion)
   <details>/<summary> kullanıldığı için JavaScript gerekmez;
   tarayıcı desteği evrensel ve erişilebilirlik yerleşik gelir.
   ================================================================ */
.sss-liste { display:grid; gap:0.75rem; }

.sss-oge {
  border:1px solid #e2e8f0; border-radius:0.75rem; background:#fff;
  overflow:hidden; transition:border-color .18s, box-shadow .18s;
}
.sss-oge[open] { border-color:var(--brand-200); box-shadow:0 2px 12px rgba(29,101,193,.07); }
.sss-oge:hover { border-color:#cbd5e1; }

.sss-soru {
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  padding:1.125rem 1.25rem; cursor:pointer; list-style:none;
  font-weight:700; color:#0f172a; font-size:1rem; line-height:1.5;
}
.sss-soru::-webkit-details-marker { display:none; }
.sss-soru:focus-visible { outline:2px solid var(--brand-600); outline-offset:-2px; border-radius:0.75rem; }
.sss-oge[open] .sss-soru { color:var(--brand-600); }

.sss-ok {
  flex-shrink:0; width:1.25rem; height:1.25rem; color:#94a3b8;
  transition:transform .22s ease;
}
.sss-oge[open] .sss-ok { transform:rotate(180deg); color:var(--brand-600); }
@media (prefers-reduced-motion: reduce) { .sss-ok { transition:none; } }

.sss-cevap {
  padding:0 1.25rem 1.25rem; color:#475569; font-size:0.9375rem; line-height:1.8;
}
.sss-cevap p:last-child { margin-bottom:0; }
.sss-cevap ul, .sss-cevap ol { margin:0 0 0.75rem 1.25rem; }
.sss-cevap a { color:var(--brand-600); font-weight:600; }

/* ================================================================
   ÇALIŞMA SAATLERİ
   ================================================================ */
.calisma-saatleri { display:grid; gap:0.4rem; }
.calisma-satir {
  display:flex; justify-content:space-between; gap:1rem; align-items:baseline;
  font-size:0.875rem; padding:0.3rem 0;
}
.calisma-gun  { color:#94a3b8; }
.calisma-saat { color:#e2e8f0; font-weight:600; font-variant-numeric:tabular-nums; }
.calisma-saat.kapali { color:#64748b; font-weight:500; }

.acik-rozet {
  display:inline-flex; align-items:center; gap:0.4rem;
  font-size:0.75rem; font-weight:700; padding:0.2rem 0.6rem; border-radius:9999px;
}
.acik-rozet.acik   { background:#dcfce7; color:#15803d; }
.acik-rozet.kapali { background:#f1f5f9; color:#64748b; }
.acik-rozet .nokta { width:0.45rem; height:0.45rem; border-radius:9999px; background:currentColor; }

/* ================================================================
   TEMA TİPOGRAFİSİ
   Başlık fontu, ağırlığı ve harf aralığı temadan gelir.
   ================================================================ */
h1, h2, h3, h4,
.page-hero-title {
  font-family: var(--font-heading, 'Inter', system-ui, sans-serif);
  font-weight: var(--heading-weight, 800);
  letter-spacing: var(--heading-tracking, -0.025em);
}

/* Serif başlık temalarında (estetik, kadın doğum) daha zarif ölçek */
.baslik-serif h1, .baslik-serif h2,
.baslik-serif .page-hero-title {
  font-weight: 600;
  letter-spacing: -0.005em;
}

/* ── BÖLÜM DİKEY BOŞLUĞU ───────────────────────────────────────
   Değer panelden gelir: Görünüm → Yoğunluk
     Sıkışık 3.5rem · Normal 5rem · Ferah 6.5rem
   Bu, sınıfın TEK tanımıdır. Mobilde ayarın %70'i uygulanır;
   telefonda 6.5rem'lik boşluk ekranın yarısını yiyordu. */
.section-py {
  padding-top: calc(var(--section-py, 5rem) * 0.7);
  padding-bottom: calc(var(--section-py, 5rem) * 0.7);
}
@media (min-width: 768px) {
  .section-py {
    padding-top: var(--section-py, 5rem);
    padding-bottom: var(--section-py, 5rem);
  }
}

/* Dil kodu rozeti — emoji bayrak yerine (platformlar arası tutarlı) */
.dil-kod-rozet {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.85rem; height: 1.35rem; padding: 0 0.35rem; flex-shrink: 0;
  border-radius: 0.28rem;
  background: rgb(15 23 42 / .08); color: inherit;
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.03em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
