﻿/* --- Reading Progress Bar --- */
.progress-container {
    width: 100%;
    height: 4px;
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040; /* Above header */
}

.progress-bar {
    height: 4px;
    background: var(--color1);
    width: 0%;
    transition: width 0.1s;
}

/* --- Detail Hero --- */
.article-hero {
    padding: 8rem 0 4rem;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color5);
    opacity: 0.8;
    z-index: -1;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: blur(5px);
}

.author-meta-lg img {
    width: 60px;
    height: 60px;
    border: 2px solid var(--color1);
}

/* --- Article Content Styling --- */
.article-container {
    max-width: 800px;
    margin: 0 auto;
}

.article-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #cbd5e1; /* Specific light gray for reading comfort */
}

    .article-body p {
        margin-bottom: 1.5rem;
    }

    .article-body h2 {
        color: var(--color2);
        font-weight: 700;
        margin-top: 2.5rem;
        margin-bottom: 1.5rem;
        font-size: 1.8rem;
        border-left: 4px solid var(--color1);
        padding-left: 1rem;
    }

    .article-body h3 {
        color: var(--color2);
        font-weight: 600;
        margin-top: 2rem;
        margin-bottom: 1rem;
    }

    .article-body ul, .article-body ol {
        margin-bottom: 1.5rem;
        padding-left: 1.5rem;
    }

    .article-body li {
        margin-bottom: 0.5rem;
    }

    .article-body blockquote {
        background-color: var(--color4);
        border-left: 4px solid var(--color1);
        padding: 1.5rem;
        font-style: italic;
        color: var(--color2);
        border-radius: 0 8px 8px 0;
        margin: 2rem 0;
        font-size: 1.25rem;
    }

/* --- Sidebar Social Share (Sticky) --- */
.share-sidebar {
    position: sticky;
    top: 150px;
}

.share-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--color3);
    color: var(--color3);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.2rem;
}

    .share-btn:hover {
        background-color: var(--color1);
        color: var(--color2);
        border-color: var(--color1);
        transform: translateX(5px);
    }

/* --- Tags & Navigation --- */
.article-tag {
    background-color: var(--color4);
    color: var(--color3);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-right: 10px;
    transition: all 0.2s;
    text-decoration: none;
}

    .article-tag:hover {
        color: var(--color1);
        background-color: rgba(var(--color-1-rgb), 0.1);
    }

.post-nav-card {
    background-color: var(--color4);
    border: 1px solid transparent;
    padding: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
}

    .post-nav-card:hover {
        border-color: var(--color1);
        background-color: lighten(var(--color4), 5%);
    }

/* --- Comments Section --- */
.comment-box {
    background-color: var(--color4);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.reply-btn {
    color: var(--color1);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}