/* ============================================================
 * Blog SEO + GEO Bileşenleri
 * TOC, TL;DR, FAQ, Kaynaklar, Istatistikler, Yazar Bio
 * Sticky header offset: 80px (70px header + 10px buffer)
 * ============================================================ */

/* Sticky header offset — TOC ve anchor link kaymaları için */
html { scroll-padding-top: 80px; }
.article-content h2[id],
.article-content h3[id],
.blog-faq h2[id],
.blog-faq h3[id] {
    scroll-margin-top: 80px;
}

/* TL;DR / Direct Answer */
.blog-tldr {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid #2563eb;
    padding: 18px 22px;
    border-radius: 12px;
    margin: 24px 0 32px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.05);
}
.blog-tldr .tldr-baslik {
    font-weight: 700;
    color: #1e40af;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}
.blog-tldr p {
    margin: 0;
    color: #1e293b;
    font-size: 16px;
    line-height: 1.65;
}

/* Reading time + güncelleme */
.article-meta-top .reading-time,
.article-meta-top .article-updated {
    font-size: 13px;
    color: #64748b;
    margin-left: 12px;
}
.article-meta-top .article-updated {
    background: #fef3c7;
    color: #92400e;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
}

/* TOC */
.blog-toc {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 22px;
    margin: 24px 0;
}
.blog-toc .toc-baslik {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #475569;
    margin: 0 0 12px 0;
}
.blog-toc .toc-list {
    margin: 0;
    padding-left: 18px;
}
.blog-toc .toc-list .toc-item {
    margin: 6px 0;
}
.blog-toc .toc-list .toc-h3 {
    list-style-type: disc;
    margin-left: 18px;
    font-size: 14px;
}
.blog-toc .toc-list a {
    color: #1e40af;
    text-decoration: none;
    border-bottom: 1px dotted transparent;
    transition: border-color 0.15s;
}
.blog-toc .toc-list a:hover {
    border-bottom-color: #1e40af;
}
.blog-toc .toc-sub {
    margin-top: 4px;
    padding-left: 18px;
    list-style: disc;
}

/* Istatistikler */
.blog-istatistikler {
    margin: 32px 0;
}
.blog-istatistikler .istatistik-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}
.blog-istatistikler .istatistik-kart {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.blog-istatistikler .istatistik-deger {
    font-size: 28px;
    font-weight: 800;
    color: #2563eb;
    line-height: 1.2;
}
.blog-istatistikler .istatistik-aciklama {
    font-size: 14px;
    color: #334155;
    margin-top: 6px;
    line-height: 1.4;
}
.blog-istatistikler .istatistik-kaynak {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 8px;
    font-style: italic;
}

/* FAQ */
.blog-faq {
    margin: 40px 0;
    padding: 28px;
    background: #fafafa;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
}
.blog-faq .faq-baslik {
    margin-top: 0;
    font-size: 22px;
    color: #111827;
}
.blog-faq .faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}
.blog-faq .faq-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 18px;
}
.blog-faq .faq-item summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.blog-faq .faq-item summary::-webkit-details-marker { display: none; }
.blog-faq .faq-item summary::after {
    content: '+';
    font-size: 22px;
    color: #6b7280;
    transition: transform 0.2s;
}
.blog-faq .faq-item[open] summary::after {
    content: '−';
}
.blog-faq .faq-item h3 {
    margin: 0;
    font-size: 16px;
    color: #1f2937;
    font-weight: 600;
}
.blog-faq .faq-cevap {
    margin-top: 12px;
    color: #4b5563;
    line-height: 1.65;
    font-size: 15px;
}

/* Kaynaklar */
.blog-kaynaklar {
    margin: 36px 0;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}
.blog-kaynaklar .kaynaklar-baslik {
    font-size: 18px;
    color: #1f2937;
    margin: 0 0 12px;
}
.blog-kaynaklar .kaynak-list {
    padding-left: 22px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.7;
}
.blog-kaynaklar .kaynak-item {
    margin: 4px 0;
}
.blog-kaynaklar .kaynak-list a {
    color: #2563eb;
    text-decoration: none;
}
.blog-kaynaklar .kaynak-list a:hover {
    text-decoration: underline;
}

