/* ══════════════════════════════════════════════════════════════
   SEVORSE — Blog Post Template Styles
   Premium long-form reading experience
   ══════════════════════════════════════════════════════════════ */

/* ─── BLOG POST HERO ─── */
.blog-post-hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 10% 8vh;
    background: var(--bg-dark);
    overflow: hidden;
}

.blog-post-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(1, 142, 239, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(196, 39, 27, 0.05) 0%, transparent 50%),
        linear-gradient(to bottom, #0a1628 0%, #0D0D0D 100%);
    z-index: 0;
}

.blog-post-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 1px,
            rgba(232, 240, 254, 0.015) 1px,
            rgba(232, 240, 254, 0.015) 2px
        );
    pointer-events: none;
}

.blog-post-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.blog-post-meta-top {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-back-link {
    font-family: var(--f-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(232, 240, 254, 0.4);
    transition: color 0.3s ease;
    text-decoration: none;
}

.blog-back-link:hover {
    color: rgba(232, 240, 254, 0.8);
}

.blog-post-category {
    font-family: var(--f-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--accent);
    text-transform: uppercase;
    padding: 4px 12px;
    border: 1px solid rgba(196, 39, 27, 0.3);
}

.blog-post-title {
    font-family: var(--f-sans);
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.blog-post-title em {
    font-family: var(--f-serif);
    font-style: italic;
    font-weight: 400;
}

.blog-post-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.blog-post-author,
.blog-post-date,
.blog-post-read {
    font-family: var(--f-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: rgba(232, 240, 254, 0.5);
    text-transform: uppercase;
}

.blog-post-dot {
    color: rgba(232, 240, 254, 0.2);
    font-size: 0.6rem;
}

/* ─── BLOG POST CONTENT ─── */
.blog-post-content {
    padding: 10vh 10%;
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.blog-post-body {
    max-width: 760px;
    width: 100%;
}

.blog-post-body h2 {
    font-family: var(--f-sans);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.blog-post-body h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
    transition: width 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.blog-post-body h2:hover::after {
    width: 80px;
}

.blog-post-body h2:first-child {
    margin-top: 0;
}

.blog-post-body p {
    font-family: var(--f-sans);
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    text-align: left;
}

.blog-post-body p strong {
    color: var(--text);
    font-weight: 600;
}

.blog-post-body blockquote {
    position: relative;
    margin: 3rem 0;
    padding: 2rem 2.5rem;
    background: var(--bg-card);
    border-left: 3px solid var(--accent);
    font-family: var(--f-serif);
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--text);
}

.blog-post-body blockquote::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    left: 15px;
    font-family: var(--f-serif);
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.3;
    line-height: 1;
}

/* ─── AUTHOR BOX ─── */
.blog-post-author-box {
    margin-top: 5rem;
    padding: 2.5rem;
    background: var(--bg-card);
    border-left: 3px solid var(--accent-2);
    display: flex;
    align-items: center;
    gap: 2rem;
}

.author-box-label {
    font-family: var(--f-mono);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 0.5rem !important;
    line-height: 1 !important;
}

.author-box-name {
    font-family: var(--f-sans);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text) !important;
    margin-bottom: 0.8rem !important;
    line-height: 1.2 !important;
}

.author-box-desc {
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
    color: var(--text-muted) !important;
    margin-bottom: 0 !important;
}

/* ─── CTA LINKS ─── */
.blog-post-cta-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 34, 68, 0.1);
}

.blog-cta-link {
    font-family: var(--f-mono);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: var(--accent-2);
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid rgba(0, 34, 68, 0.2);
    transition: all 0.4s ease;
}

.blog-cta-link:hover {
    background: var(--accent-2);
    color: var(--text-light);
    border-color: var(--accent-2);
}

/* ─── TAGS ─── */
.blog-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 34, 68, 0.1);
}

.blog-tag {
    font-family: var(--f-mono);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 6px 14px;
    background: rgba(0, 34, 68, 0.04);
    border: 1px solid rgba(0, 34, 68, 0.08);
    transition: all 0.3s ease;
}

.blog-tag:hover {
    background: rgba(0, 34, 68, 0.08);
    border-color: rgba(0, 34, 68, 0.15);
    color: var(--text);
}

/* ─── BACK NAVIGATION ─── */
.blog-post-nav-section {
    display: flex;
    justify-content: center;
    padding: 0 10% 10vh;
}

.blog-back-btn {
    font-family: var(--f-mono);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 18px 40px;
    background: var(--bg-card);
    color: var(--text);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: color 0.5s;
    display: inline-block;
}

.blog-back-btn .cta-fill {
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 0;
}

.blog-back-btn:hover .cta-fill {
    transform: scaleX(1);
}

.blog-back-btn:hover {
    color: white;
}

.blog-back-btn .cta-text {
    position: relative;
    z-index: 1;
}

/* ─── READING PROGRESS BAR ─── */
.blog-post-body h2 {
    scroll-margin-top: 100px;
}

/* ─── DROP CAP on first paragraph after first h2 ─── */
.blog-post-body h2:first-child + p::first-letter {
    font-family: var(--f-serif);
    font-size: 3.5rem;
    float: left;
    line-height: 0.85;
    margin-right: 0.15em;
    margin-top: 0.05em;
    color: var(--accent);
    font-weight: 400;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .blog-post-hero {
        min-height: 60vh;
        padding: 0 8% 6vh;
    }

    .blog-post-content {
        padding: 8vh 8%;
    }
}

@media (max-width: 768px) {
    .blog-post-hero {
        min-height: 55vh;
        padding: 0 6% 5vh;
    }

    .blog-post-meta-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .blog-post-title {
        font-size: clamp(1.8rem, 6vw, 2.8rem);
    }

    .blog-post-info {
        gap: 0.6rem;
    }

    .blog-post-content {
        padding: 6vh 6%;
    }

    .blog-post-body p {
        font-size: 1rem;
    }

    .blog-post-body blockquote {
        padding: 1.5rem;
        font-size: 1.1rem;
    }

    .blog-post-author-box {
        flex-direction: column;
        padding: 2rem;
    }

    .blog-post-cta-links {
        flex-direction: column;
    }

    .blog-cta-link {
        text-align: center;
    }

    .blog-post-nav-section {
        padding: 0 6% 8vh;
    }
}

@media (max-width: 480px) {
    .blog-post-hero {
        min-height: 50vh;
        padding: 0 5% 4vh;
    }

    .blog-post-content {
        padding: 5vh 5%;
    }

    .blog-post-body h2 {
        font-size: 1.4rem;
        margin-top: 3rem;
    }

    .blog-post-body h2:first-child + p::first-letter {
        font-size: 2.8rem;
    }
}
