/* ===========================================
   READING PROGRESS BAR
   =========================================== */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(to right, #1e6aff, #3a36ff);
    z-index: 9999;
    transition: width 0.1s ease-out;
    box-shadow: 0 1px 3px rgba(30, 106, 255, 0.3);
}

/* ===========================================
   BREADCRUMBS
   =========================================== */
.breadcrumb-nav {
    padding: 1rem 0 1.5rem;
    margin-bottom: 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0;
    padding-left: 0;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin: 0 0.75rem;
    color: #666;
    font-size: 1.1rem;
}

.breadcrumb a {
    color: #1e6aff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #3a36ff;
    text-decoration: underline;
}

.breadcrumb li:last-child span {
    color: #ccc;
}

/* ===========================================
   SOCIAL SHARE
   =========================================== */
.blog-post-social-share {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.social-share {
    padding: 1.5rem 2rem;
}

.share-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.social-share > p {
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* ===========================================
   BLOG POST MAIN STYLES
   =========================================== */
.blog-post {
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.blog-post-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1200 / 630;
    object-fit: cover;
    background-color: #2a2a2a;
}

.blog-post-header {
    padding: 2rem;
}

.blog-post-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.blog-post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #888;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.reading-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-post-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.category-badge {
    display: inline-block;
    background-color: #2a2a2a;
    color: #fff;
    padding: 0 0.90rem;
    border-radius: 20px;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.category-badge:hover {
    background-color: #0000;
    background-image: linear-gradient(to right, var(--accent--primary-1), var(--secondary--color-1));
    color: #fff;
    border-color: #3a36ff;
    transform: translateY(-1px);
}

.blog-post-tags {
    margin-top: 0.5rem;
}

.tags-label {
    color: #888;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.tag-badge {
    display: inline-block;
    background-color: #0000;
    background-image: linear-gradient(to right, var(--accent--primary-1), var(--secondary--color-1));
    color: #fff;
    padding: 0 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    margin: 0 4px;
}

.tag-badge:hover {
    background-color: #218838;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.post-meta-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background-color: #2a2a2a;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.reading-time {
    color: #ccc;
    font-size: 0.9rem;
}

.toc-toggle {
    color: #007bff;
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.toc-toggle:hover {
    color: #0056b3;
}

.toc-container {
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.toc-header {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #444;
}

.toc-header h4,
.toc-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.toc-nav {
    position: sticky;
    top: 20px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item,
.toc-sub-item {
    margin-bottom: 0.25rem;
}

.toc-sub-item {
    padding-left: 1.5rem;
}

.toc-link {
    color: #ccc;
    text-decoration: none;
    display: block;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.toc-link:hover {
    color: #007bff;
}

.toc-link.active {
    color: #007bff;
    background-color: rgba(0, 123, 255, 0.1);
    border-left: 3px solid #007bff;
}

.blog-post-content {
    padding: 0 2rem 2rem;
    color: #e0e0e0;
    line-height: 1.6;
}

.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4 {
    color: #fff;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-post-content pre {
    /* background-color: #333; */
    /* color: #f8f9fa; */
    /* padding: 1rem; */
    /* border-radius: 5px; */
    /* overflow-x: auto; */
    display: contents;
}

.blog-post-content p {
    margin-bottom: 0;
    margin-right: 0.6rem;
}


.blog-post-content ul,
.blog-post-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.blog-post-content li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.blog-post-content li p {
    margin-bottom: 0;
}

.blog-post-content ol li pre {
    padding: 0rem;
    margin-left: 0.6rem;

}

.blog-post-content code {
    background-color: #333;
    background: #333;
    color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    display: inline-block;
    margin: 0rem 0.6rem;
}



.blog-post-content blockquote {
    border-left: 4px solid #007bff;
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: #ccc;
}

.related-posts-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.related-posts-title {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.related-post-card {
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
    height: 100%;
}

.related-post-card:hover {
    transform: translateY(-2px);
}

.related-post-image-wrapper {
    height: 200px;
    overflow: hidden;
}

.related-post-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    background-color: #2a2a2a;
}

.related-post-content {
    padding: 1rem;
}

.related-post-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.related-post-content h3 a {
    color: #fff;
    text-decoration: none;
}

.related-post-content h3 a:hover {
    color: #007bff;
}

.related-post-meta {
    color: #888;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .blog-post-title {
        font-size: 2rem;
    }

    .blog-post-header {
        padding: 1rem;
    }

    .blog-post-content {
        padding: 0 1rem 1rem;
    }

    .blog-post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Breadcrumb responsive */
    .breadcrumb {
        font-size: 0.85rem;
    }

    .breadcrumb li:not(:last-child)::after {
        margin: 0 0.5rem;
    }

    /* Social share responsive */
    .social-share {
        padding: 1rem 1.25rem;
    }

    .share-title {
        font-size: 1.1rem;
    }

    .blog-post-social-share {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }

    /* Reading progress bar - thinner on mobile */
    .reading-progress {
        height: 3px;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        font-size: 0.8rem;
    }

    .breadcrumb li:not(:last-child)::after {
        margin: 0 0.35rem;
    }

    .category-badge {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }

    .tag-badge {
        font-size: 0.7rem;
        padding: 0.15rem 0.5rem;
    }
}

