/* ═══════════════════════════════════════════════════════════
   BLOG — BAĞIMSIZ ARAYÜZ

   ── NEDEN SIFIRDAN ──
   Blog sayfaları style.css yüklemiyor (o dosya 3000 satır ve
   tamamı ölçüm arayüzü için). Ama başlıkta .header, .header-btn,
   .beta-tag gibi style.css sınıfları kullanılıyordu; tanımsız
   kaldıkları için sayfa dağılmış görünüyordu.

   Burada blogun kendi bileşenleri var, hepsi "bh-" önekli.
   Ana uygulamanın hiçbir sınıfına bağlı değil. Yalnızca
   theme-vars.css'teki renk değişkenlerini kullanıyor ki
   koyu/açık tema anahtarı çalışmaya devam etsin.

   ── TASARIM KARARLARI ──
   • Okuma genişliği 68 karakter civarı: göz satır başını
     kaybetmesin.
   • Gövde yazısı 1.05rem / 1.75 satır aralığı — ekrandan uzun
     metin okumak için kâğıttan daha ferah olmalı.
   • Hareket az ve kısa. Kaydırırken zıplayan bir sayfa
     okumayı zorlaştırıyor.
   • prefers-reduced-motion açıksa animasyonlar kapanıyor.
   ═══════════════════════════════════════════════════════════ */

.bh {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
                 Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ── Zemin ──
   Sabit duran yumuşak bir ışık katmanı. Kaydırırken hareket
   etmiyor; hareket etseydi okumayı böler. */
.bh-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 55% at 50% -10%, rgba(102, 126, 234, .18), transparent 70%),
        radial-gradient(ellipse 50% 40% at 90% 8%, rgba(240, 147, 251, .10), transparent 65%),
        radial-gradient(ellipse 60% 45% at 5% 25%, rgba(67, 233, 123, .07), transparent 60%);
}
[data-theme="light"] .bh-bg {
    background:
        radial-gradient(ellipse 70% 55% at 50% -10%, rgba(102, 126, 234, .13), transparent 70%),
        radial-gradient(ellipse 50% 40% at 90% 8%, rgba(240, 147, 251, .09), transparent 65%);
}

/* ═══════════════ ÜST BAR ═══════════════ */
.bh-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 26px;
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-bottom: 1px solid var(--border);
}

.bh-logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
}
.bh-logo b { font-weight: 700; }
.bh-logo .bh-bolt {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: .95rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 3px 14px rgba(102, 126, 234, .38);
}
.bh-beta {
    padding: 2px 7px;
    border-radius: 6px;
    font-size: .58rem;
    font-weight: 800;
    font-style: normal;
    letter-spacing: .1em;
    color: #fff;
    background: linear-gradient(135deg, #f0932b, #eb4d4b);
}

.bh-nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bh-link {
    padding: 8px 14px;
    border-radius: 9px;
    font-size: .87rem;
    font-weight: 500;
    color: var(--text-2);
    text-decoration: none;
    transition: color .16s, background .16s;
}
.bh-link:hover { color: var(--text); background: var(--surface-2); }
.bh-link.is-active { color: var(--text); background: var(--surface-2); }

.bh-cta {
    padding: 8px 16px;
    border-radius: 9px;
    font-size: .87rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 3px 14px rgba(102, 126, 234, .3);
    transition: transform .16s, box-shadow .16s;
}
.bh-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(102, 126, 234, .42); }

.bh-tema {
    display: flex;
    gap: 2px;
    padding: 3px;
    border-radius: 9px;
    background: var(--surface-2);
    border: 1px solid var(--border);
}
.bh-tema button {
    width: 28px;
    height: 26px;
    border: 0;
    border-radius: 6px;
    background: none;
    cursor: pointer;
    font-size: .82rem;
    opacity: .5;
    transition: opacity .16s, background .16s;
}
.bh-tema button:hover { opacity: .9; }
.bh-tema button.active { opacity: 1; background: var(--surface-hi, var(--surface-3)); }

