/* ===========================================================================
   Public blog — listing (/blog) and article (/blog/<slug>).
   Loaded only on those pages via $extraCss, so it adds no weight elsewhere.
   Inherits the palette from assets/css/mazi-theme.css.
   =========================================================================== */

:root {
    --bp-blue: #1e5eff;
    --bp-blue-2: #3fb6ff;
    --bp-ink: #191820;
    --bp-muted: #6b6b7b;
    --bp-line: #e6e6ef;
    --bp-card: #ffffff;
    --bp-dark: #050208;
    --bp-radius: 20px;
}

/* ----------------------------------------------------------------- hero */

.bp-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 460px at 15% -20%, rgba(63, 182, 255, .20), transparent 62%),
        radial-gradient(760px 420px at 88% 0%, rgba(30, 94, 255, .26), transparent 60%),
        var(--bp-dark);
    padding: 190px 0 92px;
    color: #fff;
    text-align: center;
}

.bp-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .5;
    pointer-events: none;
}

.bp-orb-1 {
    width: 320px;
    height: 320px;
    background: rgba(30, 94, 255, .55);
    top: -80px;
    left: -60px;
}

.bp-orb-2 {
    width: 280px;
    height: 280px;
    background: rgba(63, 182, 255, .42);
    bottom: -110px;
    right: -50px;
}

.bp-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
}

.bp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .18);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .03em;
    color: #cfe2ff;
    margin-bottom: 20px;
}

.bp-eyebrow i { color: var(--bp-blue-2); font-size: 12px; }

.bp-hero-title {
    margin: 0 0 16px;
    font-size: 48px;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -.025em;
    color: #fff;
}

.bp-hero-sub {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .74);
}

/* -------------------------------------------------------------- listing */

.bp-list { padding: 62px 0 96px; background: #f6f6f9; }

.bp-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 34px;
}

.bp-chip {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--bp-line);
    color: var(--bp-muted);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color .18s, border-color .18s, background .18s, transform .18s;
}

.bp-chip:hover {
    color: var(--bp-blue);
    border-color: var(--bp-blue);
    transform: translateY(-1px);
}

