﻿/* ===== Progress ===== */
.blog-progress-bar {
    position: fixed;
    top: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,#6366f1,#ec4899);
    width: 0;
    z-index: 9999;
}

/* ===== Hero ===== */
.blog-post-hero {
    background: linear-gradient(135deg,#6366f1,#4f46e5);
    padding: 90px 0 80px;
    color: #fff;
    text-align: center;
}

    .blog-post-hero h1 {
        font-size: 40px;
        font-weight: 800;
        max-width: 900px;
        margin: auto;
        line-height: 1.5;
    }

.blog-meta {
    margin-top: 20px;
    font-size: 14px;
    opacity: .9;
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* ===== Wrapper ===== */
.blog-post-wrapper {
    background: #f8fafc;
    padding: 60px 0;
}

    .blog-post-wrapper .row {
        display: flex;
        align-items: stretch;
    }

/* ===== Content ===== */
.blog-post-content {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 30px 70px rgba(0,0,0,.06);
    font-size: 16px;
    line-height: 2.1;
    color: #1f2937;
}

    .blog-post-content h2 {
        margin-top: 45px;
        font-size: 28px;
        border-right: 4px solid #6366f1;
        padding-right: 12px;
    }

    .blog-post-content img {
        max-width: 100%;
        border-radius: 16px;
        margin: 30px 0;
    }

/* ===== TOC Sticky Wrapper ===== */
.blog-toc-sticky {
    position: sticky;
    top: 120px;
}

/* ===== TOC Box ===== */
.blog-toc {
    background: #ffffff;
    border-radius: 18px;
    padding: 22px 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,.06);
}

.toc-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #111827;
    border-right: 3px solid #6366f1;
    padding-right: 10px;
}

#toc {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    #toc a {
        position: relative;
        display: block;
        padding: 8px 25px 8px 8px;
        font-size: 14px;
        color: #4b5563;
        text-decoration: none;
        line-height: 1.7;
        border-radius: 10px;
        transition: all .2s ease;
    }

        #toc a::before {
            content: "";
            position: absolute;
            right: 10px;
            top: 17px;
            width: 6px;
            height: 6px;
            background: #c7d2fe;
            border-radius: 50%;
        }

        #toc a:hover {
            background: #f5f7ff;
            color: #4f46e5;
            transform: translateX(-2px);
        }

        #toc a.active {
            background: #eef2ff;
            color: #4338ca;
            font-weight: 600;
        }

            #toc a.active::before {
                background: #4f46e5;
            }


/* ===== Share ===== */
.blog-meta-extended {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

    .blog-meta-extended span {
        display: inline-flex;
    }

        .blog-meta-extended span i {
            margin-left: 5px;
        }

.blog-share-inline {
    display: inline-flex;
    gap: 10px;
    margin-right: 10px;
}

    .blog-share-inline a {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: rgba(255,255,255,.18);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 15px;
        transition: all .2s ease;
        text-decoration: none;
    }

        .blog-share-inline a:hover {
            background: #fff;
            color: #4f46e5;
            transform: translateY(-2px);
        }


/* ===== CTA ===== */
.blog-cta {
    margin-top: 40px;
    background: linear-gradient(135deg,#ec4899,#f472b6);
    color: #fff;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
}

.cta-btn {
    display: inline-block;
    margin-top: 15px;
    background: #fff;
    color: #ec4899;
    padding: 12px 26px;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
}

.blog-hero-image img {
    margin: 0px;
}

/* ===== Scroll To Top ===== */
.blog-scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg,#6366f1,#4f46e5);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .25s ease;
    z-index: 999;
}

    .blog-scroll-top.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .blog-scroll-top:hover {
        background: linear-gradient(135deg,#4f46e5,#4338ca);
        transform: translateY(-3px);
    }




/* ===== Vertical Share Bar ===== */
.blog-share-vertical {
    position: sticky;
    top: 180px;
    float: right;
    margin-right: -70px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 5;
}

    .blog-share-vertical a {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        background: #fff;
        color: #6b7280;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        box-shadow: 0 10px 25px rgba(0,0,0,.08);
        transition: all .25s ease;
        text-decoration: none;
    }

        .blog-share-vertical a:hover {
            transform: translateY(-3px);
            background: linear-gradient(135deg,#6366f1,#4f46e5);
            color: #fff;
        }

.blog-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 500;
    color: #e5e7eb;
}
/* ===== Responsive ===== */
@media (max-width: 992px) {
    .blog-post-hero h1 {
        font-size: 28px;
    }

    .blog-post-content {
        padding: 25px;
    }

    .blog-share-vertical {
        display: none;
    }
}

@media (max-width: 767px) {
    .blog-scroll-top {
        bottom: 20px;
        left: 20px;
    }
}
