/* jekcms — Ortak İçerik Tipografisi (editör ↔ sayfa paritesi)
 *
 * jek-editor.css (yönetim panelindeki editör) ile AYNI okuma standardını
 * kullanır: editörde ne görürsen sayfada birebir o çıkar. style.css'ten
 * SONRA yüklenir (output_head_scripts, header'da style.css'in altında) →
 * temaların paragraf aralığı + satır yüksekliğini standardize eder.
 * Renk, font ailesi, başlık tasarımı TEMA-ÖZEL kalır; yalnız metin gövdesi
 * spacing'i eşitlenir (kullanıcı şikayeti: satır aralığı + shift+enter <br>).
 *
 * Standart: line-height 1.75 · paragraf arası 1.3em (jek-editor.css ile aynı).
 */
.article-content,
.entry-content,
.post-content,
.post-body,
.prose {
  line-height: 1.75;
}

.article-content p,
.entry-content p,
.post-content p,
.post-body p,
.prose p {
  margin-top: 0;
  margin-bottom: 1.3em;
}

/* Son paragraf alt boşluğu taşmasın (kart/kutu içi tutarlılık). */
.article-content > p:last-child,
.entry-content > p:last-child,
.post-content > p:last-child,
.post-body > p:last-child,
.prose > p:last-child {
  margin-bottom: 0;
}

/* jek_icon (Lucide) — metin yanında dikey ortalama, esnek kutuda küçülmesin. */
.jek-icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ── Görsel konumlandırma (editörden data-align: sol/sağ metni sarar, orta ortalar) ──
   Quick.CMS tarzı yerleşim. Editör JekImage bu data-align'ı üretir. */
.article-content img[data-align="center"], .entry-content img[data-align="center"],
.post-content img[data-align="center"], .prose img[data-align="center"] {
  display: block; margin-left: auto; margin-right: auto;
}
.article-content img[data-align="left"], .entry-content img[data-align="left"],
.post-content img[data-align="left"], .prose img[data-align="left"] {
  float: left; margin: 0.35em 1.4em 0.9em 0; max-width: min(48%, 400px);
}
.article-content img[data-align="right"], .entry-content img[data-align="right"],
.post-content img[data-align="right"], .prose img[data-align="right"] {
  float: right; margin: 0.35em 0 0.9em 1.4em; max-width: min(48%, 400px);
}
/* Float sonrası başlıklar/blok taşmasın: heading kendi satırına iner. */
.article-content h2, .article-content h3, .entry-content h2, .entry-content h3,
.post-content h2, .post-content h3 { clear: both; }

/* ── Galeri (çoklu görsel grid + lightbox tetikleyici) ── */
.jek-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 1.4em 0; }
.jek-gallery a { display: block; overflow: hidden; aspect-ratio: 1 / 1; }
.jek-gallery img { width: 100%; height: 100%; object-fit: cover; margin: 0; cursor: zoom-in; transition: transform .25s ease; }
.jek-gallery a:hover img { transform: scale(1.05); }

/* Lightbox — galeri görseli tıklanınca tam ekran (gallery.js açar). */
.jek-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); display: flex; align-items: center; justify-content: center; z-index: 9999; cursor: zoom-out; padding: 24px; }
.jek-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ── Editoryal şeffaflık kutusu (E-E-A-T) ─────────────────────────────
 * jek_editorial_box() çıktısı. Bu kutu Google'a "kim, nasıl, hangi
 * kaynakla" sinyali verir; STİLSİZ bırakılınca okuyucu onu makalenin
 * devamı sanıyordu (metinden hiç ayrışmıyordu). Renk sabitlenmez —
 * currentColor + color-mix ile her temanın paletine uyar, koyu temada
 * da doğru çalışır. Köşeler KARE (tasarım kuralı).
 */
.jek-editorial {
  margin: 2.5em 0 1.5em;
  padding: 1.1em 1.25em;
  border: 1px solid;
  border-color: color-mix(in srgb, currentColor 18%, transparent);
  border-left: 3px solid;
  border-left-color: color-mix(in srgb, currentColor 45%, transparent);
  background: color-mix(in srgb, currentColor 4%, transparent);
  font-size: 0.92rem;
  line-height: 1.65;
}

.jek-editorial__title {
  margin: 0 0 0.6em;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
}

.jek-editorial p {
  margin: 0 0 0.65em;
}

.jek-editorial p:last-child,
.jek-editorial > div:last-child {
  margin-bottom: 0;
}

.jek-editorial__ai,
.jek-editorial__ymyl {
  opacity: 0.85;
}

.jek-editorial__sources {
  margin-top: 0.9em;
  padding-top: 0.75em;
  border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent);
}

.jek-editorial__sources ul {
  margin: 0.4em 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35em 0.9em;
}

.jek-editorial__sources li {
  margin: 0;
  font-size: 0.9em;
}

.jek-editorial__sources a {
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.85;
}

.jek-editorial__sources a:hover {
  opacity: 1;
}

@media (max-width: 480px) {
  .jek-editorial { padding: 1em; font-size: 0.88rem; }
}

/* ────────────────────────────────────────────────────────────────
 * C229 — EDİTÖR ↔ SAYFA PARİTESİ: tablo · görev listesi · görsel altyazısı.
 *
 * Editör bu üç yapıyı üretiyordu ama HİÇBİR tema onları biçimlendirmiyordu
 * (kullanıcı raporu: tablo çizgisiz düz metin; görev listesi madde-işareti +
 * üst üste kutu; altyazı görselden kopuk, ortada). Kurallar jek-editor.css
 * ile aynı standarda çekildi; wrapper listesi 14 temanın gövde sınıflarını
 * kapsar. Renk/font tema-özel kalır (var(--...) fallback'li).
 * ──────────────────────────────────────────────────────────────── */

