/* ============================================
   BLOG / İÇERİK KATMANI STİLİ  (icerik/ altındaki sayfalar)
   ─────────────────────────────────────────────
   shared/style.css'in ÜSTÜNE biner — marka tokenlarını
   (--brand-*, --primary, --text...) oradan miras alır.
   Sadece içerik/makale + reklam + yazar kutusu stilleri burada.

   KURAL: Reklamlar (.ad-slot) yalnızca icerik/ sayfalarında.
   Araç (01-20) ve ödeme/landing sayfalarına bu dosya GİRMEZ.
   ============================================ */

/* ---- Site başlığı (içerik katmanı navbar) ---- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .site-header { background: rgba(9,9,11,0.9); }
.site-header .wrap {
  max-width: 1100px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand-logo {
  font-family: var(--font-serif); font-weight: 700; font-size: 18px;
  color: var(--brand-deep); text-decoration: none; letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 8px;
}
[data-theme="dark"] .brand-logo { color: var(--brand-primary-light); }
.brand-logo .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand-gradient); }
.site-nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.site-nav a {
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  text-decoration: none; padding: 7px 11px; border-radius: var(--radius-sm);
  transition: all .15s;
}
.site-nav a:hover { color: var(--text); background: var(--bg-hover); }
.site-nav a.cta {
  background: var(--brand-primary); color: #fff;
}
.site-nav a.cta:hover { background: var(--brand-primary-hover); }

/* ---- Sayfa kabı ---- */
.page { max-width: 1100px; margin: 0 auto; padding: 24px 20px 64px; }
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; }
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; } }

/* ---- Makale tipografisi (prose) ---- */
.prose { max-width: 720px; }
.prose .kicker {
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px;
  font-weight: 700; color: var(--brand-primary); margin-bottom: 10px;
}
.prose h1 {
  font-family: var(--font-serif); font-size: 38px; line-height: 1.15;
  letter-spacing: -0.02em; margin: 0 0 12px;
}
.prose .meta {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
  color: var(--text-muted); font-size: 13px; margin-bottom: 24px;
  padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.prose h2 {
  font-family: var(--font-serif); font-size: 26px; line-height: 1.25;
  margin: 36px 0 12px; letter-spacing: -0.01em;
}
.prose h3 { font-size: 19px; margin: 26px 0 8px; }
.prose p, .prose li { font-size: 17px; line-height: 1.75; color: var(--text); }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 18px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--brand-primary); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { font-weight: 700; }
.prose table { border-collapse: collapse; width: 100%; margin: 20px 0; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-muted); font-weight: 600; }
.prose blockquote {
  border-left: 3px solid var(--brand-primary); margin: 20px 0; padding: 4px 18px;
  color: var(--text-muted); font-style: italic; background: var(--bg-muted);
  border-radius: 0 var(--radius) var(--radius) 0;
}
@media (max-width: 768px) {
  .prose h1 { font-size: 28px; }
  .prose h2 { font-size: 22px; }
  .prose p, .prose li { font-size: 16px; }
}

/* ---- Reklam alanı (AdSense — shared/ads.js doldurur) ---- */
.ad-slot {
  margin: 28px 0; min-height: 90px; display: flex; align-items: center; justify-content: center;
}
.ad-slot .ad-placeholder {
  width: 100%; min-height: 90px; display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--border-strong); border-radius: var(--radius);
  color: var(--text-subtle); font-size: 12px; background: var(--bg-muted);
}
.ad-label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-subtle); text-align: center; margin-bottom: 4px; }

