/**
 * Sade Tema — theme.css
 *
 * Kapsam: critical CSS layout'ta inline. Bu dosya defer-like swap ile yüklenir.
 * Görev: extra style'lar (yorumlar, ilgili lazy, mobil menü açılır, etc.)
 *
 * Hedef boyut: ~6 KB minified
 */

/* ===================== Tipografi (extra) ===================== */
.sf-icerik h2 {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: .35em;
}
.sf-icerik h2::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 1em;
    background: #0066cc;
    margin-right: 10px;
    vertical-align: -.1em;
    border-radius: 2px;
}

/* ===================== Drop cap (uzun yazılar için opsiyonel) ===================== */
.sf-icerik > p:first-of-type::first-letter {
    float: left;
    font-size: 3rem;
    line-height: .9;
    padding: 4px 8px 0 0;
    font-weight: 700;
    color: #0a0e1a;
    font-family: Georgia, 'Merriweather', serif;
}

/* ===================== Yorumlar ===================== */
.sf-yorumlar-icerik { padding-top: 16px }
.sf-yorum {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 12px;
    background: #f9fafb;
}
.sf-yorum-ust {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
    gap: 10px;
}
.sf-yorum-ad { font-weight: 700; color: #0a0e1a; font-size: .95rem }
.sf-yorum-tarih { font-size: .78rem; color: #9ca3af }
.sf-yorum-metin { color: #374151; line-height: 1.6; font-size: .95rem }
.sf-yorum-form {
    margin-top: 20px;
    padding: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}
.sf-yorum-form input,
.sf-yorum-form textarea {
    display: block;
    width: 100%;
    padding: 9px 12px;
    margin-bottom: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: .95rem;
    font-family: inherit;
}
.sf-yorum-form textarea { min-height: 90px; resize: vertical }
.sf-yorum-form button {
    padding: 10px 22px;
    background: #0066cc;
    color: #fff;
    border: 0;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: .95rem;
}
.sf-yorum-form button:hover { background: #0052a3 }

/* ===================== Mobil menü açılır ===================== */
.sf-mobil-menu {
    position: fixed;
    top: 60px;
    right: 0;
    bottom: 0;
    width: 280px;
    background: #fff;
    border-left: 1px solid #e5e7eb;
    padding: 20px;
    transform: translateX(100%);
    transition: transform .25s;
    z-index: 49;
    box-shadow: -4px 0 20px rgba(0,0,0,.08);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sf-mobil-menu[data-acik="1"] { transform: translateX(0) }
.sf-mobil-menu a {
    padding: 10px 12px;
    color: #374151;
    border-radius: 6px;
    font-weight: 500;
    font-size: .95rem;
}
.sf-mobil-menu a:hover {
    background: #f3f4f6;
    text-decoration: none;
    color: #0066cc;
}
.sf-mobil-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
    z-index: 48;
}
.sf-mobil-overlay[data-acik="1"] { opacity: 1; pointer-events: auto }

/* ===================== Reading progress bar ===================== */
.sf-okuma-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #0066cc;
    z-index: 60;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .15s;
}

/* ===================== TOC (yazı detay) ===================== */
.sf-toc {
    margin: 24px 0;
    padding: 16px 18px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}
.sf-toc-baslik {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #6b7280;
    font-weight: 700;
    margin: 0 0 8px;
}
.sf-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sf-toc li { margin: 4px 0 }
.sf-toc a {
    display: block;
    padding: 4px 6px;
    border-left: 2px solid transparent;
    color: #374151;
    font-size: .92rem;
    line-height: 1.45;
    border-radius: 0 4px 4px 0;
}
.sf-toc a:hover {
    color: #0066cc;
    border-left-color: #0066cc;
    background: rgba(0,102,204,.05);
    text-decoration: none;
}
.sf-toc a.aktif {
    color: #0066cc;
    border-left-color: #0066cc;
    font-weight: 600;
}

/* ===================== Sosyal paylaşım ===================== */
.sf-sosyal {
    display: flex;
    gap: 8px;
    margin: 20px 0;
    flex-wrap: wrap;
}
.sf-sosyal a, .sf-sosyal button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
    color: #374151;
    font-size: .85rem;
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
}
.sf-sosyal a:hover, .sf-sosyal button:hover {
    border-color: #0066cc;
    color: #0066cc;
}
.sf-sosyal-tw:hover { color: #1da1f2; border-color: #1da1f2 }
.sf-sosyal-fb:hover { color: #1877f2; border-color: #1877f2 }
.sf-sosyal-wa:hover { color: #25d366; border-color: #25d366 }

/* ===================== AdSense Wrapper Detayları ===================== */
.sf-ad-header { min-height: 100px }
.sf-ad-icerik_basi, .sf-ad-icerik_sonu { min-height: 280px }
.sf-ad-icerik_h2 { min-height: 280px; margin: 24px 0 }
@media (min-width: 768px) {
    .sf-ad-header { min-height: 250px }
}
@media (min-width: 1024px) {
    .sf-ad-header { min-height: 90px }
}

/* ===================== 2026-04-25 Sezai: Yazı detay metin konfor padding =====================
   Patron: "yazılar kenarlara çok yakın". Reklamlar (.sf-ad) DOKUNULMAZ — sadece metin
   elementlerine ek 8px padding (kapsayıcı 16 + element 8 = 24px effektif boşluk mobilde). */
@media (max-width: 639px) {
    .sf-bc,
    .sf-icerik,
    .sf-yorum-form,
    .sf-yorumlar-icerik,
    article.sf-hero > .sf-kart-kat,
    article.sf-hero > .sf-hero-baslik,
    article.sf-hero > .sf-hero-spot,
    article.sf-hero > .sf-hero-meta,
    article.sf-hero > .sf-hero-kapak {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    /* Hero görsel için padding yerine margin-inline (görsel kendi içinde aspect ratio koruyor) */
    article.sf-hero > .sf-hero-kapak {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 8px;
        margin-right: 8px;
    }
    /* H2 / H3 başlıklar (içerik içi) — yazı parlaklığı için biraz fazla */
    .sf-icerik h2,
    .sf-icerik h3 {
        margin-left: 0;
        margin-right: 0;
    }
    /* Yorum bölümü başlığı + Yükle butonu */
    #sf-yorumlar > h2,
    #sf-ilgili > h2 {
        padding-left: 8px;
        padding-right: 8px;
    }
    /* Sonuncu — pagination wrapper hafif boşluk */
    .sf-sayfalama {
        padding-left: 6px;
        padding-right: 6px;
    }
}