/* Yazar Bio Kart */
.yazar-bio-kart {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin: 40px 0 20px;
    padding: 22px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
}
.yazar-bio-kart .yazar-bio-foto {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.yazar-bio-kart .yazar-bio-icerik {
    flex: 1;
}
.yazar-bio-kart h4 {
    margin: 0 0 4px;
    color: #6b7280;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.yazar-bio-kart strong {
    display: block;
    font-size: 17px;
    color: #111827;
    margin-bottom: 2px;
}
.yazar-bio-kart .yazar-unvan {
    color: #6b7280;
    font-size: 13px;
}
.yazar-bio-kart p {
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}
.yazar-bio-kart .yazar-uzmanlik {
    font-size: 13px;
    color: #4b5563;
    margin-top: 6px;
}
.yazar-bio-kart .yazar-sosyal {
    margin-top: 12px;
    display: flex;
    gap: 10px;
}
.yazar-bio-kart .yazar-sosyal a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #4b5563;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.15s;
}
.yazar-bio-kart .yazar-sosyal a:hover {
    background: #2563eb;
    color: #fff;
}

/* Author meta on header */
.article-meta-bottom .author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.article-meta-bottom .author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}
.article-meta-bottom .author-title {
    display: block;
    color: #94a3b8;
    font-size: 12px;
}

/* Definition box (AI prompt'unda kullaniliyor) */
.article-content blockquote.definition-box {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 14px 18px;
    border-radius: 10px;
    color: #78350f;
    margin: 18px 0;
    font-style: normal;
}
.article-content blockquote.definition-box strong {
    color: #92400e;
}

/* Lead paragraph (AI prompt'unda <p class="lead">) */
.article-content p.lead {
    font-size: 19px;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.55;
    margin-bottom: 24px;
}

/* Article footer paylaşım */
.share-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.share-buttons .share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.share-buttons .share-btn:hover {
    background: #2563eb;
    color: #fff;
}

