/**
 * blog_single.css — Chaltakhali R.G.B.C. Institution Blog Article View
 * Dedicated styling for pages/blog_single.php
 */

/* Reading Progress Bar at Top */
#readingProgressBar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #7c3aed, #f59e0b);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* Category Badge Pills */
.blog-badge-pill {
    padding: 0.35rem 0.85rem;
    border-radius: 50rem;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.cat-pill-academic { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.cat-pill-science { background: #faf5ff; color: #7e22ce; border: 1px solid #e9d5ff; }
.cat-pill-sports { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.cat-pill-arts { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.cat-pill-student { background: #ecfeff; color: #0e7490; border: 1px solid #a5f3fc; }
.cat-pill-default { background: #f8fafc; color: #475569; border: 1px solid #e2e8f0; }

/* Article Body Typography */
.blog-content-body {
    font-size: 1.1rem;
    line-height: 1.85;
    color: #334155;
}

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

.blog-content-body h2, 
.blog-content-body h3, 
.blog-content-body h4 {
    color: #0f172a;
    font-weight: 700;
    margin-top: 2.2rem;
    margin-bottom: 1rem;
}

.blog-content-body blockquote {
    border-left: 4px solid #2563eb;
    background: #f8fafc;
    padding: 1.25rem 1.5rem;
    border-radius: 0 0.75rem 0.75rem 0;
    font-style: italic;
    color: #475569;
    margin: 1.75rem 0;
}

.blog-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    margin: 1.5rem 0;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
}

/* Share Buttons */
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
    color: #ffffff;
}

.share-btn-wa { background: #25d366; }
.share-btn-fb { background: #1877f2; }
.share-btn-tw { background: #1da1f2; }
.share-btn-in { background: #0a66c2; }
.share-btn-copy { background: #475569; }

/* Related Article Cards */
.related-blog-card {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.related-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
}

/* Comment Box */
.comment-card {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #ffffff;
    transition: background-color 0.2s ease;
}

.comment-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.blog-author-avatar-badge {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    font-weight: 700;
    user-select: none;
    border: 2px solid #ffffff;
}
