/* /css/blog-detail.css */

/* ==========================================================================
   TYPOGRAPHY SYSTEM (blog detail) - mirrors the blog listing
   Space Grotesk -> article title, headings inside the article body
   DM Mono       -> category pill, the date / read-time / author meta row
   Inter         -> article body copy, blockquotes, back link, share label
   Faces and the --font-* variables are registered in style.css.
   ========================================================================== */
body {
    font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-font {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

.blog-detail-main {
    padding-top: 100px;
    background-color: #fff;
    min-height: 100vh;
    font-family: var(--font-body);
}

.blog-header {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
    text-align: center;
}

.blog-category {
    display: inline-block;
    padding: 0.4rem 0.95rem;
    background-color: rgba(201, 168, 76, 0.1);
    color: var(--sovereign-gold);
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    font-weight: 500;
}

/* A navigation link, so it stays on the body face */
.back-to-blogs {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--sovereign-gold);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.back-to-blogs:hover {
    transform: translateX(-4px);
}

.blog-title {
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--deep-navy);
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
}

/* One uniform metadata strip - category, date, read time and byline */
.blog-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    color: #666;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    letter-spacing: 0.01em;
}



.blog-hero-image {
    max-width: 1000px;
    margin: 0 auto 3rem;
    border-radius: 12px;
    overflow: hidden;
    padding: 0 1rem;
}

.blog-hero-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    display: block;
}

.blog-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem 5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.blog-content p {
    margin-bottom: 1rem;
}

.blog-content ul,
.blog-content ol {
    margin: 0 0 1rem 1.25rem;
    line-height: 1.8;
}

.blog-content li {
    margin-bottom: 0.4rem;
}

.blog-content a {
    color: var(--sovereign-gold);
    text-decoration: underline;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    display: block;
}

/* The editor can emit any heading level - cover them all, not just h2 */
.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
    font-family: var(--font-display);
    color: var(--deep-navy);
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 2rem 0 0.75rem;
}

.blog-content h1 { font-size: 2.2rem; }
.blog-content h2 { font-size: 2rem; }
.blog-content h3 { font-size: 1.5rem; }
.blog-content h4 { font-size: 1.2rem; }
.blog-content h5,
.blog-content h6 { font-size: 1.05rem; }

/* Stays on Inter: Space Grotesk ships no italic, so an italic blockquote
   would render as a synthesised oblique. Inter has a real italic cut. */
.blog-content blockquote {
    margin: 1.75rem 0;
    padding-left: 1.25rem;
    border-left: 3px solid var(--sovereign-gold);
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--midnight-navy);
}

.blog-footer {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
    border-top: 1px solid rgba(13, 27, 62, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.share-label {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--deep-navy);
}

.share-links {
    display: flex;
    gap: 1rem;
}

.share-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(13, 27, 62, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--deep-navy);
    transition: all 0.3s ease;
}

.share-links a:hover {
    background-color: var(--sovereign-gold);
    color: var(--ivory);
}

@media (max-width: 768px) {
    .blog-header {
        text-align: left;
    }
    .blog-meta {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .blog-title {
        font-size: 2.2rem;
    }
    .blog-content h2 {
        font-size: 1.8rem;
    }
}

/* ---- In-page table of contents (SEO audit AEO-04) ---- */
.blog-toc {
    background: #faf7f2;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 10px;
    padding: 1.1rem 1.4rem;
    margin: 1.5rem 0 2rem;
    font-size: 0.95rem;
}
.blog-toc strong {
    display: block;
    margin-bottom: 0.5rem;
}
.blog-toc ol {
    margin: 0;
    padding-left: 1.2rem;
}
.blog-toc li {
    margin: 0.3rem 0;
}
.blog-toc li.toc-level-3 {
    margin-left: 1rem;
    font-size: 0.9em;
}
.blog-toc a {
    color: inherit;
    text-decoration: none;
}
.blog-toc a:hover {
    text-decoration: underline;
}
