/* ==========================================================================
   blog.css — Styles for blog-collection & blog-content pages
   ========================================================================== */

/* ── Reading Progress Bar ───────────────────────────────────────────────── */
#readingProgress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--primary-red, #9d101c);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ── Category Badge ─────────────────────────────────────────────────────── */
.category-badge {
    background: var(--primary-red, #9d101c);
    color: #fff;
    display: inline-block;
}

/* ── Featured Image Overlay ─────────────────────────────────────────────── */
.featured-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 22, 38, 0) 40%,
        rgba(0, 22, 38, 0.55) 100%
    );
    pointer-events: none;
}

/* ── Reading Time Chip ──────────────────────────────────────────────────── */
.reading-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: #6b7280;
}

/* ── Blog Card Hover ────────────────────────────────────────────────────── */
.blog-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-card:hover {
    transform: translateY(-3px);
}

/* ── Breadcrumb Separators ──────────────────────────────────────────────── */
.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    margin: 0 6px;
    color: #9ca3af;
}

/* ── Article Content (prose) ────────────────────────────────────────────── */
.article-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #374151;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    font-weight: 800;
    color: var(--dark-navy, #001626);
    margin-top: 2em;
    margin-bottom: 0.6em;
    line-height: 1.3;
}
.article-content h1 { font-size: 2rem; }
.article-content h2 { font-size: 1.55rem; }
.article-content h3 { font-size: 1.3rem; }
.article-content h4 { font-size: 1.1rem; }

.article-content p {
    margin-bottom: 1.4em;
}

.article-content ul,
.article-content ol {
    padding-left: 1.6em;
    margin-bottom: 1.4em;
}
.article-content ul { list-style-type: disc; }
.article-content ol { list-style-type: decimal; }
.article-content li { margin-bottom: 0.4em; }

.article-content a {
    color: var(--primary-red, #9d101c);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.article-content a:hover { opacity: 0.8; }

.article-content blockquote {
    border-left: 4px solid var(--primary-red, #9d101c);
    padding: 0.75em 1.25em;
    margin: 1.8em 0;
    background: rgba(157, 16, 28, 0.04);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #4b5563;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5em 0;
}

.article-content code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.article-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.25em 1.5em;
    border-radius: 12px;
    overflow-x: auto;
    margin-bottom: 1.4em;
}
.article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: 0.875rem;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.4em;
    font-size: 0.9rem;
}
.article-content th {
    background: var(--dark-navy, #001626);
    color: #fff;
    padding: 10px 14px;
    text-align: left;
}
.article-content td {
    padding: 9px 14px;
    border-bottom: 1px solid #e5e7eb;
}
.article-content tr:nth-child(even) td {
    background: #f9fafb;
}

.article-content hr {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin: 2em 0;
}

.article-content strong { font-weight: 700; color: var(--dark-navy, #001626); }
.article-content em    { font-style: italic; }