/* Okuma ilerlemesi — yalnızca yazı sayfasında */
.bh-ilerleme {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 60;
    transform: scaleX(0);
    transform-origin: 0 50%;
    background: linear-gradient(90deg, #667eea, #f093fb);
    will-change: transform;
}

/* ═══════════════ GÖVDE ═══════════════ */
.bh-main {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 26px 80px;
}

/* ── Giriş bölümü ── */
.bh-hero {
    padding: 62px 0 30px;
    text-align: center;
}
.bh-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 5vw, 3.1rem);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.08;
    background: linear-gradient(135deg, var(--text) 30%, var(--primary) 75%, var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.bh-hero p {
    max-width: 620px;
    margin: 0 auto;
    font-size: 1.03rem;
    line-height: 1.7;
    color: var(--text-2);
}

.bh-rozet {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 6px 15px 6px 8px;
    border-radius: 30px;
    font-size: .8rem;
    color: var(--text-2);
    background: rgba(67, 233, 123, .09);
    border: 1px solid rgba(67, 233, 123, .28);
}
.bh-rozet b { color: var(--text); font-weight: 600; }
.bh-rozet i {
    display: grid;
    place-items: center;
    width: 22px; height: 22px;
    border-radius: 50%;
    font-style: normal;
    font-size: .72rem;
    background: rgba(67, 233, 123, .16);
}

/* ── Arama ── */
.bh-ara-sar {
    position: relative;
    max-width: 520px;
    margin: 30px auto 0;
}
.bh-ara {
    width: 100%;
    padding: 14px 46px 14px 46px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    font-family: inherit;
    font-size: .95rem;
    transition: border-color .18s, box-shadow .18s;
}
.bh-ara::placeholder { color: var(--text-3); }
.bh-ara:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-bg, rgba(102, 126, 234, .14));
}
.bh-ara::-webkit-search-cancel-button { display: none; }

.bh-ara-ikon {
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    font-size: .95rem;
    opacity: .45;
    pointer-events: none;
}
.bh-ara-temizle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px; height: 26px;
    border: 0;
    border-radius: 50%;
    background: var(--surface-3);
    color: var(--text-2);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}
.bh-ara-temizle:hover { background: var(--surface-hi, var(--border)); color: var(--text); }

.bh-ara-sayac {
    display: block;
    margin-top: 10px;
    text-align: center;
    font-size: .8rem;
    color: var(--text-3);
    min-height: 1em;
}

/* ── Kart ızgarası ── */
.bh-izgara {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
    margin-top: 38px;
}

.bh-kart {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px 24px 20px;
    border-radius: 18px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    text-decoration: none;
    overflow: hidden;
    transition: transform .2s cubic-bezier(.2, .8, .3, 1),
                border-color .2s, box-shadow .2s;
}
/* Üst kenardaki ince renk çizgisi — yalnızca üzerine gelince */
.bh-kart::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #f093fb, #43e97b);
    opacity: 0;
    transition: opacity .2s;
}
.bh-kart:hover {
    transform: translateY(-3px);
    border-color: var(--border-hi, var(--primary));
    box-shadow: var(--shadow-lg, 0 14px 40px rgba(0, 0, 0, .3));
}
.bh-kart:hover::before { opacity: 1; }

.bh-etiketler {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 13px;
}
.bh-etiketler span {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--primary);
    background: var(--primary-bg, rgba(102, 126, 234, .12));
}

.bh-kart h2 {
    margin: 0 0 10px;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.015em;
    color: var(--text);
}
.bh-kart p {
    margin: 0 0 18px;
    font-size: .89rem;
    line-height: 1.65;
    color: var(--text-2);
    flex: 1;
}
.bh-kart-alt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .76rem;
    color: var(--text-3);
}
.bh-kart-ok {
    color: var(--primary);
    font-weight: 600;
    transition: transform .2s;
}
.bh-kart:hover .bh-kart-ok { transform: translateX(3px); }

.bh-bos {
    grid-column: 1 / -1;
    padding: 46px 20px;
    text-align: center;
    color: var(--text-3);
    font-size: .93rem;
    border: 1px dashed var(--border);
    border-radius: 18px;
}

/* ═══════════════ YAZI SAYFASI ═══════════════ */
.bh-yazi {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 26px 90px;
}

