/* Single Blog Post — shell styles */

.single-post-body {
    --bp-indigo: #3716DE;
    --bp-indigo-soft: rgba(55, 22, 222, 0.07);
    --bp-indigo-bg: rgba(55, 22, 222, 0.04);
    --bp-indigo-border: rgba(55, 22, 222, 0.12);
    --bp-ink: #1B1F1D;
    --bp-ink-2: #262626;
    --bp-gray-700: #374151;
    --bp-gray-600: #4B5563;
    --bp-gray-500: #71758E;
    --bp-gray-400: #B6B9C8;
    --bp-gray-300: #999999;
    --bp-border: #E7E7E7;
    --bp-divider: #F0F0F0;
    --bp-surface: #F6F8F9;
    --bp-hover-surface: #F6F5FA;
    --bp-code-bg: #F4F9FF;
    --bp-yellow: #FFD950;
    --bp-yellow-hover: #FFE066;
    --bp-radius-sm: 8px;
    --bp-radius-md: 12px;
    --bp-radius-lg: 16px;
    --bp-radius-xl: 20px;
    --bp-radius-pill: 100px;

    font-family: 'Poppins', sans-serif;
    color: var(--bp-ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

.single-post-body img { display: block; max-width: 100%; }
.single-post-body a { text-decoration: none; color: inherit; }

/* Progress bar */
.bp-progress {
    position: fixed; top: 0; left: 0; height: 3px;
    background: var(--bp-indigo); z-index: 1000;
    transition: width 0.1s linear;
    width: 0;
}

/* Layout grid */
.bp-layout {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1fr 680px 1fr;
    gap: 0 48px;
    align-items: start;
}

.bp-toc-sidebar {
    grid-column: 1;
    padding-top: 56px;
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.bp-right-sidebar {
    grid-column: 3;
    padding-top: 56px;
    position: sticky;
    top: 88px;
}

.bp-article-col { grid-column: 2; }

/* TOC */
.bp-toc-label,
.bp-share-label,
.bp-related-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bp-gray-400);
    margin-bottom: 14px;
}
.bp-toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0;
    margin: 0;
}
.bp-toc-list a {
    display: block;
    padding: 6px 10px;
    font-size: 13px;
    color: var(--bp-gray-500);
    border-left: 2px solid transparent;
    border-radius: 0 6px 6px 0;
    transition: all 0.2s ease;
    line-height: 1.4;
}
.bp-toc-list a:hover {
    color: var(--bp-ink);
    background: var(--bp-hover-surface);
}
.bp-toc-list a.is-active {
    color: var(--bp-indigo);
    border-left-color: var(--bp-indigo);
    font-weight: 500;
    background: var(--bp-indigo-bg);
}

/* Back link */
.bp-back-to-blog { padding: 24px 0 0; }
.bp-back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 500;
    color: var(--bp-gray-500);
    padding: 7px 14px 7px 10px;
    border-radius: var(--bp-radius-sm);
    border: 1px solid var(--bp-border);
    background: #fff;
    transition: all 0.2s ease;
    cursor: pointer;
}
.bp-back-link:hover {
    color: var(--bp-indigo);
    border-color: var(--bp-indigo);
    background: var(--bp-indigo-bg);
    transform: translateX(-2px);
}
.bp-back-link svg { transition: transform 0.2s ease; }
.bp-back-link:hover svg { transform: translateX(-2px); }

