/* ============================================================
   İçerik gövdesi (.post-body) — editörden gelen HTML için stiller
   Tema style.css'i bozmadan override eder. Bootstrap uyumlu.
   ============================================================ */

/* ---------- Tablolar ---------- */
.rt-main-post-single .post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    font-size: 15.5px;
    line-height: 1.5;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}
.rt-main-post-single .post-body table th,
.rt-main-post-single .post-body table td {
    padding: 12px 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #e8edf2;
}
.rt-main-post-single .post-body table thead th {
    background: #f1f5f9;
    color: #1e293b;
    font-weight: 700;
    border-bottom: 2px solid #cbd5e1;
    white-space: nowrap;
}
.rt-main-post-single .post-body table tbody tr:nth-child(even) {
    background: #f8fafc;
}
.rt-main-post-single .post-body table tbody tr:hover {
    background: #eef6f1;
}
.rt-main-post-single .post-body table tbody tr:last-child td {
    border-bottom: none;
}
.rt-main-post-single .post-body table td strong {
    color: #0f172a;
}

/* Mobilde yatay kaydırma (sütunlar sıkışmasın) */
@media (max-width: 640px) {
    .rt-main-post-single .post-body table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
}

/* ---------- Listeler (editör çıktısı) ---------- */
.rt-main-post-single .post-body ul,
.rt-main-post-single .post-body ol {
    margin: 0 0 20px;
    padding-left: 26px;
}
.rt-main-post-single .post-body ul { list-style: disc; }
.rt-main-post-single .post-body ol { list-style: decimal; }
.rt-main-post-single .post-body li {
    margin-bottom: 8px;
    line-height: 1.7;
}
.rt-main-post-single .post-body ul ul,
.rt-main-post-single .post-body ol ol {
    margin: 8px 0;
    list-style: circle;
}

/* ---------- Düz blockquote (TinyMCE) ---------- */
.rt-main-post-single .post-body blockquote {
    margin: 28px 0;
    padding: 16px 22px;
    border-left: 4px solid #16a34a;
    background: #f6faf7;
    border-radius: 0 8px 8px 0;
    color: #334155;
    font-style: italic;
    font-size: 17px;
}
.rt-main-post-single .post-body blockquote p:last-child { margin-bottom: 0; }

/* ---------- Başlık ritmi ---------- */
.rt-main-post-single .post-body h2,
.rt-main-post-single .post-body h3,
.rt-main-post-single .post-body h4 {
    margin-top: 36px;
    margin-bottom: 14px;
    line-height: 1.3;
    scroll-margin-top: 100px;
}
.rt-main-post-single .post-body h2 { font-size: 27px; }
.rt-main-post-single .post-body h3 { font-size: 22px; }
.rt-main-post-single .post-body h2:first-child,
.rt-main-post-single .post-body h3:first-child { margin-top: 0; }

/* ---------- Paragraf & bağlantı ---------- */
.rt-main-post-single .post-body p { line-height: 1.85; margin-bottom: 18px; }
.rt-main-post-single .post-body a {
    color: #16a34a;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.rt-main-post-single .post-body a:hover { color: #15803d; }

/* ---------- Görsel & figure ---------- */
.rt-main-post-single .post-body img { height: auto; border-radius: 10px; }
.rt-main-post-single .post-body figure { margin: 28px 0; }
.rt-main-post-single .post-body figure img { width: 100%; }
.rt-main-post-single .post-body figcaption {
    margin-top: 8px;
    font-size: 13.5px;
    color: #64748b;
    text-align: center;
}

/* ---------- Ayraç ---------- */
.rt-main-post-single .post-body hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 32px 0;
}

/* ---------- Gömülü video (iframe) responsive ---------- */
.rt-main-post-single .post-body iframe {
    max-width: 100%;
    border-radius: 10px;
}

/* ============================================================
   Karanlık tema
   ============================================================ */
[data-theme=dark] .rt-main-post-single .post-body table {
    background: #1e293b;
    border-color: #334155;
}
[data-theme=dark] .rt-main-post-single .post-body table th,
[data-theme=dark] .rt-main-post-single .post-body table td {
    border-bottom-color: #334155;
}
[data-theme=dark] .rt-main-post-single .post-body table thead th {
    background: #0f172a;
    color: #e2e8f0;
    border-bottom-color: #475569;
}
[data-theme=dark] .rt-main-post-single .post-body table tbody tr:nth-child(even) { background: #243244; }
[data-theme=dark] .rt-main-post-single .post-body table tbody tr:hover { background: #2d3e52; }
[data-theme=dark] .rt-main-post-single .post-body table td strong { color: #f1f5f9; }
[data-theme=dark] .rt-main-post-single .post-body blockquote {
    background: #18241c;
    color: #cbd5e1;
}
