/*
 * Makale ve haber gövdesi için ortak tipografi.
 *
 * article.php ve news-detail.php artık içeriği aynı biçimlendiriciden
 * (includes/content_format.php) geçiriyor; bu dosya da o çıktının iki sayfada
 * birebir aynı görünmesini sağlar. Önceden her sayfa kendi <style> bloğunda
 * farklı başlık/paragraf kuralları taşıyordu.
 *
 * .htaccess'teki "1 ay, immutable" kuralı bu dosya için otomatik devreye girer.
 */

.rich-content {
    line-height: 1.85;
    font-size: 1.02rem;
    color: var(--text-main, #1e293b);
}

.rich-content > *:first-child {
    margin-top: 0;
}

/* Yapay zekanın ürettiği "cevap önce" açılış paragrafı. Hem okuyucu hem de
   üretken arama motorları için sayfanın en kritik bloğu — görsel olarak da
   ayrışsın. */
.rich-content > p:first-of-type {
    font-size: 1.12rem;
    line-height: 1.75;
    font-weight: 500;
}

.rich-content p {
    margin-bottom: 1.15rem;
}

.rich-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color, #0b3c5d);
    margin-top: 2.3rem;
    margin-bottom: 0.9rem;
    scroll-margin-top: 90px; /* sticky navbar, başlık bağlantılarını örtmesin */
}

.rich-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color, #0b3c5d);
    margin-top: 1.7rem;
    margin-bottom: 0.7rem;
    scroll-margin-top: 90px;
}

.rich-content ul,
.rich-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.4rem;
}

.rich-content li {
    margin-bottom: 0.45rem;
}

.rich-content strong {
    font-weight: 700;
    color: var(--primary-color, #0b3c5d);
}

/* --- Sık Sorulan Sorular --- */

.content-faq {
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(100, 116, 139, 0.22);
}

.content-faq-item + .content-faq-item {
    margin-top: 1.35rem;
}

.content-faq-q {
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.content-faq-a p {
    margin-bottom: 0.5rem;
}

/* --- Etiketler --- */

.content-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(100, 116, 139, 0.22);
}

.content-tag {
    display: inline-block;
    background: rgba(50, 140, 193, 0.12);
    color: var(--primary-color, #0b3c5d);
    border-radius: 999px;
    padding: 3px 12px;
    font-size: 0.78rem;
    font-weight: 600;
}

/* --- Kaynak atfı (haberler) --- */

.content-source {
    margin-top: 1.75rem;
    font-size: 0.85rem;
    color: #64748b;
}

@media (max-width: 576px) {
    .rich-content { font-size: 1rem; }
    .rich-content > p:first-of-type { font-size: 1.05rem; }
    .rich-content h2 { font-size: 1.3rem; margin-top: 1.9rem; }
    .rich-content h3 { font-size: 1.1rem; }
}

/* Sözlük terimi iç bağlantıları */
.rich-content a.term-link{color:inherit;text-decoration:underline dotted;text-underline-offset:3px}
.rich-content a.term-link:hover{color:#0d6efd}

/* --- Metin içi görsel, video ve alıntı (22 Ekim 2026 — content_media_html) --- */
.rich-content .ci-figure, .rich-content .ci-video { margin: 26px 0; }
.rich-content .ci-figure img { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 12px; }
.rich-content .ci-figure figcaption, .rich-content .ci-video figcaption { margin-top: 8px; font-size: .86rem; line-height: 1.5; opacity: .75; text-align: center; }
.rich-content .ci-yt, .rich-content .ci-video iframe { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; overflow: hidden; background: #000; }
.rich-content .ci-yt img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: opacity .2s; }
.rich-content .ci-yt:hover img, .rich-content .ci-yt:focus-visible img { opacity: .85; }
.rich-content .ci-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 12px; background: #f00; box-shadow: 0 4px 18px rgba(0, 0, 0, .35); }
.rich-content .ci-play::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.rich-content .ci-quote { margin: 24px 0; padding: 14px 18px; border-left: 3px solid var(--primary-color, #0b3c5d); border-radius: 0 8px 8px 0; background: rgba(11, 60, 93, .06); font-style: italic; }
.rich-content .ci-quote p { margin: 0; }

/* 25 Ekim 2026: markdown tablo (includes/content_format.php). Dar ekranda yatay kaydırılır. */
.rich-content .ci-table { margin: 24px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid rgba(127,127,127,.25); border-radius: 12px; }
.rich-content .ci-table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .92rem; line-height: 1.45; }
.rich-content .ci-table th, .rich-content .ci-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(127,127,127,.18); }
.rich-content .ci-table thead th { background: rgba(13,110,253,.12); font-weight: 700; white-space: nowrap; }
.rich-content .ci-table tbody th { font-weight: 600; }
.rich-content .ci-table tbody tr:nth-child(even) { background: rgba(127,127,127,.06); }
.rich-content .ci-table tr:last-child > * { border-bottom: 0; }
/* Sayfa değil yalnız tablo kaysın: kapsayıcı tablo genişliğine uzamaz; ilk sütun kayarken sabit kalır. */
.nd-article, .rich-content { min-width: 0; }
.rich-content .ci-table { max-width: 100%; }
.rich-content .ci-table table { margin: 0; }
.rich-content .ci-table tbody th { position: sticky; left: 0; z-index: 1; background: var(--hb-bg, #04111f); box-shadow: 1px 0 0 rgba(127,127,127,.25); }
@media (max-width: 576px) {
  .rich-content .ci-table table { min-width: 460px; font-size: .86rem; }
  .rich-content .ci-table th, .rich-content .ci-table td { padding: 8px 10px; }
  .rich-content .ci-table tbody th { max-width: 110px; }
}