/* Hero / Masthead */
.bp-hero {
    padding: 28px 0 48px;
    border-bottom: 1px solid var(--bp-divider);
}
.bp-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: var(--bp-indigo-soft);
    color: var(--bp-indigo);
    border-radius: var(--bp-radius-pill);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 22px;
}
.bp-title {
    font-family: 'Poppins', sans-serif;
    font-size: 44px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: var(--bp-ink);
    margin: 0 0 20px;
    text-wrap: pretty;
}
.bp-title .bp-title-accent { color: var(--bp-indigo); }
.bp-excerpt {
    font-size: 19px;
    line-height: 1.65;
    color: var(--bp-gray-600);
    max-width: 580px;
    margin: 0 0 32px;
    font-weight: 400;
}
.bp-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.bp-author-card { display: flex; align-items: center; gap: 12px; }
.bp-author-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bp-indigo) 0%, #686AFF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
}
.bp-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bp-author-name { font-weight: 600; font-size: 14px; color: var(--bp-ink); }
.bp-author-role { font-size: 12px; color: var(--bp-gray-500); margin-top: 1px; }
.bp-meta-divider { width: 1px; height: 32px; background: var(--bp-border); }
.bp-meta-item { font-size: 13px; color: var(--bp-gray-500); display: inline-flex; align-items: center; gap: 5px; }
.bp-meta-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--bp-gray-400); }

/* Hero image */
.bp-hero-img {
    margin: 40px 0 0;
    border-radius: var(--bp-radius-lg);
    overflow: hidden;
    background: var(--bp-indigo);
    aspect-ratio: 16 / 7;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.bp-hero-img-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 40px;
}
.bp-hero-img-inner > img,
.bp-hero-img-inner .bp-hero-illo {
    max-height: 320px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}
.bp-hero-img-solid .bp-hero-illo {
    filter: brightness(0) invert(1);
    opacity: 0.88;
}
.bp-hero-img-photo { background: var(--bp-surface); }
.bp-hero-img-photo .bp-hero-img-inner { padding: 0; }
.bp-hero-img-photo .bp-hero-illo { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.bp-hero-tags {
    position: absolute;
    bottom: 20px;
    left: 24px;
    right: 24px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.bp-hero-tag {
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: var(--bp-radius-pill);
    font-size: 12px;
    color: #fff;
    font-weight: 500;
}

/* Article body (native gutenberg content) */
.bp-article-body { padding: 52px 0 64px; }
.bp-article-body > p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--bp-gray-700);
    margin: 0 0 28px;
    text-wrap: pretty;
}
.bp-article-body > h2,
.bp-article-body > .wp-block-heading.bp-h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--bp-ink);
    margin: 56px 0 20px;
    letter-spacing: -0.02em;
    line-height: 1.25;
    padding-top: 8px;
    scroll-margin-top: 100px;
}
.bp-article-body h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--bp-ink);
    margin: 56px 0 20px;
    letter-spacing: -0.02em;
    line-height: 1.25;
    padding-top: 8px;
    scroll-margin-top: 100px;
}
.bp-article-body h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--bp-ink);
    margin: 36px 0 14px;
    line-height: 1.35;
}
.bp-article-body ul,
.bp-article-body ol {
    margin: 0 0 28px;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.bp-article-body ul li,
.bp-article-body ol li {
    font-size: 17px;
    line-height: 1.7;
    color: var(--bp-gray-700);
    padding-left: 24px;
    position: relative;
}
.bp-article-body ul li::before {
    content: '';
    position: absolute;
    left: 0; top: 11px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--bp-indigo);
}
.bp-article-body ol { counter-reset: bp-ol-counter; }
.bp-article-body ol li {
    counter-increment: bp-ol-counter;
    padding-left: 36px;
}
.bp-article-body ol li::before {
    content: counter(bp-ol-counter);
    position: absolute;
    left: 0; top: 2px;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--bp-indigo-bg);
    color: var(--bp-indigo);
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bp-article-body strong { font-weight: 600; color: var(--bp-ink); }
.bp-article-body code,
.bp-article-body p code,
.bp-article-body li code {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 14px;
    background: var(--bp-code-bg);
    padding: 2px 7px;
    border-radius: 4px;
    color: var(--bp-indigo);
}
.bp-article-body a {
    color: var(--bp-indigo);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
.bp-article-body a:hover { text-decoration-thickness: 2px; }

/* Right sidebar */
.bp-reading-time-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bp-indigo-bg);
    border-radius: var(--bp-radius-sm);
    font-size: 13px;
    color: var(--bp-indigo);
    font-weight: 500;
    margin-bottom: 40px;
}
.bp-share-block { margin-bottom: 40px; }
.bp-share-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.bp-share-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--bp-ink);
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    font-family: 'Poppins', sans-serif;
    text-align: left;
    width: 100%;
}
.bp-share-btn:hover {
    border-color: var(--bp-indigo);
    color: var(--bp-indigo);
    transform: translateY(-1px);
}
.bp-share-btn img,
.bp-share-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.bp-sidebar-cta {
    padding: 24px;
    background: var(--bp-ink);
    border-radius: var(--bp-radius-lg);
    color: #fff;
}
.bp-sidebar-cta img { width: 48px; margin-bottom: 14px; }
.bp-sidebar-cta-title { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.bp-sidebar-cta-body {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.55;
    margin: 0 0 16px;
}
.bp-sidebar-cta-btn {
    display: block;
    text-align: center;
    padding: 10px;
    background: var(--bp-yellow);
    color: var(--bp-ink);
    font-weight: 700;
    font-size: 13px;
    border-radius: var(--bp-radius-sm);
    border: 2px solid var(--bp-ink-2);
    transition: all 0.2s ease;
}
.bp-sidebar-cta-btn:hover {
    background: var(--bp-yellow-hover);
    transform: translateY(-1px);
}

/* Related posts */
.bp-related-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
}
.bp-related {
    border-top: 1px solid var(--bp-divider);
    padding: 56px 0 80px;
}
.bp-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.bp-related-card {
    border: 2px solid var(--bp-ink);
    border-radius: var(--bp-radius-xl);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease;
    background: #fff;
}
.bp-related-card:hover { transform: translateY(-4px); }
.bp-related-card-img {
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bp-indigo);
}
.bp-related-card-img img { width: 48px; height: auto; filter: brightness(0) invert(1); }
.bp-related-card-img.has-photo img { width: 100%; height: 100%; object-fit: cover; filter: none; }
.bp-related-card-body { padding: 20px 22px 24px; }
.bp-related-card-date { font-size: 12px; color: var(--bp-gray-300); margin-bottom: 8px; }
.bp-related-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--bp-ink);
    line-height: 1.4;
    text-wrap: pretty;
}