/* ---- Araç CTA kutusu (içerik → satış köprüsü) ---- */
.tool-cta {
  margin: 32px 0; padding: 22px; border-radius: var(--radius-lg);
  background: var(--brand-gradient); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.tool-cta .txt { flex: 1; min-width: 220px; }
.tool-cta h3 { color: #fff; font-size: 18px; margin: 0 0 4px; }
.tool-cta p { color: rgba(255,255,255,0.85); font-size: 14px; margin: 0; }
.tool-cta .btn {
  background: var(--brand-accent); color: #1a1a1a; font-weight: 700;
  padding: 11px 18px; border-radius: var(--radius); text-decoration: none; white-space: nowrap;
}
.tool-cta .btn:hover { background: #fbbf24; }

/* ---- Yazar kutusu (E-E-A-T) ---- */
.author-box {
  margin-top: 36px; padding: 18px; border: 1px solid var(--border);
  border-radius: var(--radius-lg); background: var(--bg-card);
  display: flex; gap: 16px; align-items: flex-start;
}
.author-box .ava {
  width: 56px; height: 56px; border-radius: 50%; flex: 0 0 auto;
  background: var(--brand-gradient); color: #fff; display: flex; align-items: center;
  justify-content: center; font-family: var(--font-serif); font-size: 22px; font-weight: 700;
}
.author-box .name { font-weight: 700; font-size: 15px; }
.author-box .role { color: var(--text-muted); font-size: 13px; margin-bottom: 6px; }
.author-box p { font-size: 14px; color: var(--text); margin: 0; line-height: 1.6; }

/* ---- Sidebar ---- */
.sidebar .widget {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px; margin-bottom: 20px;
}
.sidebar h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-muted); margin: 0 0 12px; }
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li { margin: 0 0 8px; }
.sidebar a { color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; }
.sidebar a:hover { color: var(--brand-primary); }
@media (max-width: 900px) { .sidebar { display: none; } }

/* ---- Makale kartları (blog ana sayfa) ---- */
.hero {
  text-align: center; padding: 40px 0 32px; border-bottom: 1px solid var(--border); margin-bottom: 32px;
}
.hero h1 { font-family: var(--font-serif); font-size: 40px; letter-spacing: -0.02em; margin: 0 0 12px; }
.hero p { font-size: 18px; color: var(--text-muted); max-width: 620px; margin: 0 auto; }
@media (max-width: 768px) { .hero h1 { font-size: 30px; } .hero p { font-size: 16px; } }

.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 768px) { .post-grid { grid-template-columns: 1fr; } }
.post-card {
  display: flex; flex-direction: column; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  text-decoration: none; color: var(--text); transition: all .15s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-primary); }
.post-card .thumb { height: 8px; background: var(--brand-gradient); }
.post-card .body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card .tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-primary); }
.post-card h2 { font-family: var(--font-serif); font-size: 20px; line-height: 1.3; margin: 0; }
.post-card .excerpt { font-size: 14px; color: var(--text-muted); line-height: 1.55; flex: 1; }
.post-card .read { font-size: 13px; font-weight: 600; color: var(--brand-primary); margin-top: 4px; }

/* ---- Footer + yasal ---- */
.site-footer {
  border-top: 1px solid var(--border); margin-top: 48px; padding: 28px 20px;
  background: var(--bg-muted);
}
.site-footer .wrap { max-width: 1100px; margin: 0 auto; }
.site-footer .disclaimer {
  font-size: 12px; color: var(--text-muted); line-height: 1.6;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; background: var(--bg-card); margin-bottom: 16px;
}
.site-footer .links { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.site-footer .links a { color: var(--text-muted); text-decoration: none; }
.site-footer .links a:hover { color: var(--text); }
.site-footer .copy { font-size: 12px; color: var(--text-subtle); margin-top: 12px; }

/* ---- RTL (Arapça) ---- */
[dir="rtl"] .prose { text-align: right; }
[dir="rtl"] .prose ul, [dir="rtl"] .prose ol { padding-left: 0; padding-right: 24px; }
[dir="rtl"] .prose blockquote { border-left: 0; border-right: 3px solid var(--brand-primary); border-radius: var(--radius) 0 0 var(--radius); }
[dir="rtl"] .prose th, [dir="rtl"] .prose td { text-align: right; }
[dir="rtl"] .article-layout { direction: rtl; }
[dir="rtl"] .tool-cta .btn { } /* akış korunur */
[dir="rtl"] .fsp-cmp-link { left: auto; right: 14px; }
[dir="rtl"] .author-box { direction: rtl; }
/* Almanca/Latin tıbbi terimler RTL içinde soldan-sağa kalsın */
[dir="rtl"] .prose em, [dir="rtl"] .prose code { unicode-bidi: isolate; }

/* ---- Dil seçici ---- */
.lang-switch { display: inline-flex; gap: 2px; align-items: center; margin-left: 6px; }
.lang-switch a {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  color: var(--text-subtle); text-decoration: none; padding: 4px 6px; border-radius: 4px;
}
.lang-switch a:hover { background: var(--bg-hover); color: var(--text); }
.lang-switch a.on { color: var(--brand-primary); background: var(--brand-primary-light); }

/* ---- Tema butonu ---- */
.theme-btn {
  background: transparent; border: 1px solid var(--border); color: var(--text-muted);
  padding: 6px 9px; border-radius: var(--radius-sm); cursor: pointer; font-size: 14px;
}
.theme-btn:hover { background: var(--bg-hover); transform: none; box-shadow: none; }