/* Taslak uyari */
.taslak-uyari {
    background: linear-gradient(90deg, #f59e0b, #ea580c);
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
}
.taslak-uyari .taslak-uyari-icerik {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.taslak-uyari .taslak-rozet {
    background: rgba(255,255,255,0.25);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}
.taslak-uyari .taslak-yonetim-link {
    background: rgba(255,255,255,0.95);
    color: #ea580c;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

/* Article image figcaption */
.article-image-container figcaption {
    margin-top: 8px;
    font-size: 13px;
    color: #6b7280;
    text-align: center;
    font-style: italic;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .yazar-bio-kart {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .yazar-bio-kart .yazar-sosyal {
        justify-content: center;
    }
    .blog-istatistikler .istatistik-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .article-meta-top {
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* ============================================================
 * Dark Mode — prefers-color-scheme + manuel class
 * ============================================================ */
@media (prefers-color-scheme: dark) {
    /* TL;DR */
    .blog-tldr {
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
        border-left-color: #60a5fa;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    .blog-tldr .tldr-baslik { color: #93c5fd; }
    .blog-tldr p { color: #e2e8f0; }

    /* Reading time + güncelleme */
    .article-meta-top .reading-time { color: #94a3b8; }
    .article-meta-top .article-updated {
        background: #422006;
        color: #fbbf24;
    }

    /* TOC */
    .blog-toc {
        background: #1e293b;
        border-color: #334155;
        color: #e2e8f0;
    }
    .blog-toc .toc-baslik { color: #cbd5e1; }
    .blog-toc .toc-list a {
        color: #93c5fd;
    }
    .blog-toc .toc-list a:hover {
        border-bottom-color: #93c5fd;
        color: #bfdbfe;
    }

    /* Istatistikler */
    .blog-istatistikler .istatistik-kart {
        background: #1e293b;
        border-color: #334155;
        box-shadow: 0 1px 3px rgba(0,0,0,0.25);
    }
    .blog-istatistikler .istatistik-deger { color: #60a5fa; }
    .blog-istatistikler .istatistik-aciklama { color: #cbd5e1; }
    .blog-istatistikler .istatistik-kaynak { color: #64748b; }

    /* FAQ */
    .blog-faq {
        background: #0f172a;
        border-color: #1e293b;
    }
    .blog-faq .faq-baslik { color: #f1f5f9; }
    .blog-faq .faq-item {
        background: #1e293b;
        border-color: #334155;
    }
    .blog-faq .faq-item h3 { color: #e2e8f0; }
    .blog-faq .faq-item summary::after { color: #94a3b8; }
    .blog-faq .faq-cevap { color: #cbd5e1; }

    /* Kaynaklar */
    .blog-kaynaklar { border-top-color: #334155; }
    .blog-kaynaklar .kaynaklar-baslik { color: #f1f5f9; }
    .blog-kaynaklar .kaynak-list { color: #cbd5e1; }
    .blog-kaynaklar .kaynak-list a { color: #93c5fd; }

    /* Yazar Bio Kart */
    .yazar-bio-kart {
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
        border-color: #334155;
    }
    .yazar-bio-kart .yazar-bio-foto {
        border-color: #0f172a;
        box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    }
    .yazar-bio-kart h4 { color: #94a3b8; }
    .yazar-bio-kart strong { color: #f1f5f9; }
    .yazar-bio-kart .yazar-unvan { color: #94a3b8; }
    .yazar-bio-kart p { color: #cbd5e1; }
    .yazar-bio-kart .yazar-uzmanlik { color: #cbd5e1; }
    .yazar-bio-kart .yazar-sosyal a {
        background: #334155;
        color: #cbd5e1;
    }
    .yazar-bio-kart .yazar-sosyal a:hover {
        background: #3b82f6;
        color: #fff;
    }

    /* Author header */
    .article-meta-bottom .author-title { color: #64748b; }

    /* Definition box */
    .article-content blockquote.definition-box {
        background: #422006;
        border-left-color: #f59e0b;
        color: #fde68a;
    }
    .article-content blockquote.definition-box strong { color: #fbbf24; }

    /* Lead paragraph */
    .article-content p.lead { color: #f1f5f9; }

    /* Share buttons */
    .share-buttons .share-btn {
        background: #1e293b;
        color: #cbd5e1;
    }
    .share-buttons .share-btn:hover {
        background: #3b82f6;
        color: #fff;
    }

    /* Article image figcaption */
    .article-image-container figcaption { color: #94a3b8; }
}

/* Manuel dark mode class — siteye tema toggle eklerseniz */
body.dark-mode .blog-tldr,
[data-theme="dark"] .blog-tldr {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-left-color: #60a5fa;
}
body.dark-mode .blog-tldr p,
[data-theme="dark"] .blog-tldr p { color: #e2e8f0; }
body.dark-mode .blog-toc,
[data-theme="dark"] .blog-toc {
    background: #1e293b;
    border-color: #334155;
}
body.dark-mode .blog-toc .toc-baslik,
[data-theme="dark"] .blog-toc .toc-baslik { color: #cbd5e1; }
body.dark-mode .blog-toc .toc-list a,
[data-theme="dark"] .blog-toc .toc-list a { color: #93c5fd; }
body.dark-mode .blog-faq,
[data-theme="dark"] .blog-faq {
    background: #0f172a;
    border-color: #1e293b;
}
body.dark-mode .blog-faq .faq-item,
[data-theme="dark"] .blog-faq .faq-item {
    background: #1e293b;
    border-color: #334155;
}
body.dark-mode .blog-faq .faq-item h3,
[data-theme="dark"] .blog-faq .faq-item h3 { color: #e2e8f0; }
body.dark-mode .blog-faq .faq-cevap,
[data-theme="dark"] .blog-faq .faq-cevap { color: #cbd5e1; }
body.dark-mode .blog-istatistikler .istatistik-kart,
[data-theme="dark"] .blog-istatistikler .istatistik-kart {
    background: #1e293b;
    border-color: #334155;
}
body.dark-mode .yazar-bio-kart,
[data-theme="dark"] .yazar-bio-kart {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: #334155;
}
body.dark-mode .yazar-bio-kart strong,
[data-theme="dark"] .yazar-bio-kart strong { color: #f1f5f9; }
body.dark-mode .yazar-bio-kart p,
[data-theme="dark"] .yazar-bio-kart p { color: #cbd5e1; }
