/* 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; }
}
