/* 3.102.0: blog – public list / post (site layout) and the admin editor preview / SEO preview. Colours from the theme variables. */

/* ---------- list */
.bl-head { position: relative; overflow: hidden; padding: 3rem 0 2.6rem; }
.bl-head::after { content: ""; position: absolute; width: 420px; height: 420px; right: -140px; top: -220px; border-radius: 50%; background: rgba(255,255,255,.08); pointer-events: none; }
.bl-head .container { position: relative; z-index: 1; }
.bl-crumbs, .bl-crumbs a { color: inherit; opacity: .85; text-decoration: none; }
.bl-crumbs a:hover { opacity: 1; text-decoration: underline; }
.bl-crumbs .bi { font-size: .7em; opacity: .7; margin: 0 .15rem; }
.bl-intro { max-width: 640px; }
.bl-search { display: flex; align-items: center; gap: .5rem; max-width: 520px; background: #fff; border-radius: 2rem; padding: .3rem .35rem .3rem 1rem; box-shadow: 0 10px 30px rgba(15,23,42,.18); }
.bl-search .bi { color: #64748b; }
.bl-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #0f172a; font-size: 1rem; padding: .45rem 0; }
.bl-search .btn { border-radius: 2rem; background: var(--app-primary); color: #fff; border: 0; padding: .45rem 1.1rem; }
.bl-chips { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: none; }
.bl-chips::-webkit-scrollbar { display: none; }
.bl-chip { flex: none; display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--bs-border-color); border-radius: 2rem; padding: .35rem .95rem; font-size: .875rem; color: var(--bs-body-color); text-decoration: none; background: var(--bs-body-bg); transition: background .15s, color .15s, border-color .15s; }
.bl-chip span { font-size: .75rem; opacity: .6; }
.bl-chip:hover { border-color: var(--app-primary); color: var(--app-primary); }
.bl-chip.active { background: var(--app-primary); border-color: var(--app-primary); color: #fff; }
.bl-chip.active span { opacity: .85; }
.bl-card { height: 100%; display: flex; flex-direction: column; background: var(--bs-body-bg); border: 1px solid var(--bs-border-color-translucent); border-radius: 1.25rem; overflow: hidden; box-shadow: 0 6px 24px rgba(15,23,42,.06); transition: transform .18s, box-shadow .18s; }
.bl-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(15,23,42,.12); }
.bl-cover { display: block; aspect-ratio: 1200 / 630; overflow: hidden; background: rgba(var(--app-primary-rgb), .08); }
.bl-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.bl-card:hover .bl-cover img { transform: scale(1.04); }
.bl-cover-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; color: var(--app-primary); background: linear-gradient(135deg, rgba(var(--app-primary-rgb), .14), rgba(var(--app-primary-rgb), .04)); }
.bl-body { padding: 1.15rem 1.25rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.bl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .8rem; color: var(--bs-secondary-color); margin-bottom: .45rem; }
.bl-cat { display: inline-block; background: rgba(var(--app-primary-rgb), .1); color: var(--app-primary); font-weight: 600; border-radius: 2rem; padding: .12rem .6rem; text-decoration: none; }
.bl-title { font-size: 1.15rem; font-weight: 700; line-height: 1.35; margin-bottom: .45rem; letter-spacing: -.01em; }
.bl-title a { color: var(--bs-body-color); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bl-title a:hover { color: var(--app-primary); }
.bl-excerpt { color: var(--bs-secondary-color); font-size: .95rem; line-height: 1.6; margin-bottom: .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bl-more { margin-top: auto; font-weight: 600; font-size: .9rem; color: var(--app-primary); text-decoration: none; }
.bl-more .bi { transition: transform .15s; }
.bl-more:hover .bi { transform: translateX(3px); }
@media (min-width: 992px) {
    .bl-lead { flex-direction: row; }
    .bl-lead .bl-cover { flex: 0 0 56%; aspect-ratio: auto; min-height: 340px; }
    .bl-lead .bl-body { padding: 2rem 2.2rem; justify-content: center; }
    .bl-lead .bl-title { font-size: 1.75rem; }
    .bl-lead .bl-excerpt { -webkit-line-clamp: 4; font-size: 1.02rem; }
    .bl-lead .bl-more { margin-top: .5rem; }
}

/* ---------- post */
.bp-wrap { max-width: 800px; }
.bp-head { padding: 2.6rem 0 1.4rem; }
.bp-head .bl-crumbs { color: var(--bs-secondary-color); }
.bp-title { font-size: clamp(1.75rem, 4.2vw, 2.7rem); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; margin-bottom: .8rem; }
.bp-summary { font-size: 1.15rem; color: var(--bs-secondary-color); line-height: 1.6; margin-bottom: 1.2rem; }
.bp-meta { display: flex; align-items: center; gap: .7rem; font-size: .875rem; color: var(--bs-secondary-color); line-height: 1.35; }
.bp-meta strong { color: var(--bs-body-color); }
.bp-cover { margin: 0 0 1.8rem; border-radius: 1.25rem; overflow: hidden; box-shadow: 0 18px 44px rgba(15,23,42,.14); }
.bp-cover img { width: 100%; height: auto; display: block; aspect-ratio: 1200 / 630; object-fit: cover; }
.bp-toc { border: 1px solid var(--bs-border-color-translucent); border-radius: 1rem; padding: .8rem 1.1rem; margin-bottom: 1.8rem; background: rgba(var(--app-primary-rgb), .04); }
.bp-toc summary { font-weight: 700; cursor: pointer; }
.bp-toc ol { margin: .6rem 0 0; padding-left: 1.2rem; }
.bp-toc li { margin: .2rem 0; }
.bp-toc li.sub { margin-left: 1rem; list-style: circle; font-size: .95em; }
.bp-toc a { color: var(--bs-body-color); text-decoration: none; }
.bp-toc a:hover { color: var(--app-primary); }

.bp-content { font-size: 1.075rem; line-height: 1.8; color: var(--bs-body-color); overflow-wrap: anywhere; }
.bp-content > :first-child { margin-top: 0; }
.bp-content p { margin: 0 0 1.15rem; }
.bp-content h2 { font-size: 1.55rem; font-weight: 800; letter-spacing: -.015em; margin: 2.2rem 0 .8rem; scroll-margin-top: 90px; }
.bp-content h3 { font-size: 1.22rem; font-weight: 700; margin: 1.7rem 0 .6rem; scroll-margin-top: 90px; }
.bp-content a { color: var(--app-primary); text-decoration: underline; text-underline-offset: 3px; }
.bp-content ul, .bp-content ol { margin: 0 0 1.2rem; padding-left: 1.4rem; }
.bp-content li { margin: .35rem 0; }
.bp-content li::marker { color: var(--app-primary); font-weight: 700; }
.bp-content blockquote { margin: 1.5rem 0; padding: 1rem 1.25rem; border-left: 4px solid var(--app-primary); background: rgba(var(--app-primary-rgb), .06); border-radius: 0 .9rem .9rem 0; font-size: 1.05rem; }
.bp-content code { background: rgba(var(--app-primary-rgb), .1); color: var(--bs-body-color); border-radius: .35rem; padding: .1rem .35rem; font-size: .9em; }
.bp-content hr { margin: 2rem 0; opacity: .15; }
.bp-content strong { font-weight: 700; }
.bp-figure { margin: 1.6rem 0; }
.bp-figure img { width: 100%; height: auto; border-radius: 1rem; display: block; }
.bp-figure figcaption { text-align: center; font-size: .875rem; color: var(--bs-secondary-color); margin-top: .5rem; }
.bp-video { margin: 1.6rem 0; border-radius: 1rem; overflow: hidden; background: #000; box-shadow: 0 12px 30px rgba(15,23,42,.15); }
.bp-video iframe { border: 0; }
.bp-video video { width: 100%; display: block; max-height: 70vh; }

.bp-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin: 2rem 0 1.2rem; }
.bp-tags a { font-size: .85rem; border-radius: 2rem; padding: .25rem .8rem; background: var(--bs-tertiary-bg); color: var(--bs-body-color); text-decoration: none; }
.bp-tags a:hover { background: rgba(var(--app-primary-rgb), .12); color: var(--app-primary); }
.bp-share { margin: 2rem 0 1.5rem; padding: 1.1rem 1.25rem; border-radius: 1.1rem; background: var(--bs-body-bg); border: 1px solid var(--bs-border-color-translucent); box-shadow: 0 6px 22px rgba(15, 23, 42, .05); display: grid; grid-template-columns: auto 1fr; gap: .9rem 1.25rem; align-items: center; }
.bp-share-head { font-weight: 700; font-size: .95rem; display: flex; align-items: center; gap: .45rem; }
.bp-share-head i { color: var(--app-primary, var(--bs-primary)); }
.bp-share-row { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
.bp-share-row a, .bp-share-row button { width: 40px; height: 40px; border-radius: 50%; border: 0; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 1.05rem; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.bp-share-row a:hover, .bp-share-row button:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(15, 23, 42, .18); color: #fff; }
.bp-share .fb { background: #1877f2; } .bp-share .wa { background: #25d366; } .bp-share .tg { background: #229ed9; }
.bp-share .x { background: #0f172a; } .bp-share .li { background: #0a66c2; } .bp-share .ns { background: #64748b; }
.bp-link { grid-column: 1 / -1; display: flex; align-items: center; gap: .5rem; padding: .3rem .3rem .3rem .85rem; border-radius: 2rem; background: var(--bs-tertiary-bg); border: 1px solid var(--bs-border-color-translucent); }
.bp-link > i { color: var(--bs-secondary-color); font-size: 1.15rem; }
.bp-link input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--bs-body-color); font-size: .9rem; outline: none; text-overflow: ellipsis; }
.bp-link .cp { flex-shrink: 0; border: 0; border-radius: 2rem; padding: .45rem 1rem; font-weight: 600; font-size: .85rem; background: var(--app-primary, var(--bs-primary)); color: #fff; display: inline-flex; align-items: center; gap: .4rem; transition: background .15s; }
.bp-link .cp.done { background: #16a34a; }
@media (max-width: 575.98px) { .bp-share { grid-template-columns: 1fr; } .bp-share-row { justify-content: flex-start; } .bp-link .cp span { display: none; } }
.bp-feedback { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1rem; margin: 1.8rem 0; padding: 1.1rem 1.3rem; border-radius: 1.1rem; background: rgba(var(--app-primary-rgb), .05); border: 1px solid rgba(var(--app-primary-rgb), .12); }
.bp-feedback .bp-thanks { flex-basis: 100%; }
.bp-vote { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--bs-border-color); background: var(--bs-body-bg); color: var(--bs-body-color); border-radius: 2rem; padding: .45rem 1rem; font-weight: 600; font-size: .9rem; transition: all .15s; }
.bp-vote span { font-weight: 500; opacity: .7; }
.bp-vote.up:hover, .bp-vote.up.on { border-color: #16a34a; color: #16a34a; background: rgba(22,163,74,.08); }
.bp-vote.down:hover, .bp-vote.down.on { border-color: #dc2626; color: #dc2626; background: rgba(220,38,38,.07); }
.bp-vote.on .bi::before { font-weight: 700; }
.bp-vote:disabled { opacity: .6; }
.bp-comments { margin-top: 2.4rem; scroll-margin-top: 90px; }
.bp-comment { display: flex; gap: .8rem; padding: 1rem 0; border-bottom: 1px solid var(--bs-border-color-translucent); }
.bp-comment-text { margin-top: .25rem; line-height: 1.65; overflow-wrap: anywhere; }
.bp-reply { margin-top: .7rem; padding: .65rem .9rem; border-radius: .8rem; background: rgba(var(--app-primary-rgb), .06); border-left: 3px solid var(--app-primary); font-size: .95rem; }
.bp-form .form-control { border-radius: .75rem; }
.min-w-0 { min-width: 0; }

@media (max-width: 575.98px) {
    .bl-head { padding: 2.2rem 0 2rem; }
    .bp-head { padding-top: 1.8rem; }
    .bp-content { font-size: 1.03rem; }
    .bp-cover { border-radius: .9rem; margin-left: -.25rem; margin-right: -.25rem; }
    .bp-feedback form { width: 100%; }
    .bp-vote { flex: 1; justify-content: center; }
}
/* Night template: the page is dark */
.tpl-night .bl-card { background: rgba(255,255,255,.03); }

/* ---------- 3.103.0 subscribe box */
.bl-sub { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.1rem; margin: 1.8rem 0; padding: 1.1rem 1.3rem; border-radius: 1.2rem;
    background: linear-gradient(135deg, rgba(var(--app-primary-rgb), .1), rgba(var(--app-primary-rgb), .03)); border: 1px solid rgba(var(--app-primary-rgb), .15); scroll-margin-top: 90px; }
.bl-sub-ico { width: 48px; height: 48px; flex: none; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: #fff; background: var(--app-gradient, var(--app-primary)); }
.bl-sub-form { display: flex; gap: .5rem; flex: 1 1 320px; }
.bl-sub-form .form-control { border-radius: 2rem; padding-left: 1rem; }
@media (max-width: 575.98px) { .bl-sub-form { flex-basis: 100%; } }

/* ---------- admin: editor + Google preview */
.be-bar { position: sticky; top: 0; z-index: 3; background: var(--bs-tertiary-bg); }
.be-bar .btn-light { background: transparent; border-color: transparent; }
.be-bar .btn-light:hover { background: var(--bs-secondary-bg); }
.be-text { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Hind Siliguri", monospace; font-size: .95rem; line-height: 1.7; resize: vertical; min-height: 420px; box-shadow: none !important; }
.be-text.be-drop { outline: 3px dashed var(--app-primary); outline-offset: -6px; background: rgba(var(--app-primary-rgb), .04); }
.be-preview { overflow: auto; }
.be-progress { position: absolute; right: .75rem; bottom: .75rem; background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); border-radius: 2rem; padding: .3rem .8rem; font-size: .85rem; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.seo-serp { border: 1px solid var(--bs-border-color-translucent); border-radius: .8rem; padding: .75rem .9rem; background: var(--bs-body-bg); font-family: arial, sans-serif; }
.seo-serp-title { color: #1a0dab; font-size: 1.1rem; line-height: 1.3; }
[data-bs-theme=dark] .seo-serp-title { color: #8ab4f8; }
.seo-serp-desc { color: var(--bs-secondary-color); font-size: .85rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
