/* =========================================================
   SHOKERU — Блог: лістинг (bl-*) + стаття (bp-*)
   Палітра сайту: фон #202222, акцент #C5FF24, muted #8A909B
   ========================================================= */

/* ---------- Лістинг: hero ---------- */
.bl-hero{
    padding: 0 0 8px;
    background:
        radial-gradient(60% 60% at 85% 0%, rgba(197,255,36,.07), transparent 60%),
        transparent;
}
.bl-hero__title{ margin-top: 8px; }
.bl-hero__lead{
    margin-top: 16px;
    max-width: 640px;
    color: #8A909B;
    font-size: 17px;
    line-height: 1.55;
}

/* chips */
.bl-chips{ display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.bl-chip{
    padding: 9px 16px;
    border-radius: 999px;
    background: #2B2D35;
    border: 1px solid #36393F;
    color: #fff;
    font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    transition: color .2s, border-color .2s, background .2s;
}
.bl-chip:hover{ color: #C5FF24; border-color: rgba(197,255,36,.5); }
.bl-chip.is-active{ background: #C5FF24; color: #202222; border-color: #C5FF24; }

/* ---------- Лістинг: грід ---------- */
.bl-section{ padding: 40px 0 88px; }
.bl-grid{ display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 720px){ .bl-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px){ .bl-grid{ grid-template-columns: repeat(3, 1fr); } }

.bl-card{
    display: flex; flex-direction: column;
    background: #2B2D35;
    border: 1px solid #36393F;
    border-radius: 18px;
    overflow: hidden;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.bl-card:hover{
    transform: translateY(-4px);
    border-color: rgba(197,255,36,.45);
    box-shadow: 0 24px 60px -30px rgba(197,255,36,.4);
}
.bl-card__media{ aspect-ratio: 16/10; overflow: hidden; background: #26282F; position: relative; }
.bl-card__media img{
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.bl-card:hover .bl-card__media img{ transform: scale(1.06); }
.bl-card__cat{
    position: absolute; top: 14px; left: 14px;
    padding: 6px 10px; border-radius: 999px;
    background: rgba(32,34,34,.82);
    backdrop-filter: blur(6px);
    color: #C5FF24;
    border: 1px solid rgba(197,255,36,.4);
    font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
}
.bl-card__body{ padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.bl-card__meta{ display: flex; flex-wrap: wrap; gap: 14px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #8A909B; }
.bl-card__title{
    margin: 2px 0 0;
    color: #fff;
    font-size: 21px; font-weight: 800; line-height: 1.2;
    transition: color .25s ease;
}
.bl-card:hover .bl-card__title{ color: #C5FF24; }
.bl-card__excerpt{ color: #8A909B; font-size: 14px; line-height: 1.55; }
.bl-card__more{
    margin-top: auto; padding-top: 16px;
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    color: #C5FF24;
}
.bl-card__more svg{ transition: transform .3s ease; }
.bl-card:hover .bl-card__more svg{ transform: translateX(4px); }

/* featured — перша картка на всю ширину */
@media (min-width: 1080px){
    .bl-grid > .bl-card.is-featured{ grid-column: span 3; display: grid; grid-template-columns: 1.15fr 1fr; }
    .bl-grid > .bl-card.is-featured .bl-card__media{ aspect-ratio: auto; height: 100%; min-height: 340px; }
    .bl-grid > .bl-card.is-featured .bl-card__body{ padding: 40px; justify-content: center; gap: 16px; }
    .bl-grid > .bl-card.is-featured .bl-card__title{ font-size: 32px; }
}
.bl-grid--related > .bl-card.is-featured{ grid-column: auto; display: flex; }

/* пагінація */
.bl-pager{ display: flex; justify-content: center; gap: 8px; margin-top: 56px; }
.bl-pager a{
    min-width: 40px; height: 40px; padding: 0 12px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: #2B2D35; border: 1px solid #36393F;
    font-size: 13px; font-weight: 700; color: #8A909B;
    transition: color .2s, background .2s, border-color .2s;
}
.bl-pager a:hover{ color: #C5FF24; border-color: rgba(197,255,36,.5); }
.bl-pager a.is-active{ background: #C5FF24; color: #202222; border-color: #C5FF24; }

.bl-empty{ padding: 40px 0 80px; color: #8A909B; font-size: 17px; }

/* ---------- Стаття: прогрес ---------- */
.bp-progress{
    position: fixed; top: 0; left: 0; height: 3px; width: 0%;
    background: #C5FF24; z-index: 200;
    box-shadow: 0 0 10px #C5FF24;
}

/* ---------- Стаття: hero ---------- */
.bp-hero{ position: relative; overflow: hidden; isolation: isolate; }
.bp-hero__media{ position: absolute; inset: 0; z-index: 0; }
.bp-hero__media img{ width: 100%; height: 100%; object-fit: cover; }
.bp-hero__overlay{
    position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(180deg, rgba(32,34,34,.55) 0%, rgba(32,34,34,.45) 40%, rgba(32,34,34,.97) 100%),
        radial-gradient(80% 60% at 20% 30%, transparent 0%, rgba(32,34,34,.4) 60%, rgba(32,34,34,.85) 100%);
}
.bp-hero .container{ position: relative; z-index: 2; }
.bp-hero__inner{
    padding: 45px 0 64px;
    min-height: 420px;
    display: flex; flex-direction: column; justify-content: flex-end;
}
.bp-hero--noimg .bp-hero__inner{ min-height: 0; padding: 40px 0 40px; }
.bp-eyebrow{
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 22px; max-width: max-content;
    padding: 7px 14px; border-radius: 999px;
    background: rgba(197,255,36,.14);
    border: 1px solid rgba(197,255,36,.45);
    color: #C5FF24;
    font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
}
.bp-title{
    margin: 22px 0 0;
    color: #fff;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800; line-height: 1.05;
    max-width: 820px;
}
.bp-meta{
    margin-top: 26px;
    display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
    font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #8A909B;
}
.bp-meta__author{ display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.bp-avatar{
    width: 32px; height: 32px; border-radius: 999px;
    background: linear-gradient(135deg, #C5FF24, #9dd31f);
    display: inline-flex; align-items: center; justify-content: center;
    color: #202222; font-weight: 900; font-size: 13px;
}
.bp-meta__dot{ width: 4px; height: 4px; border-radius: 999px; background: #8A909B; opacity: .55; }

/* ---------- Стаття: layout + TOC ---------- */
.bp-layout{
    display: grid; grid-template-columns: 1fr;
    gap: 40px;
    padding: 56px 0 72px;
}
@media (min-width: 1024px){
    .bp-layout{ grid-template-columns: 260px minmax(0, 1fr); gap: 64px; padding-top: 72px; }
}
.bp-toc{
    position: relative;
    background: #26282F;
    border: 1px solid #36393F;
    border-radius: 18px;
    padding: 24px 20px;
    align-self: start;
}
@media (min-width: 1024px){
    .bp-toc{ position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; }
}
.bp-toc__head{
    font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
    color: #8A909B; margin-bottom: 14px;
}
.bp-toc__list{ list-style: none; margin: 0; padding: 0; counter-reset: bptoc; display: grid; gap: 2px; }
.bp-toc__list a{
    counter-increment: bptoc;
    display: block; padding: 10px 12px;
    border-left: 2px solid #36393F;
    border-radius: 0 8px 8px 0;
    font-size: 14px; color: #8A909B;
    transition: color .2s, border-color .2s, background .2s;
}
.bp-toc__list a::before{
    content: counter(bptoc, decimal-leading-zero);
    color: #C5FF24; font-weight: 700; margin-right: 10px; font-size: 11px; letter-spacing: .08em;
}
.bp-toc__list a:hover{ color: #fff; background: #2B2D35; border-left-color: rgba(197,255,36,.55); }
.bp-toc__list a.is-active{ color: #C5FF24; border-left-color: #C5FF24; background: rgba(197,255,36,.08); }

/* ---------- Стаття: проза ---------- */
.bp-article{
    min-width: 0;
    font-size: 17px; line-height: 1.75; color: #d6d8dd;
    background: #26282F;
    border: 1px solid #36393F;
    border-radius: 18px;
    padding: 40px 44px;
}
@media (max-width: 1023px){
    .bp-article{ padding: 28px 22px; }
}
.bp-article > * + *{ margin-top: 1.2em; }
.bp-article h2{
    margin-top: 2.2em;
    color: #fff;
    font-size: clamp(23px, 2.4vw, 32px); font-weight: 800; line-height: 1.15;
    scroll-margin-top: 96px;
}
.bp-article h2:first-child{ margin-top: 0; }
.bp-article h3{
    margin-top: 1.8em;
    color: #fff;
    font-size: clamp(18px, 1.8vw, 21px); font-weight: 700;
}
.bp-article strong{ color: #fff; font-weight: 700; }
.bp-article em{ color: #C5FF24; }
.bp-article a{ color: #C5FF24; border-bottom: 1px dashed rgba(197,255,36,.55); }
.bp-article a:hover{ border-bottom-style: solid; }
.bp-article ul, .bp-article ol{ padding-left: 1.3em; }
.bp-article li + li{ margin-top: .5em; }
.bp-article ul li::marker{ color: #C5FF24; }
.bp-article blockquote{
    margin: 2em 0; padding: 20px 24px;
    border-left: 3px solid #C5FF24;
    background: #2B2D35;
    border-radius: 0 12px 12px 0;
    font-size: 18px; color: #fff; font-style: italic;
}
.bp-article img{ max-width: 100%; height: auto; border-radius: 14px; border: 1px solid #36393F; }
.bp-article figure{ margin: 2em 0; }
.bp-article figcaption{ margin-top: 10px; font-size: 13px; color: #8A909B; text-align: center; }
.bp-article hr{ border: 0; border-top: 1px solid #36393F; margin: 3em 0; }
.bp-article .bp-lead{
    font-size: 20px; line-height: 1.55; color: #fff;
    padding-bottom: 20px; border-bottom: 1px solid #36393F;
}
.bp-article .bp-callout{
    display: flex; gap: 14px; align-items: flex-start;
    padding: 20px 22px; border-radius: 14px;
    background: #2B2D35; border: 1px solid #36393F;
    font-size: 15px;
}
.bp-article .bp-callout::before{
    content: '!';
    flex-shrink: 0;
    width: 22px; height: 22px; border-radius: 999px;
    background: rgba(197,255,36,.15);
    color: #C5FF24;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 900; font-style: normal;
}

/* ---------- Стаття: товари + related ---------- */
.bp-products{ padding-top: 0; }
.bp-related{
    padding: 64px 0 88px;
    background: radial-gradient(60% 60% at 90% 0%, rgba(197,255,36,.06), transparent 60%);
}
.bp-related__head{
    display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px;
    margin-bottom: 32px;
}
.bp-related__head a{
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
    color: #C5FF24;
}
.bp-related__head a svg{ transition: transform .3s ease; }
.bp-related__head a:hover svg{ transform: translateX(4px); }

/* ---------- Мобілка ---------- */
@media (max-width: 767px){
    .bl-hero__lead{ font-size: 15px; }
    .bl-section{ padding: 28px 0 56px; }
    .bl-card__body{ padding: 18px; }
    .bl-card__title{ font-size: 18px; }
    .bp-hero__inner{ padding: 64px 0 40px; min-height: 320px; }
    .bp-layout{ padding: 36px 0 48px; gap: 28px; }
    .bp-article{ font-size: 16px; }
    .bp-related{ padding: 40px 0 56px; }
}

/* fix: sticky TOC — прибрати overflow:hidden предка ЛИШЕ на десктопі.
   На моб лишаємо overflow:hidden, щоб не розкривати «підглядання» слайдера
   (.productSlider width:48%) і не ламати анімацію в моб-адаптації */
@media (min-width: 1024px){
    main.main:has(.bp-layout){ overflow: visible; }
}

/* слайдер «Товари з цієї статті» на моб — повноширинний, без переповнення */
.bp-products{ overflow: hidden; }
@media (max-width: 767px){
    .bp-products .productSlider__slider{ width: 100%; overflow: hidden; }
}

/* хлібні крихти на темному hero статті — контрастні */
.bp-hero .breadcrumbs{ margin-top: 0; }
.bp-hero .breadcrumbs li a,
.bp-hero .breadcrumbs li::after{ color: #E8EAED; }
.bp-hero .breadcrumbs li a:hover{ color: #C5FF24; }
.bp-hero .breadcrumbs li a.active{ color: #C5FF24; }
