/*
 * MAKALE GÖVDESİ STİLLERİ
 * ---------------------------------------------------------------------------
 * Blog yazılarının İÇERİĞİ bu sınıfları kullanır. İçerik veritabanında
 * (blog_posts.content) HTML olarak duruyor, dolayısıyla stilinin de tek bir
 * yerde durması gerekiyor — yoksa her yazıya kendi <style> bloğunu gömmek
 * gerekirdi.
 *
 * NEDEN AYRI DOSYA: bu kurallar eskiden blog/ altındaki üç statik PHP
 * dosyasının içinde, üç ayrı kopya halinde duruyordu. Yazılar veritabanına
 * taşınınca stilleri de tek dosyada birleştirildi; yeni yazı eklerken CSS
 * yazmak gerekmiyor, sadece aşağıdaki sınıflar kullanılıyor.
 *
 * Sayfa iskeletine (breadcrumb, sidebar, kart) ait kurallar BURAYA GİRMEZ —
 * onlar blog_detail.php'nin kendi <style> bloğunda.
 */

/* ---------- Temel tipografi ---------- */
.blog-detail-content {
    line-height: 1.8;
    color: #333;
    font-size: 1.02rem;
}

.blog-detail-content h2 {
    color: #3790da;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
    font-size: 1.6rem;
    border-left: 4px solid #3790da;
    padding-left: 15px;
    /* Uzun başlıklar dar ekranda taşmasın. */
    overflow-wrap: break-word;
}

.blog-detail-content h3 {
    color: #23527c;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.25rem;
}

.blog-detail-content h4 {
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 1.08rem;
}

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

.blog-detail-content ul,
.blog-detail-content ol {
    margin-bottom: 1.15rem;
    padding-left: 1.35rem;
}

.blog-detail-content li {
    margin-bottom: 0.5rem;
}

.blog-detail-content a {
    color: #2c7cd1;
    text-decoration: underline;
}

.blog-detail-content a:hover {
    color: #1c5ba3;
}

/* ---------- Kutular ---------- */
.highlight-box,
.info-box {
    background: #eef6fd;
    border-left: 4px solid #3790da;
    padding: 1.35rem 1.5rem;
    margin: 1.75rem 0;
    border-radius: 0 10px 10px 0;
}

.highlight-box h4,
.info-box h4 {
    margin-top: 0;
    color: #23527c;
}

.highlight-box p:last-child,
.info-box p:last-child {
    margin-bottom: 0;
}

/* Dikkat çekilmesi gereken, yanlış bilinen konular için. */
.uyari-kutu {
    background: #fff8e6;
    border-left: 4px solid #f0ad4e;
    padding: 1.35rem 1.5rem;
    margin: 1.75rem 0;
    border-radius: 0 10px 10px 0;
}

.uyari-kutu h4 {
    margin-top: 0;
    color: #8a6100;
}

.uyari-kutu p:last-child {
    margin-bottom: 0;
}

/* Mevzuat alıntısı — madde metnini birebir verirken. */
.mevzuat-alinti {
    background: #f6f7f9;
    border-left: 4px solid #6c757d;
    padding: 1.15rem 1.4rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #444;
}

.mevzuat-alinti cite {
    display: block;
    margin-top: 0.6rem;
    font-style: normal;
    font-size: 0.88rem;
    color: #6c757d;
}

/* ---------- Tablolar ---------- */
/*
 * Tablolar dar ekranda SAYFAYI yatay kaydırmamalı; kendi kutusu içinde
 * kaymalı. Bu yüzden her tablo .tablo-kaydir sarmalayıcısına konuyor.
 */
.tablo-kaydir {
    overflow-x: auto;
    margin: 1.75rem 0;
    -webkit-overflow-scrolling: touch;
}

.info-table,
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    /* Sütunlar sıkışıp okunmaz hale gelmesin; sarmalayıcı kaydırır. */
    min-width: 520px;
}

.info-table th,
.comparison-table th {
    background: #3790da;
    color: #fff;
    padding: 0.9rem 1rem;
    text-align: left;
    font-weight: 600;
    border: none;
}

.info-table td,
.comparison-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #e4e8ec;
    vertical-align: top;
}

.info-table tbody tr:nth-child(even),
.comparison-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.comparison-table th {
    text-align: center;
}

.comparison-table td {
    text-align: center;
}

/* Karşılaştırma tablolarında hücre vurguları. */
.pro-cell,
.good-cell,
.excellent-cell {
    background: #e7f5ea !important;
    color: #1b6b33;
    font-weight: 600;
}

.con-cell,
.poor-cell {
    background: #fdeaec !important;
    color: #8d232f;
}

/* ---------- Liste / kart bileşenleri ---------- */
.feature-list {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    margin: 1.75rem 0;
}

.feature-list h4:first-child {
    margin-top: 0;
}

.feature-list ul:last-child,
.feature-list ol:last-child {
    margin-bottom: 0;
}

.advantage-card,
.criteria-card {
    background: #f8f9fa;
    border-left: 5px solid #28a745;
    padding: 1.5rem 1.75rem;
    margin: 1.5rem 0;
    border-radius: 0 12px 12px 0;
    /* float edilen numara kartın dışına taşmasın. */
    overflow: hidden;
}

