/* ==========================================================================
   BLOG POST HEADER — style.css v2
   ========================================================================== */

/* ── Reading Progress Bar ──────────────────────────────────────────────────── */
.bph-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 9999;
    pointer-events: none;
}
.bph-reading-progress__bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    transition: width 0.12s linear;
    border-radius: 0 2px 2px 0;
}

/* ── Base ──────────────────────────────────────────────────────────────────── */
.blog-post-header {
    background: var(--color-bg);
    padding-top: 36px;
    width: 100%;
}

/* ── Breadcrumb + category meta bar ───────────────────────────────────────── */
.blog-post-header__meta-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}
.blog-post-header__breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--color-text-muted);
    flex-wrap: wrap;
}
.blog-post-header__breadcrumb a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.15s;
    white-space: nowrap;
}
.blog-post-header__breadcrumb a:hover { color: var(--color-secondary); }
.blog-post-header__breadcrumb svg { opacity: 0.35; flex-shrink: 0; }

.blog-post-header__cat-pill {
    display: inline-flex;
    padding: 4px 14px;
    background: rgba(46,196,182,0.08);
    color: var(--color-secondary);
    border: 1px solid rgba(46,196,182,0.2);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
    margin-left: auto;
}
.blog-post-header__cat-pill:hover { background: rgba(46,196,182,0.15); }

/* ── Title ─────────────────────────────────────────────────────────────────── */
.blog-post-header__title-wrap { max-width: 800px; margin-bottom: 28px; }
.blog-post-header__title {
    font-size: clamp(28px, 3.5vw, 50px);
    font-weight: 800;
    color: var(--color-text-dark);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0 0 20px;
}
.blog-post-header__title--light { color: #fff; }
.blog-post-header__excerpt {
    font-size: 18px;
    color: var(--color-text);
    line-height: 1.75;
    margin: 0;
    max-width: 700px;
}
.blog-post-header__excerpt--light { color: rgba(255,255,255,0.65); }

/* ── Author row ────────────────────────────────────────────────────────────── */
.blog-post-header__author-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 0;
    max-width: 800px;
}
.blog-post-header__author-row--dark {
    border-bottom-color: rgba(255,255,255,0.1);
    padding-bottom: 0;
    margin-top: 36px;
}
.blog-post-header__author-info { display: flex; align-items: center; gap: 12px; }
.blog-post-header__avatar {
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.12);
}
.blog-post-header__author-text { display: flex; flex-direction: column; gap: 3px; }
.blog-post-header__author-text--light .blog-post-header__author-name { color: #fff; }
.blog-post-header__author-text--light .blog-post-header__meta-row { color: rgba(255,255,255,0.45); }
.blog-post-header__author-name { font-size: 14px; font-weight: 700; color: var(--color-text-dark); line-height: 1; }
.blog-post-header__meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--color-text-muted);
}
.blog-post-header__dot { opacity: 0.5; }

/* ── Share buttons ─────────────────────────────────────────────────────────── */
.blog-post-header__share { display: flex; gap: 8px; }
.blog-post-header__share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
}
.blog-post-header__share-btn:hover { background: var(--color-dark); border-color: var(--color-dark); color: #fff; }
.blog-post-header__share-btn--light { border-color: rgba(255,255,255,0.15); color: rgba(255,255,255,0.6); }
.blog-post-header__share-btn--light:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); color: #fff; }

/* ── Hero image ────────────────────────────────────────────────────────────── */
.blog-post-header__img-wrap { padding-top: 32px; }
.blog-post-header__img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    display: block;
}

/* ── NO-IMAGE: Branded dark hero ───────────────────────────────────────────── */
.blog-post-header--no-image .blog-post-header__meta-bar { margin-bottom: 0; }

.blog-post-header__branded-hero {
    position: relative;
    background: var(--color-dark);
    overflow: hidden;
    padding: 64px 0 72px;
    margin-top: 24px;
}

/* Layered radial glows */
.blog-post-header__branded-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.blog-post-header__branded-circle {
    position: absolute;
    border-radius: 50%;
}
.blog-post-header__branded-circle--teal {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -100px;
    background: radial-gradient(circle, rgba(46,196,182,0.18) 0%, transparent 65%);
}
.blog-post-header__branded-circle--orange {
    width: 400px;
    height: 400px;
    bottom: -150px;
    left: 5%;
    background: radial-gradient(circle, rgba(232,75,26,0.12) 0%, transparent 65%);
}

/* Subtle dot grid overlay */
.blog-post-header__branded-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 28px 28px;
}

.blog-post-header__branded-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}
.blog-post-header__branded-content .blog-post-header__title {
    margin-bottom: 20px;
}
.blog-post-header__branded-content .blog-post-header__excerpt {
    margin-bottom: 40px;
}