.bp-chip.is-active {
    background: linear-gradient(90deg, #1046d6 0%, #2f7bff 55%, #3fb6ff 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 18px rgba(30, 94, 255, .26);
}

/* feature card */

.bp-feature {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 0;
    background: var(--bp-card);
    border: 1px solid var(--bp-line);
    border-radius: var(--bp-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    margin-bottom: 30px;
    box-shadow: 0 8px 30px rgba(20, 20, 43, .07);
    transition: transform .22s, box-shadow .22s;
}

.bp-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 44px rgba(20, 20, 43, .13);
}

.bp-feature-media {
    position: relative;
    min-height: 320px;
    background: #eef0f7;
    overflow: hidden;
}

.bp-feature-media img,
.bp-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.bp-feature:hover .bp-feature-media img,
.bp-card:hover .bp-card-media img { transform: scale(1.05); }

.bp-feature-flag {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(5, 2, 8, .72);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.bp-feature-body {
    padding: 40px 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bp-feature-body h2 {
    margin: 14px 0 12px;
    font-size: 28px;
    line-height: 1.28;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--bp-ink);
}

.bp-feature-body p {
    margin: 0 0 18px;
    color: var(--bp-muted);
    font-size: 15.5px;
    line-height: 1.72;
}

.bp-readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    font-weight: 700;
    font-size: 14.5px;
    color: var(--bp-blue);
}

.bp-readmore i { font-size: 12px; transition: transform .2s; }
.bp-feature:hover .bp-readmore i { transform: translateX(4px); }

/* card grid */

.bp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.bp-card {
    display: flex;
    flex-direction: column;
    background: var(--bp-card);
    border: 1px solid var(--bp-line);
    border-radius: var(--bp-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 6px 24px rgba(20, 20, 43, .06);
    transition: transform .22s, box-shadow .22s, border-color .22s;
}

.bp-card:hover {
    transform: translateY(-4px);
    border-color: rgba(30, 94, 255, .35);
    box-shadow: 0 16px 40px rgba(20, 20, 43, .13);
}

.bp-card-media {
    position: relative;
    height: 200px;
    background: #eef0f7;
    overflow: hidden;
}

.bp-media-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0b3ec9 0%, #1e5eff 50%, #3fb6ff 100%);
    color: rgba(255, 255, 255, .82);
    font-size: 38px;
}

.bp-card-body {
    padding: 24px 24px 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.bp-card-body h3 {
    margin: 12px 0 10px;
    font-size: 19px;
    line-height: 1.38;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--bp-ink);
}

.bp-card-body p {
    margin: 0 0 16px;
    color: var(--bp-muted);
    font-size: 14.5px;
    line-height: 1.68;
    /* keep every card the same height regardless of summary length */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bp-cat {
    display: inline-block;
    align-self: flex-start;
    padding: 5px 13px;
    border-radius: 999px;
    background: rgba(30, 94, 255, .10);
    color: var(--bp-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.bp-cat-lg { font-size: 13px; padding: 7px 16px; }

.bp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: auto;
    padding-top: 6px;
    font-size: 13px;
    color: #8a8a9c;
}

.bp-meta i { margin-right: 6px; color: var(--bp-blue); }

/* pagination */

.bp-pager { margin-top: 46px; display: flex; justify-content: center; }
.bp-pager nav ul { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; }

.bp-pager nav ul li a,
.bp-pager nav ul li.active span,
.bp-pager nav ul li.disabled span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 11px;
    background: #fff;
    border: 1px solid var(--bp-line);
    color: var(--bp-muted);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: color .18s, border-color .18s, background .18s;
}

.bp-pager nav ul li a:hover { color: var(--bp-blue); border-color: var(--bp-blue); }

.bp-pager nav ul li.active span {
    background: var(--bp-blue);
    border-color: var(--bp-blue);
    color: #fff;
}

.bp-pager nav ul li.disabled span { opacity: .45; }

/* empty state */

.bp-empty {
    background: #fff;
    border: 1px solid var(--bp-line);
    border-radius: var(--bp-radius);
    padding: 76px 26px;
    text-align: center;
    box-shadow: 0 6px 24px rgba(20, 20, 43, .06);
}

.bp-empty > i { font-size: 44px; color: #d0d0de; }
.bp-empty h3 { margin: 20px 0 8px; font-size: 22px; font-weight: 700; }
.bp-empty p { margin: 0 auto 22px; color: var(--bp-muted); max-width: 460px; }

.bp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: transform .16s, box-shadow .16s;
}

.bp-btn-primary {
    background: linear-gradient(90deg, #1046d6 0%, #2f7bff 55%, #3fb6ff 100%);
    color: #fff;
    box-shadow: 0 6px 18px rgba(30, 94, 255, .26);
}

.bp-btn-primary:hover { transform: translateY(-1px); color: #fff; }

/* ---------------------------------------------------------- article page */

.bp-article { background: #f6f6f9; }

.bp-article-head {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(820px 420px at 12% -20%, rgba(63, 182, 255, .18), transparent 62%),
        radial-gradient(700px 380px at 90% 0%, rgba(30, 94, 255, .24), transparent 60%),
        var(--bp-dark);
    padding: 170px 0 116px;
    color: #fff;
}

.bp-crumbs {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 26px;
    color: rgba(255, 255, 255, .5);
}

.bp-crumbs a { color: rgba(255, 255, 255, .68); text-decoration: none; }
.bp-crumbs a:hover { color: #fff; }
.bp-crumbs i { font-size: 9px; opacity: .5; }

.bp-article-head-inner {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

.bp-article-head-inner h1 {
    margin: 16px 0 16px;
    font-size: 42px;
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: -.025em;
    color: #fff;
}

.bp-article-lede {
    margin: 0 0 24px;
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .76);
}

.bp-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    font-size: 14px;
    color: rgba(255, 255, 255, .62);
}

.bp-article-meta i { margin-right: 7px; color: var(--bp-blue-2); }

.bp-author { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; }

.bp-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1046d6, #3fb6ff);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

/* body shell lifts over the dark header */

.bp-article-shell {
    max-width: 860px;
    margin: -72px auto 0;
    position: relative;
    z-index: 3;
    background: #fff;
    border: 1px solid var(--bp-line);
    border-radius: var(--bp-radius);
    padding: 40px 52px 48px;
    box-shadow: 0 14px 50px rgba(20, 20, 43, .12);
}

.bp-article-cover {
    margin: 0 0 34px;
    border-radius: 14px;
    overflow: hidden;
}

.bp-article-cover img { width: 100%; height: auto; display: block; }

/* rendered article content */

.bp-article-body {
    font-size: 17px;
    line-height: 1.82;
    color: #2f2f3d;
}

.bp-article-body > *:first-child { margin-top: 0; }

.bp-article-body p { margin: 0 0 22px; }

.bp-article-body h2,
.bp-article-body h3,
.bp-article-body h4 {
    margin: 40px 0 14px;
    font-weight: 700;
    letter-spacing: -.015em;
    line-height: 1.3;
    color: var(--bp-ink);
}

.bp-article-body h2 { font-size: 28px; }
.bp-article-body h3 { font-size: 23px; }
.bp-article-body h4 { font-size: 19px; }

.bp-article-body a { color: var(--bp-blue); text-decoration: underline; text-underline-offset: 3px; }
.bp-article-body a:hover { color: #0b3ec9; }

.bp-article-body ul,
.bp-article-body ol { margin: 0 0 22px; padding-left: 26px; }
.bp-article-body li { margin-bottom: 9px; }

.bp-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 12px 0 24px;
}

.bp-article-body blockquote {
    margin: 28px 0;
    padding: 20px 26px;
    border-left: 4px solid var(--bp-blue);
    background: rgba(30, 94, 255, .05);
    border-radius: 0 12px 12px 0;
    font-size: 17.5px;
    font-style: italic;
    color: #3a3a4c;
}

.bp-article-body blockquote p:last-child { margin-bottom: 0; }

.bp-article-body pre {
    margin: 0 0 24px;
    padding: 18px 20px;
    background: #0f1020;
    color: #e6e6f2;
    border-radius: 12px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.6;
}

.bp-article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 24px;
    font-size: 15px;
}

.bp-article-body th,
.bp-article-body td { padding: 11px 14px; border: 1px solid var(--bp-line); text-align: left; }
.bp-article-body th { background: #f4f4f9; font-weight: 700; }

/* Quill alignment classes, so editor formatting survives on the public page. */
.bp-article-body .ql-align-center { text-align: center; }
.bp-article-body .ql-align-right { text-align: right; }
.bp-article-body .ql-align-justify { text-align: justify; }
.bp-article-body .ql-indent-1 { padding-left: 3em; }
.bp-article-body .ql-indent-2 { padding-left: 6em; }
.bp-article-body .ql-indent-3 { padding-left: 9em; }

/* tags, share, disclaimer */

.bp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 34px 0 0;
    padding-top: 26px;
    border-top: 1px solid var(--bp-line);
}

.bp-tag {
    padding: 6px 14px;
    border-radius: 999px;
    background: #f2f2f7;
    color: var(--bp-muted);
    font-size: 13px;
    font-weight: 600;
}

.bp-share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--bp-line);
}

.bp-share-label { font-size: 14px; font-weight: 700; color: var(--bp-ink); }
.bp-share-links { display: flex; gap: 10px; }

.bp-share-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    border: 1px solid var(--bp-line);
    color: var(--bp-muted);
    font-size: 15px;
    text-decoration: none;
    transition: color .18s, border-color .18s, background .18s, transform .18s;
}

.bp-share-links a:hover {
    color: #fff;
    background: var(--bp-blue);
    border-color: var(--bp-blue);
    transform: translateY(-2px);
}

.bp-disclaimer {
    margin: 28px 0 0;
    padding: 16px 18px;
    border-radius: 12px;
    background: #f6f6fb;
    border: 1px solid var(--bp-line);
    font-size: 13px;
    line-height: 1.65;
    color: var(--bp-muted);
}

.bp-disclaimer i { color: var(--bp-blue); margin-right: 7px; }

.bp-back { margin-top: 28px; }

.bp-back a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    font-size: 14.5px;
    color: var(--bp-blue);
    text-decoration: none;
}