/* ── Tablolar ── */
.article-content table, .entry-content table, .post-content table,
.post-body table, .article-body table, .single-post-content table,
.popular-post-content table, .content-body table, .prose table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.4em 0;
  font-size: 0.95em;
  display: block;
  overflow-x: auto;               /* dar ekranda taşma yerine kaydır */
}
.article-content th, .article-content td,
.entry-content th, .entry-content td,
.post-content th, .post-content td,
.post-body th, .post-body td,
.article-body th, .article-body td,
.single-post-content th, .single-post-content td,
.popular-post-content th, .popular-post-content td,
.content-body th, .content-body td,
.prose th, .prose td {
  border: 1px solid var(--border-color, #e2e2e2);
  padding: 9px 13px;
  text-align: left;
  vertical-align: top;
}
.article-content th, .entry-content th, .post-content th,
.post-body th, .article-body th, .single-post-content th,
.popular-post-content th, .content-body th, .prose th {
  background: var(--bg-secondary, rgba(0,0,0,0.04));
  font-weight: 600;
}
.article-content table p, .entry-content table p, .post-content table p,
.post-body table p, .article-body table p, .single-post-content table p,
.popular-post-content table p, .content-body table p, .prose table p {
  margin: 0;                      /* hücre içi <p> ekstra boşluk yapmasın */
}

/* ── Görsel + altyazı (figure/figcaption) ── */
.article-content figure, .entry-content figure, .post-content figure,
.post-body figure, .article-body figure, .single-post-content figure,
.popular-post-content figure, .content-body figure, .prose figure {
  margin: 1.6em 0;
}
.article-content figure img, .entry-content figure img, .post-content figure img,
.post-body figure img, .article-body figure img, .single-post-content figure img,
.popular-post-content figure img, .content-body figure img, .prose figure img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}
.article-content figcaption, .entry-content figcaption, .post-content figcaption,
.post-body figcaption, .article-body figcaption, .single-post-content figcaption,
.popular-post-content figcaption, .content-body figcaption, .prose figcaption {
  margin-top: 0.55em;             /* görsele YAKIN dursun (kopuk değil) */
  font-size: 0.86em;
  line-height: 1.5;
  color: var(--text-muted, #6b7280);
  text-align: center;
  font-style: italic;
}

/* ── Görev listesi (checkbox list) ── */
.jek-task-list {
  list-style: none !important;    /* tema ul disc madde işaretini ez */
  padding-left: 0;
  margin: 0.9em 0;
}
.jek-task-list .jek-task-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0.35em 0;
}
.jek-task-list .jek-task-item > label {
  /* C230: kutu, metnin İLK SATIRININ ortasına hizalanır. Label yüksekliği bir
     metin satırı (1.75em) → içindeki checkbox align-items:center ile o satırın
     tam ortasında durur; çok satırlı maddede de kutu ilk satırla hizalı kalır
     (flex-start üstte, center metin merkezinde tutmaz). */
  display: inline-flex;
  align-items: center;
  height: 1.75em;
  flex-shrink: 0;
  margin: 0;
}
.jek-task-list .jek-task-item > label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary-color, #6366f1);
  margin: 0;
}
.jek-task-list .jek-task-item > div {
  flex: 1;
  min-width: 0;
}
.jek-task-list .jek-task-item > div > p { margin: 0; line-height: 1.75; }
.jek-task-list .jek-task-item[data-checked="true"] > div {
  text-decoration: line-through;
  color: var(--text-muted, #6b7280);
}

/* ────────────────────────────────────────────────────────────────
 * C232 — Görünür SSS bloğu (jek_faq_box). Editörde girilen soru-cevaplar
 * yazının sonunda açılır-kapanır olarak basılır (Google FAQPage zengin
 * sonucu için içerik GÖRÜNÜR olmalı). Renk tema-özel kalır.
 * ──────────────────────────────────────────────────────────────── */
.jek-faq {
  margin: 2em 0 1em;
  padding-top: 1.2em;
  border-top: 1px solid var(--border-color, #e2e2e2);
}
.jek-faq__title {
  font-size: 1.35em;
  margin: 0 0 0.6em;
}
.jek-faq__item {
  border: 1px solid var(--border-color, #e2e2e2);
  border-radius: 0;                /* köşeler kare (marka kuralı) */
  margin: 0 0 0.5em;
  overflow: hidden;
}
.jek-faq__q {
  cursor: pointer;
  padding: 0.75em 1em;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 2.2em;
  user-select: none;
}
.jek-faq__q::-webkit-details-marker { display: none; }
.jek-faq__q::after {
  content: '+';
  position: absolute;
  right: 1em;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 400;
  font-size: 1.25em;
  line-height: 1;
  color: var(--text-muted, #6b7280);
}
.jek-faq__item[open] > .jek-faq__q::after { content: '\2212'; } /* − */
.jek-faq__item[open] > .jek-faq__q {
  border-bottom: 1px solid var(--border-color, #e2e2e2);
}
.jek-faq__a {
  padding: 0.85em 1em;
}
.jek-faq__a p { margin: 0; line-height: 1.7; }