.bh-geri {
    display: inline-block;
    margin: 34px 0 26px;
    font-size: .85rem;
    color: var(--text-3);
    text-decoration: none;
    transition: color .16s;
}
.bh-geri:hover { color: var(--primary); }

.bh-yazi-bas h1 {
    margin: 0 0 16px;
    font-size: clamp(1.75rem, 4.2vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.03em;
    color: var(--text);
}
.bh-yazi-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-bottom: 26px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border);
    font-size: .82rem;
    color: var(--text-3);
}

/* ── Okuma metni ──
   Uzun metin için ayarlar: 1.05rem gövde, 1.78 satır aralığı,
   başlıklar arasında nefes payı. */
.bh-icerik {
    font-size: 1.05rem;
    line-height: 1.78;
    color: var(--text-2);
}
.bh-icerik h2 {
    margin: 46px 0 14px;
    font-size: 1.42rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.02em;
    color: var(--text);
}
.bh-icerik h3 {
    margin: 32px 0 10px;
    font-size: 1.1rem;
    font-weight: 650;
    color: var(--text);
}
.bh-icerik p { margin: 0 0 20px; }
.bh-icerik strong { color: var(--text); font-weight: 650; }
.bh-icerik a { color: var(--primary); text-decoration: none; border-bottom: 1px solid transparent; }
.bh-icerik a:hover { border-bottom-color: var(--primary); }
.bh-icerik ul, .bh-icerik ol { margin: 0 0 22px; padding-left: 24px; }
.bh-icerik li { margin-bottom: 10px; }

/* Giriş paragrafı */
.bh-icerik .lead {
    font-size: 1.14rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 30px;
    padding-left: 18px;
    border-left: 3px solid var(--primary);
}

/* Uyarı kutusu */
.bh-icerik .doc-warn {
    margin: 26px 0;
    padding: 17px 20px;
    border-radius: 14px;
    background: var(--warning-bg, rgba(240, 147, 43, .08));
    border: 1px solid rgba(240, 147, 43, .28);
    font-size: .97rem;
    line-height: 1.7;
}
.bh-icerik .doc-note {
    margin: 26px 0 0;
    font-size: .86rem;
    color: var(--text-3);
    line-height: 1.65;
}

/* Tablolar */
.bh-icerik .doc-table {
    width: 100%;
    margin: 24px 0;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .92rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}
.bh-icerik .doc-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 650;
    font-size: .84rem;
    letter-spacing: .02em;
    color: var(--text-3);
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}
.bh-icerik .doc-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
    color: var(--text-2);
}
.bh-icerik .doc-table tr:last-child td { border-bottom: 0; }

/* Kod */
.bh-kod {
    margin: 18px 0 22px;
    padding: 15px 17px;
    border-radius: 12px;
    background: var(--surface-1, var(--surface-2));
    border: 1px solid var(--border);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .84rem;
    line-height: 1.65;
    color: var(--text-2);
    overflow-x: auto;
    white-space: pre;
}
.bh-icerik code {
    padding: 2px 7px;
    border-radius: 6px;
    background: var(--surface-3, var(--surface-2));
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .88em;
    color: var(--text);
}

/* ── Kaynakça ──
   Görünür olması bilinçli: okuyucu iddiayı doğrulayabilmeli. */
.bh-kaynak {
    margin-top: 52px;
    padding: 22px 24px;
    border-radius: 16px;
    background: var(--surface-2);
    border: 1px solid var(--border);
}
.bh-kaynak h2 { margin: 0 0 6px; font-size: .98rem; font-weight: 650; color: var(--text); }
.bh-kaynak > p { margin: 0 0 14px; font-size: .83rem; color: var(--text-3); line-height: 1.6; }
.bh-kaynak ul { margin: 0; padding-left: 20px; }
.bh-kaynak li { margin-bottom: 8px; font-size: .87rem; line-height: 1.55; }
.bh-kaynak a { color: var(--primary); text-decoration: none; }
.bh-kaynak a:hover { text-decoration: underline; }

