/* 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,
.single-body,
.prose {
  line-height: 1.75;
}

.article-content p,
.entry-content p,
.post-content p,
.post-body p,
.single-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,
.single-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"], .single-body 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"], .single-body 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"], .single-body 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,
.single-body h2, .single-body 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 22%, 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, .single-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,
.single-body th, .single-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, .single-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, .single-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, .single-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, .single-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, .single-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; }

/* ── Rich content blocks — square (marka kuralı), tema-bağımsız (rgba fallback).
 *    Aksan rengi tema --primary'sine yaslanır, yoksa #2563eb. ── */
:root{--jek-accent:#2563eb}
.jek-btn{display:inline-flex;align-items:center;gap:8px;padding:13px 28px;background:var(--primary-color,var(--jek-accent));color:#fff!important;font-weight:700;text-decoration:none;line-height:1.2;margin:6px 0;box-shadow:0 2px 12px rgba(37,99,235,.22);transition:transform .12s,box-shadow .12s,opacity .12s}
.jek-btn:hover{transform:translateY(-1px);box-shadow:0 5px 18px rgba(37,99,235,.32);opacity:1}
.jek-btn[data-variant="secondary"]{background:#111827;box-shadow:none}
.jek-btn[data-variant="outline"]{background:transparent;border:2px solid currentColor;color:var(--primary-color,var(--jek-accent))!important;box-shadow:none}

.jek-accordion{border:1px solid rgba(127,127,127,.28);margin:18px 0}
.jek-accordion>summary{cursor:pointer;padding:14px 18px;font-weight:700;list-style:none;background:rgba(127,127,127,.06);display:flex;align-items:center;gap:10px;transition:background .12s}
.jek-accordion>summary:hover{background:rgba(127,127,127,.11)}
.jek-accordion>summary::-webkit-details-marker{display:none}
.jek-accordion>summary::before{content:"▶";font-size:.72em;color:var(--primary-color,var(--jek-accent));transition:transform .15s;flex:0 0 auto}
.jek-accordion[open]>summary::before{transform:rotate(90deg)}
.jek-accordion-body{padding:16px 18px}

.jek-rating{display:inline-block;font-size:24px;line-height:1;position:relative;color:rgba(127,127,127,.32);letter-spacing:3px;font-family:inherit}
.jek-rating::before{content:"★★★★★";position:absolute;left:0;top:0;color:#f59e0b;overflow:hidden;white-space:nowrap;letter-spacing:3px}
.jek-rating[data-score="1"]::before{width:20%}
.jek-rating[data-score="2"]::before{width:40%}
.jek-rating[data-score="3"]::before{width:60%}
.jek-rating[data-score="4"]::before{width:80%}
.jek-rating[data-score="5"]::before{width:100%}

/* Güçlü metin biçimlendirme — Lead, Pull quote, Drop cap, Kbd.
 * Sol aksan çizgisi YOK, pastel "kutu" YOK (anti-generic). */
.jek-lead{font-size:1.3em;line-height:1.6;font-weight:500;margin:18px 0;opacity:.92}
.jek-pullquote{margin:34px 0;padding:22px 0;border-top:2px solid rgba(127,127,127,.35);border-bottom:2px solid rgba(127,127,127,.35);font-size:1.5em;line-height:1.45;font-style:italic;font-weight:600;text-align:center;background:none}
.jek-pullquote p{margin:0}
.jek-dropcap{margin:16px 0}
.jek-dropcap::first-letter{float:left;font-size:3.4em;line-height:.72;font-weight:800;margin:.05em .1em 0 0;color:var(--primary-color,var(--jek-accent))}
.jek-kbd{display:inline-block;padding:2px 7px;margin:0 1px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.82em;line-height:1.4;border:1px solid rgba(127,127,127,.5);border-bottom-width:2px;background:rgba(127,127,127,.1);white-space:nowrap;vertical-align:baseline}

/* FAQ — açılır-kapanır (details); soru başlık DEĞİL (TOC'a sızmaz) */
.jek-faq-item{border:1px solid rgba(127,127,127,.25);margin:0 0 8px}
.jek-faq-item>.jek-faq-q{list-style:none;cursor:pointer;padding:13px 42px 13px 16px;font-weight:700;font-size:1.05em;position:relative;background:rgba(127,127,127,.05);transition:background .12s}
.jek-faq-item>.jek-faq-q:hover{background:rgba(127,127,127,.1)}
.jek-faq-q::-webkit-details-marker{display:none}
.jek-faq-q::after{content:"+";position:absolute;right:16px;top:50%;transform:translateY(-50%);font-size:1.35em;font-weight:400;color:var(--primary-color,var(--jek-accent))}
.jek-faq-item[open]>.jek-faq-q::after{content:"\2212"}
.jek-faq-a{padding:14px 16px;line-height:1.7;border-top:1px solid rgba(127,127,127,.18)}

.jek-proscons{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:22px 0}
.jek-proscons .jek-pros,.jek-proscons .jek-cons{border:1px solid rgba(127,127,127,.22);border-top:3px solid #16a34a;padding:14px 16px}
.jek-proscons .jek-cons{border-top-color:#dc2626}
.jek-proscons .jek-pc-h{font-weight:700;margin-bottom:8px;font-size:1.05em;display:flex;align-items:center;gap:6px}
.jek-proscons .jek-pros .jek-pc-h{color:#16a34a}
.jek-proscons .jek-cons .jek-pc-h{color:#dc2626}
.jek-proscons .jek-pros .jek-pc-h::before{content:"✓"}
.jek-proscons .jek-cons .jek-pc-h::before{content:"✕"}
.jek-proscons ul{margin:0;padding:0;list-style:none}
.jek-proscons li{position:relative;padding-left:24px;margin:7px 0;line-height:1.6}
.jek-proscons .jek-pros li::before{content:"✓";position:absolute;left:0;color:#16a34a;font-weight:700}
.jek-proscons .jek-cons li::before{content:"✕";position:absolute;left:0;color:#dc2626;font-weight:700}
@media(max-width:600px){.jek-proscons{grid-template-columns:1fr}}

/* Önemli Noktalar — başlıklı panel (SOL ÇİZGİ YOK, mavi kutu YOK) */
.jek-keytakeaways{border:1px solid rgba(127,127,127,.32);margin:24px 0;padding:0}
.jek-keytakeaways .jek-kt-h{margin:0;padding:11px 18px;font-size:.8em;font-weight:700;letter-spacing:.07em;text-transform:uppercase;border-bottom:1px solid rgba(127,127,127,.32)}
.jek-keytakeaways ul{margin:0;padding:14px 18px;list-style:none}
.jek-keytakeaways li{position:relative;padding-left:18px;margin:7px 0;line-height:1.6}
.jek-keytakeaways li::before{content:"—";position:absolute;left:0;opacity:.5}

.jek-howto{border:1px solid rgba(127,127,127,.25);padding:18px 22px;margin:22px 0}
.jek-howto .jek-howto-h{font-weight:700;font-size:1.15em;margin-bottom:14px}
.jek-howto-steps{counter-reset:jekstep;list-style:none;margin:0;padding:0}
.jek-howto-step{counter-increment:jekstep;position:relative;padding:3px 0 3px 46px;margin:14px 0;min-height:32px;line-height:1.6;display:flex;align-items:center}
.jek-howto-step::before{content:counter(jekstep);position:absolute;left:0;top:0;width:32px;height:32px;background:var(--primary-color,var(--jek-accent));color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px}

/* Callout / vurgu kutuları (Bilgi/Uyarı/Hata/İpucu) — frontend'de yoktu.
 * Kare, tam kenarlık + tür rengi ikon (SOL ÇİZGİ YOK), çok hafif zemin. */
.jek-callout{position:relative;border:1px solid rgba(127,127,127,.3);padding:14px 18px 14px 50px;margin:20px 0;line-height:1.65;background:rgba(127,127,127,.03)}
.jek-callout>*:first-child{margin-top:0}
.jek-callout>*:last-child{margin-bottom:0}
.jek-callout::before{content:"";position:absolute;left:15px;top:15px;width:22px;height:22px;background-size:22px 22px;background-repeat:no-repeat}
.jek-callout[data-callout="info"]{border-color:rgba(59,130,246,.55)}
.jek-callout[data-callout="info"]::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%233b82f6'%3E%3Cpath fill-rule='evenodd' d='M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-7-4a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM9 9a.75.75 0 0 0 0 1.5h.253a.25.25 0 0 1 .244.304l-.459 2.066A1.75 1.75 0 0 0 10.747 15H11a.75.75 0 0 0 0-1.5h-.253a.25.25 0 0 1-.244-.304l.459-2.066A1.75 1.75 0 0 0 9.253 9H9Z' clip-rule='evenodd'/%3E%3C/svg%3E")}
.jek-callout[data-callout="warning"]{border-color:rgba(245,158,11,.6)}
.jek-callout[data-callout="warning"]::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23f59e0b'%3E%3Cpath fill-rule='evenodd' d='M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495ZM10 5a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 10 5Zm0 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z' clip-rule='evenodd'/%3E%3C/svg%3E")}
.jek-callout[data-callout="error"]{border-color:rgba(239,68,68,.55)}
.jek-callout[data-callout="error"]::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23ef4444'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16ZM8.28 7.22a.75.75 0 0 0-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 1 0 1.06 1.06L10 11.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L11.06 10l1.72-1.72a.75.75 0 0 0-1.06-1.06L10 8.94 8.28 7.22Z' clip-rule='evenodd'/%3E%3C/svg%3E")}
.jek-callout[data-callout="success"]{border-color:rgba(34,197,94,.55)}
.jek-callout[data-callout="success"]::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2322c55e'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm3.857-9.809a.75.75 0 0 0-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 1 0-1.06 1.061l2.5 2.5a.75.75 0 0 0 1.137-.089l4-5.5Z' clip-rule='evenodd'/%3E%3C/svg%3E")}

/* ── YouTube lazy facade (click to load — no page-speed hit) ── */
.jek-lite-yt{position:relative;display:block;width:100%;max-width:720px;aspect-ratio:16/9;margin:22px 0;cursor:pointer;background:#000;overflow:hidden}
.jek-lite-yt-img{width:100%;height:100%;object-fit:cover;display:block;border:0}
.jek-lite-yt-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:68px;height:48px;background:rgba(20,20,20,.75);transition:background .15s}
.jek-lite-yt:hover .jek-lite-yt-play{background:#f00}
.jek-lite-yt-play::before{content:"";position:absolute;left:50%;top:50%;transform:translate(-40%,-50%);border-style:solid;border-width:11px 0 11px 18px;border-color:transparent transparent transparent #fff}
.jek-lite-yt iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.jek-lite-yt[data-loaded] .jek-lite-yt-play{display:none}
