/**
 * output.css  v1.0
 * ─────────────────────────────────────────────────────────────────────────────
 * raw_to_pdf.js tarafından kullanılan render CSS dosyası.
 * Tüm görüntü stilleri buradan yönetilir; raw_to_pdf.js'deki <style> bloğu
 * yalnızca bu dosyayı embed eder — inline stil kullanılmaz.
 *
 * Seçenek sistemi:
 *   Yeni format → <li data-secenek="A"> harf attribute'undan ::before ile üretilir
 *   Eski format  → <li><strong>A)</strong> geriye dönük uyumluluk için korunur
 * ─────────────────────────────────────────────────────────────────────────────
 */

/* ── Sayfa / reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

@page {
  size: A4;
  margin: 18mm 16mm 20mm 16mm;
}

html, body {
  font-family: 'Segoe UI', 'Arial', sans-serif;
  font-size: 13px;
  color: #1e293b;
  background: #fff;
  line-height: 1.75;
}

/* ── Üst başlık bandı ── */
.pdf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #2563eb;
  padding-bottom: 8px;
  margin-bottom: 16px;
}
.pdf-header .brand {
  font-size: 15px;
  font-weight: 700;
  color: #2563eb;
  letter-spacing: .02em;
}
.pdf-header .meta {
  font-size: 11px;
  color: #64748b;
  text-align: right;
}

/* ── Bölüm başlıkları ── */
.blok-baslik {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #64748b;
  margin: 18px 0 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid #e2e8f0;
}

/* ── Bağlam ── */
.yz-baglam {
  font-size: 13px;
  line-height: 1.8;
  color: #1e293b;
  margin-bottom: 4px;
}
.yz-baglam p { margin-bottom: 8px; }
.yz-baglam strong { color: #0369a1; }
.yz-baglam img {
  max-width: 100%;
  border-radius: 5px;
  margin: 10px 0;
  display: block;
}
.yz-baglam figure {
  margin: 10px 0;
  text-align: center;
}
.yz-baglam figcaption {
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
}
script[type="text/x-visual-prompt"] { display: none; }

/* ── Soru blokları ── */
.yz-sorular { display: flex; flex-direction: column; gap: 10px; }

.yz-soru-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.8;
  color: #1e293b;
  page-break-inside: avoid;
}
.yz-soru-item h4,
.yz-soru-item .soru-no {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
}
.yz-soru-item p { margin: 4px 0 10px; }
.yz-soru-item strong { color: #0369a1; }

/* ── Seçenekler: 2 sütun grid ── */
.yz-soru-item .secenekler,
.yz-soru-item ul.secenekler {
  list-style: none !important;
  padding: 4px 0 0 !important;
  margin: 0 !important;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 14px;
}
.yz-soru-item .secenekler li {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  padding: 5px 10px;
  font-size: 13px;
  line-height: 1.6;
}

/* Seçenek harfi — YENİ FORMAT: harf li içinde metin olarak yazılır ("A) metin")
   data-secenek attribute'u harf referansı için korunur, ::before artık üretmez.
   Geriye dönük uyumluluk: eski <li><strong>A)</strong> formatı aynı stili alır. */
.yz-soru-item .secenekler li[data-secenek] {
  /* Harf zaten metin içinde — sadece ek stil */
  font-weight: 500;
}
.yz-soru-item .secenekler li[data-secenek]::before {
  content: none; /* Artık üretme — harf li içinde zaten mevcut */
}
/* Geriye dönük uyumluluk: eski <li><strong>A)</strong> formatı */
.yz-soru-item .secenekler li > strong:first-child {
  color: #2563eb;
  margin-right: 4px;
}

/* ── Çözüm blokları ── */
.yz-cozumler { display: flex; flex-direction: column; gap: 14px; }

.yz-cozum-item {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 4px solid #22c55e;
  border-radius: 7px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.8;
  color: #14532d;
  page-break-inside: avoid;
}
.yz-cozum-item h4 {
  font-size: 13px;
  font-weight: 700;
  color: #166534;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed #86efac;
}

/* Adım kartları */
.cozum-adim {
  background: #fff;
  border: 1px solid #dcfce7;
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 7px;
  font-size: 12.5px;
  line-height: 1.8;
  color: #1e293b;
}
.cozum-adim:last-of-type { margin-bottom: 0; }

.adim-baslik {
  display: block;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #0f766e;
  margin-bottom: 4px;
}

.cozum-adim ul,
.cozum-adim ol {
  margin: 4px 0 0 18px;
  padding: 0;
}
.cozum-adim li { margin-bottom: 4px; }

/* "Doğru Cevap" pill */
.yz-cozum-item > p:last-child strong,
.cozum-maddesi > p:last-child strong {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 14px;
  background: #166534;
  color: #fff;
  border-radius: 20px;
  font-size: 12px;
  letter-spacing: .03em;
}

/* ── MathJax (Puppeteer'da SVG render) ── */
mjx-container {
  overflow: visible !important;
  display: inline-block !important;
  vertical-align: middle !important;
}
mjx-container svg {
  vertical-align: 0 !important;
  overflow: visible !important;
}
mjx-container[display="true"] {
  display: block !important;
  text-align: center !important;
  margin: 8px auto !important;
  vertical-align: unset !important;
}

/* ── Alt bilgi ── */
.pdf-footer {
  margin-top: 24px;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
  font-size: 10.5px;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
}

/* ── Sayfa sonu yönetimi ── */
.sorular-bolum { page-break-before: auto; }
.cozumler-bolum { page-break-before: always; }