.bp-back a:hover { gap: 13px; }
.bp-back i { font-size: 12px; }

/* related */

.bp-related { padding: 74px 0 96px; }
.bp-related-head { margin-bottom: 30px; }

.bp-related-head .bp-eyebrow {
    background: rgba(30, 94, 255, .10);
    border-color: rgba(30, 94, 255, .22);
    color: var(--bp-blue);
}

.bp-related-head h2 {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--bp-ink);
}

/* ----------------------------------------------------------- responsive */

@media (max-width: 1024px) {
    .bp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bp-feature { grid-template-columns: 1fr; }
    .bp-feature-media { min-height: 240px; }
    .bp-feature-body { padding: 30px 28px 34px; }
    .bp-hero-title { font-size: 38px; }
    .bp-article-head-inner h1 { font-size: 34px; }
    .bp-article-shell { padding: 32px 30px 38px; }
}

@media (max-width: 640px) {
    .bp-hero { padding: 150px 0 68px; }
    .bp-hero-title { font-size: 30px; }
    .bp-hero-sub { font-size: 15.5px; }
    .bp-list { padding: 40px 0 64px; }
    .bp-grid { grid-template-columns: 1fr; }
    .bp-article-head { padding: 140px 0 96px; }
    .bp-article-head-inner h1 { font-size: 27px; }
    .bp-article-lede { font-size: 16px; }
    .bp-article-shell { padding: 24px 20px 30px; margin-top: -56px; border-radius: 16px; }
    .bp-article-body { font-size: 16px; }
    .bp-article-body h2 { font-size: 23px; }
    .bp-article-body h3 { font-size: 20px; }
    .bp-share { flex-direction: column; align-items: flex-start; }
    .bp-related { padding: 50px 0 70px; }
    .bp-related-head h2 { font-size: 24px; }
}