.criteria-card {
    border-left-color: #3790da;
}

.advantage-number,
.criteria-number {
    background: #28a745;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    float: left;
    margin-right: 15px;
    margin-top: 2px;
}

.criteria-number {
    background: #3790da;
}

.advantage-card h3,
.criteria-card h3,
.advantage-card h4,
.criteria-card h4 {
    margin-top: 0;
    overflow: hidden;
}

.tech-specs {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    margin: 1.75rem 0;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #e4e8ec;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-value {
    font-weight: 600;
    color: #3790da;
    text-align: right;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.5rem 0;
}

.checklist-icon {
    color: #28a745;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

/* ---------- Hesap örneği ---------- */
/*
 * Okuyucunun asıl aradığı şey çoğu zaman "benim faturam nasıl çıktı".
 * Adım adım hesap bu kutuda veriliyor.
 */
.hesap-ornegi {
    background: #fff;
    border: 2px solid #3790da;
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    margin: 1.75rem 0;
}

.hesap-ornegi h4 {
    margin-top: 0;
    color: #3790da;
}

.hesap-ornegi .adim {
    padding: 0.7rem 0;
    border-bottom: 1px dashed #d8e2ea;
}

.hesap-ornegi .adim:last-child {
    border-bottom: none;
}

.hesap-ornegi .formul {
    display: block;
    background: #f4f8fc;
    border-radius: 8px;
    padding: 0.7rem 0.9rem;
    margin: 0.5rem 0;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.94rem;
    color: #1c3f5f;
    /* Uzun formüller dar ekranda taşmasın. */
    overflow-x: auto;
    white-space: nowrap;
}

.hesap-ornegi .sonuc {
    background: #e7f5ea;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    margin-top: 1rem;
    font-weight: 600;
    color: #1b6b33;
}

/* ---------- Sıkça sorulan sorular ---------- */
/*
 * Bu blok aynı zamanda MAKİNE tarafından okunuyor: blog_detail.php içindeki
 * makale_sss_cikar() buradaki soru/cevap çiftlerini ayıklayıp Google'a
 * FAQPage yapılandırılmış verisi olarak bildiriyor. Bu yüzden yapısı
 * (div.sss > div.sss-oge > h3.sss-soru + div.sss-cevap) SABİT — değiştirirsen
 * o fonksiyonu da güncelle.
 */
.sss {
    margin: 2rem 0;
}

.sss-oge {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.15rem 1.4rem;
    margin-bottom: 0.85rem;
}

.sss-oge .sss-soru {
    margin: 0 0 0.6rem 0;
    font-size: 1.08rem;
    font-weight: 600;
    color: #23527c;
}

.sss-oge .sss-cevap p:last-child {
    margin-bottom: 0;
}

/* ---------- Kaynakça ---------- */
.kaynakca {
    background: #f6f7f9;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0 0 0;
    font-size: 0.93rem;
}

.kaynakca h4 {
    margin-top: 0;
    font-size: 1rem;
    color: #495057;
}

.kaynakca ul {
    margin-bottom: 0;
}

/* ---------- Yazı sonu çağrısı ---------- */
.makale-cta {
    background: linear-gradient(135deg, #3790da, #2c7cd1);
    color: #fff;
    border-radius: 14px;
    padding: 2rem;
    margin: 2.5rem 0 0 0;
    text-align: center;
}

.makale-cta h3 {
    color: #fff;
    margin-top: 0;
}

.makale-cta p {
    margin-bottom: 1.25rem;
    opacity: 0.95;
}

.makale-cta .btn {
    background: #fff;
    color: #2c7cd1;
    font-weight: 600;
    padding: 0.7rem 1.6rem;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    margin: 0.25rem;
}

.makale-cta .btn:hover {
    background: #eaf3fb;
    color: #1c5ba3;
    text-decoration: none;
}

/* ---------- İlgili yazılar ---------- */
.ilgili-yazilar {
    margin-top: 2.5rem;
}

.ilgili-yazilar h4 {
    color: #3790da;
    margin-bottom: 1rem;
}

.ilgili-yazi {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.75rem;
    text-decoration: none;
    color: #333;
    transition: background 0.2s ease;
}

.ilgili-yazi:hover {
    background: #eef6fd;
    color: #23527c;
    text-decoration: none;
}

.ilgili-yazi img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.ilgili-yazi .baslik {
    font-weight: 600;
    line-height: 1.35;
}

/* ---------- Dar ekran ---------- */
@media (max-width: 575px) {
    .blog-detail-content h2 {
        font-size: 1.35rem;
    }

    .highlight-box,
    .info-box,
    .uyari-kutu,
    .feature-list,
    .advantage-card,
    .criteria-card,
    .tech-specs,
    .hesap-ornegi {
        padding: 1.1rem 1.15rem;
    }

    /* Etiket/değer alt alta gelsin, sıkışıp okunmaz olmasın. */
    .spec-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.15rem;
    }

    .spec-value {
        text-align: left;
    }

    .makale-cta {
        padding: 1.5rem 1.15rem;
    }
}
