/* QAFlow - blog.php single post page
   Extracted from inline style="" attributes. Category badge colors use the
   .blogcat-{id}-bg classes emitted by includes/dynamic-theme.php. */

.blog-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary, #6366f1);
    z-index: 9999;
    transition: width .1s linear;
}

.blog-header-bg {
    background-size: cover;
    background-position: center;
}

.blog-meta-opacity {
    opacity: 0.8;
}

.blog-comment-rep-icon {
    font-size: 10px;
}

.blog-related-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color, #e5e7eb);
    height: 100%;
}

.blog-related-thumb-bg {
    height: 160px;
    background-size: cover;
    background-position: center;
}

.blog-related-card-body {
    padding: 14px;
}

.blog-related-title {
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.4;
}

.blog-related-title-link {
    color: var(--text-primary);
}

.blog-related-date {
    color: var(--text-secondary);
}

.blog-related-excerpt-2 {
    font-size: .82rem;
    color: var(--text-secondary);
    margin: 8px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-related-list-item {
    border-bottom: 1px solid var(--border-color, #f1f5f9);
}

.blog-related-list-thumb {
    width: 100px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.blog-related-list-title {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: .9rem;
    line-height: 1.4;
}

.blog-related-excerpt-1 {
    font-size: .8rem;
    color: var(--text-secondary);
    margin: 4px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-related-minimal-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-related-minimal-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color, #f1f5f9);
}

.blog-related-minimal-link {
    color: var(--text-primary);
    font-weight: 600;
    font-size: .9rem;
}

.blog-sidebar-sticky-col {
    position: relative;
}

.blog-sidebar-sticky-inner {
    position: sticky;
    top: 80px;
}

.blog-author-avatar {
    border: 3px solid var(--primary-color, #6366f1);
}

.blog-popular-badge {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-list-title-lh {
    font-size: 14px;
    line-height: 1.4;
}

.blog-list-title {
    font-size: 14px;
}

.blog-category-badge {
    font-size: 13px;
    padding: 8px 12px;
}

.blog-tag-badge {
    font-size: 12px;
}

.card.blog-newsletter-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.blog-newsletter-icon {
    font-size: 40px;
}

.blog-newsletter-input,
.blog-newsletter-btn {
    border-radius: 8px;
}

.blog-file-input-hidden {
    display: none;
}