/* ── Ölçüme yönlendirme ── */
.bh-olc {
    margin: 52px 0 0;
    padding: 30px 30px;
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(102, 126, 234, .14), rgba(240, 147, 251, .10)),
        var(--surface-2);
    border: 1px solid var(--border-hi, var(--border));
    text-align: center;
}
.bh-olc strong {
    display: block;
    font-size: 1.14rem;
    font-weight: 700;
    letter-spacing: -.015em;
    color: var(--text);
    margin-bottom: 8px;
}
.bh-olc p {
    max-width: 460px;
    margin: 0 auto 20px;
    font-size: .92rem;
    line-height: 1.65;
    color: var(--text-2);
}
.bh-olc a {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 12px;
    font-weight: 650;
    font-size: .93rem;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 5px 20px rgba(102, 126, 234, .32);
    transition: transform .18s, box-shadow .18s;
}
.bh-olc a:hover { transform: translateY(-2px); box-shadow: 0 9px 28px rgba(102, 126, 234, .44); }

/* ── Diğer yazılar ── */
.bh-diger { margin-top: 52px; }
.bh-diger h2 {
    margin: 0 0 14px;
    font-size: .82rem;
    font-weight: 650;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-3);
}
.bh-diger a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 18px;
    margin-bottom: 9px;
    border-radius: 13px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-2);
    text-decoration: none;
    font-size: .92rem;
    line-height: 1.45;
    transition: border-color .18s, color .18s, transform .18s;
}
.bh-diger a:hover {
    border-color: var(--primary);
    color: var(--text);
    transform: translateX(3px);
}
.bh-diger a span { color: var(--primary); flex-shrink: 0; }

/* ── Reklam yuvası ── */
.ad-slot { max-width: 760px; margin: 40px auto 0; padding: 0; }

/* ═══════════════ DUYARLI ═══════════════ */
@media (max-width: 760px) {
    .bh-nav { padding: 12px 16px; gap: 10px; }
    .bh-logo span { display: none; }          /* dar ekranda yalnız marka */
    .bh-link { padding: 7px 10px; font-size: .82rem; }
    .bh-main { padding: 0 16px 60px; }
    .bh-yazi { padding: 0 18px 70px; }
    .bh-hero { padding: 40px 0 22px; }
    .bh-izgara { grid-template-columns: 1fr; gap: 14px; }
    .bh-icerik { font-size: 1rem; }
    .bh-olc { padding: 24px 20px; }
}

@media (max-width: 430px) {
    .bh-nav-right .bh-cta { display: none; }  /* üst barda yer kalmıyor */
}

/* Hareket hassasiyeti olan kullanıcılar için */
@media (prefers-reduced-motion: reduce) {
    .bh-kart, .bh-kart-ok, .bh-olc a, .bh-cta, .bh-diger a {
        transition: none;
    }
    .bh-kart:hover, .bh-olc a:hover, .bh-cta:hover, .bh-diger a:hover {
        transform: none;
    }
}

/* ── Paylaşım ── */
.bh-paylas {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 44px;
    padding: 16px 20px;
    border-radius: 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    font-size: .88rem;
    color: var(--text-3);
}
.bh-paylas-dugmeler { display: flex; gap: 8px; flex-wrap: wrap; }
.bh-p-btn {
    padding: 8px 14px;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: var(--surface-3, var(--surface-2));
    color: var(--text-2);
    font-family: inherit;
    font-size: .84rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .16s, color .16s, transform .16s;
}
.bh-p-btn:hover { color: var(--text); transform: translateY(-1px); }
.bh-p-wa:hover { border-color: #25d366; }
.bh-p-x:hover  { border-color: var(--text); }
.bh-p-kopyala:hover { border-color: var(--primary); }
.bh-p-kopyala.is-kopyalandi { border-color: #43e97b; color: #43e97b; }

/* RSS bağlantısı */
.bh-rss {
    display: inline-block;
    margin-top: 14px;
    font-size: .8rem;
    color: var(--text-3);
    text-decoration: none;
    border-bottom: 1px dashed var(--border);
}
.bh-rss:hover { color: var(--primary); border-bottom-color: var(--primary); }

@media (max-width: 560px) {
    .bh-paylas { flex-direction: column; align-items: flex-start; }
}