/* Footer CTA band */
.bp-footer-cta {
    background: var(--bp-indigo);
    padding: 80px 32px;
    text-align: center;
    color: #fff;
}
.bp-footer-cta h3 {
    font-size: 40px;
    font-weight: 300;
    margin: 0 0 8px;
}
.bp-footer-cta h3 strong { font-weight: 700; }
.bp-footer-cta p {
    font-size: 17px;
    opacity: 0.8;
    margin: 0 0 32px;
}
.bp-footer-cta-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.bp-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--bp-radius-sm);
    border: 2px solid var(--bp-ink-2);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-align: center;
}
.bp-btn-primary { background: var(--bp-yellow); color: var(--bp-ink-2); }
.bp-btn-primary:hover { background: var(--bp-yellow-hover); transform: translateY(-1px); }
.bp-btn-outline-white {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}
.bp-btn-outline-white:hover { background: rgba(255, 255, 255, 0.12); }

/* Responsive */
@media (max-width: 1100px) {
    .bp-layout {
        grid-template-columns: 0 1fr 0;
        gap: 0;
    }
    .bp-toc-sidebar, .bp-right-sidebar { display: none; }
    .bp-article-col {
        grid-column: 2;
        max-width: 720px;
        margin: 0 auto;
    }
}
@media (max-width: 768px) {
    .bp-layout {
        padding: 0 20px;
        grid-template-columns: 1fr;
    }
    .bp-article-col { grid-column: 1; }
    .bp-title { font-size: 30px; }
    .bp-excerpt { font-size: 16px; }
    .bp-related-grid { grid-template-columns: 1fr; }
    .bp-footer-cta h3 { font-size: 28px; }
    .bp-related-wrap { padding: 0 20px; }
}
