/* =====================================================
   SB Features — İlerleme Çubuğu · Başa Dön · Sosyal Paylaşım
                  Yazı Beğeni · İçindekiler Tablosu
   ===================================================== */

:root {
    --sb-accent: var(--sb-general-color, #1E40AF);
}

/* ═══════════════════════════════════════════════════
   1. OKUMA İLERLEME ÇUBUĞU
═══════════════════════════════════════════════════ */
#sb-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    height: 3px;
    width: 0%;
    background: var(--sb-accent);
    transition: width .1s linear;
    border-radius: 0 2px 2px 0;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════
   2. BAŞA DÖN BUTONU
═══════════════════════════════════════════════════ */
.sb-back-top {
    position: fixed;
    bottom: 80px;
    left: 24px;
    z-index: 9900;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--sb-accent);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s, visibility .25s, transform .25s, background .2s;
}

.sb-back-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sb-back-top:hover {
    filter: brightness(1.1);
}

.sb-back-top svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

@media (max-width: 575.98px) {
    .sb-back-top {
        bottom: 70px;
        left: 16px;
    }
}

/* ═══════════════════════════════════════════════════
   3. PAYLAŞ + BEĞENİ EYLEM ÇUBUĞU
═══════════════════════════════════════════════════ */

/* Birleşik sarmalayıcı */
.sb-post-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 28px 0 24px;
    padding: 14px 20px;
    background: #F8FAFC;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
}

/* Paylaşım — kutusuz, inline */
.sb-social-share {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sb-share-label {
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #94A3B8;
    margin-right: 4px;
    white-space: nowrap;
}

.sb-share-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sb-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--share-color, #64748B);
    color: #fff;
    text-decoration: none;
    transition: transform .18s, box-shadow .18s;
}

.sb-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    color: #fff;
    text-decoration: none;
}

.sb-share-btn i {
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}

/* Kopyalama butonu geri bildirimi */
.sb-share-copy.is-copied {
    --share-color: #16A34A;
}

/* ═══════════════════════════════════════════════════
   4. YAZI BEĞENİ BUTONU
═══════════════════════════════════════════════════ */
.sb-like-wrap {
    display: flex;
    margin-left: auto;          /* beğen butonunu en sağa taşır */
    flex-shrink: 0;
}

.sb-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    border: 2px solid #E2E8F0;
    border-radius: 40px;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #64748B;
    transition: border-color .2s, color .2s, background .2s, transform .15s;
    -webkit-tap-highlight-color: transparent;
}

.sb-like-btn:hover {
    border-color: #FDA4AF;
    color: #E11D48;
}

.sb-like-btn.is-liked {
    border-color: #E11D48;
    background: #FFF1F2;
    color: #E11D48;
}

.sb-like-btn:active {
    transform: scale(.94);
}

.sb-like-btn i {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
    transition: color .2s;
}

.sb-like-btn.is-liked i {
    color: #E11D48;
}

.sb-like-count {
    min-width: 14px;
    text-align: center;
}

/* Canlandırma */
@keyframes sbLikePop {
    0%   { transform: scale(1);    }
    40%  { transform: scale(1.35); }
    70%  { transform: scale(.9);   }
    100% { transform: scale(1);    }
}
.sb-like-btn.pop i { animation: sbLikePop .35s ease forwards; }

/* ═══════════════════════════════════════════════════
   5. İÇİNDEKİLER TABLOSU (TOC)
═══════════════════════════════════════════════════ */
.sb-toc {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-left: 4px solid var(--sb-accent);
    border-radius: 0 10px 10px 0;
    padding: 14px 18px;
    margin: 0 0 28px;
    max-width: 560px;
}

.sb-toc-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

.sb-toc-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #475569;
    flex: 1;
    text-align: left;
}

.sb-toc-chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #94A3B8;
    transition: transform .2s;
}

.sb-toc[data-collapsed] .sb-toc-chevron {
    transform: rotate(180deg);
}

.sb-toc-list {
    margin: 10px 0 0 4px;
    padding-left: 18px;
    list-style: none;
    counter-reset: toc;
}

.sb-toc[data-collapsed] .sb-toc-list {
    display: none;
}

.sb-toc-list li {
    counter-increment: toc;
    margin: 5px 0;
    padding-left: 4px;
    position: relative;
}

.sb-toc-list li::before {
    content: counters(toc, '.') '.';
    font-size: 11.5px;
    color: var(--sb-accent);
    font-weight: 700;
    margin-right: 6px;
}

.sb-toc-list li.sb-toc-sub {
    padding-left: 16px;
    font-size: 13px;
}

.sb-toc-list li.sb-toc-sub::before {
    color: #94A3B8;
}

.sb-toc-list a {
    color: #334155;
    text-decoration: none;
    font-size: 13.5px;
    line-height: 1.45;
    transition: color .15s;
}

.sb-toc-list a:hover {
    color: var(--sb-accent);
}

.sb-toc-list a.is-active {
    color: var(--sb-accent);
    font-weight: 600;
}
