/**
 * File: demov2/assets/css/pages/blog.css
 * Purpose: Bələdçi (bloq) — seçilmiş məqalə (foto solda / mətn sağda),
 *          kateqoriya pill-ləri + axtarış, məqalə kartları şəbəkəsi,
 *          abunə bloku. Rəngli minimal: seçilmiş məqalə açıq rəngli
 *          zolaqda, mövzu rəngləri (EA.topicHue) nişan / pill nöqtəsi /
 *          kart meta-da, abunə bloku brend yumşaq fonda.
 */

/* ── Seçilmiş məqalə ── */
.blog-feat-wrap { margin-top: 24px; padding-block: 28px; }
@media (min-width: 1024px) { .blog-feat-wrap { margin-top: 32px; padding-block: 48px; } }
.feat { display: grid; gap: 22px; align-items: center; }
@media (min-width: 900px) { .feat { grid-template-columns: 1.35fr 1fr; gap: 56px; } }
@media (min-width: 1200px) { .feat { gap: 72px; } }
.feat__img { display: block; aspect-ratio: 3 / 2; border-radius: 20px; overflow: hidden; background: var(--surface-2); }
.feat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.feat:hover .feat__img img { transform: scale(1.025); }
.feat .eyebrow { margin-bottom: 12px; }
.feat__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 14px; color: var(--text-2); }
.feat__meta .badge { height: 26px; padding: 0 10px; font-size: 13px; transition: background .15s; }
.feat__meta .badge:hover { background: color-mix(in srgb, var(--h) 18%, var(--surface)); }
.feat h2 { margin-top: 12px; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.15; letter-spacing: -.03em; max-width: 20ch; }
.feat h2 a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.feat p { margin-top: 14px; font-size: 17px; color: var(--text-2); max-width: 46ch; }
.feat__by { display: flex; align-items: center; gap: 12px; margin-top: 26px; }
.feat__by b { display: block; font-size: 15px; font-weight: 600; }
.feat__by small { display: block; font-size: 13.5px; color: var(--text-2); }
.feat .btn { margin-top: 28px; }

/* ── Kateqoriya + axtarış zolağı ── */
.blog-list { padding-top: 28px; }
@media (min-width: 1024px) { .blog-list { padding-top: 40px; } }
/* pill-lər öz sətrində (nöqtələrlə 9 pill + axtarış bir sətrə sığmırdı → "Hüquq" tək qalırdı);
   axtarış siyahı başlığının sağında */
.blog-bar { padding-bottom: 20px; }
.blog-bar__pills { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
@media (min-width: 900px) { .blog-bar__pills { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; overflow: visible; } }
.blog-bar__search { flex: none; width: 100%; }
@media (min-width: 900px) { .blog-bar__search { width: 300px; } }
.blog-bar__search .input { border-radius: var(--r-full); padding-left: 42px; }
/* kateqoriya pill-ində mövzu rəngli nöqtə (seçim vəziyyəti neytral qalır) */
.pill__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--h); }
.pill.is-on .pill__dot { box-shadow: 0 0 0 2px var(--on-ink); }
.blog-bar__search .i { width: 18px; height: 18px; left: 16px; }
.blog-bar__search input::-webkit-search-cancel-button { cursor: pointer; }

.blog-head { display: flex; flex-direction: column-reverse; gap: 20px; margin: 20px 0 22px; }
@media (min-width: 900px) { .blog-head { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; margin-top: 28px; } }
.blog-head__t { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; min-width: 0; }
@media (min-width: 900px) { .blog-head__t { justify-content: flex-start; } }
.blog-head h2 { font-size: clamp(20px, 2vw, 24px); }
.blog-head__n { font-size: 14px; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ── Məqalə kartları (ana səhifədəki "Bələdçi" kartları ilə eyni) ── */
.blog-grid { display: grid; gap: 36px 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); gap: 40px 24px; } }
@media (min-width: 1200px) { .blog-grid { grid-template-columns: repeat(4, 1fr); } }
.blog-grid.is-swap { opacity: .35; transition: opacity .18s; }
.blog-grid > .empty { grid-column: 1 / -1; }
.art-card { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.art-card__img { aspect-ratio: 3 / 2; border-radius: var(--r); overflow: hidden; background: var(--surface-2); margin-bottom: 8px; }
.art-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.art-card:hover .art-card__img img { transform: scale(1.03); }
.art-card__meta { font-size: 13.5px; color: var(--text-2); }
.art-card__meta b { font-weight: 600; color: var(--h-t); }
.art-card h3 { font-size: 17.5px; line-height: 1.35; letter-spacing: -.015em; }
@media (min-width: 1200px) { .art-card h3 { font-size: 17px; } }
.art-card:hover h3 { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.art-card p { color: var(--text-2); font-size: 15px; }
.art-card mark { background: var(--accent-soft); color: inherit; border-radius: 3px; padding: 0 1px; }

/* ── Abunə bloku ── */
/* ── Abunə banneri: solda təklif + forma, sağda bülletenin önizləməsi (agentliklər .agcta dili) ── */
.news { --nw-bg: var(--surface-2); --nw-card: var(--surface); display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 28px 20px; border-radius: 28px; background: var(--nw-bg); }
html[data-theme='dark'] .news { --nw-bg: var(--surface); --nw-card: var(--surface-2); }
@media (min-width: 900px) { .news { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 40px; } }
@media (min-width: 1200px) { .news { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 72px; padding: 56px 56px 56px 64px; } }
.news__tag { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 10px; border-radius: var(--r-full); background: color-mix(in srgb, var(--brand) 15%, transparent); color: var(--brand-text); font-size: 13px; font-weight: 600; }
.news__tag .i { width: 15px; height: 15px; }
.news h2 { margin-top: 16px; font-size: clamp(26px, 2.8vw, 36px); letter-spacing: -.035em; line-height: 1.12; }
.news__txt > p { margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--text-2); max-width: 46ch; }
.news__feats { display: grid; gap: 12px; margin: 24px 0 28px; }
.news__feats li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; }
.news__ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--h-s); color: var(--h-t); }
.news__ic .i { width: 17px; height: 17px; }
.news__form { display: flex; flex-wrap: wrap; gap: 8px; max-width: 520px; }
.news__field { position: relative; flex: 1 1 240px; min-width: 0; }
.news__field > [data-i] { position: absolute; left: 16px; top: 50%; z-index: 1; display: grid; margin-top: -9px; color: var(--text-3); pointer-events: none; }
.news__field > [data-i] .i { width: 18px; height: 18px; }
.news__field .input { height: 52px; padding-left: 46px; border-radius: 14px; background: var(--nw-card); }
.news__form .btn { height: 52px; border-radius: 14px; padding: 0 20px 0 22px; gap: 8px; }
.news__form .btn .i { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.news__form .btn:hover .i { transform: translateX(3px); }
@media (max-width: 479px) { .news__form .btn { width: 100%; } }
.news__err { flex-basis: 100%; font-size: 13px; color: var(--danger); }
.news__form.has-err .input { border-color: var(--danger); }
.news__proof { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 13.5px; color: var(--text-2); }
.news__proof b { color: var(--text); font-weight: 600; }
.news__avs { display: flex; flex: none; }
.news__avs i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--h-s); color: var(--h-t); font-size: 10.5px; font-style: normal; font-weight: 700; letter-spacing: -.02em; box-shadow: 0 0 0 2px var(--nw-bg); }
.news__avs i + i { margin-left: -6px; }

/* önizləmə: brend tonlu panel içində bülleten kartı + iki üzən çip */
.news__vis { position: relative; padding: 50px 14px 54px; border-radius: 22px; background: color-mix(in srgb, var(--brand) 12%, var(--nw-bg)); }
@media (min-width: 560px) { .news__vis { padding: 56px 44px 60px; } }
.nlp { max-width: 380px; margin: 0 auto; padding: 18px; border-radius: 18px; background: var(--nw-card); box-shadow: 0 18px 40px -18px rgba(16, 24, 40, .28), var(--edge); }
html[data-theme='dark'] .nlp { box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .7); }
.nlp__head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; background: var(--taper) bottom / 100% 1px no-repeat; }
.nlp__logo { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 11px; background: var(--surface-2); }
html[data-theme='dark'] .nlp__logo { background: var(--surface-3); }
.nlp__logo .logo__mark { width: 24px; height: 24px; }
.nlp__head b { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.nlp__head small { display: block; margin-top: 1px; font-size: 12px; color: var(--text-2); }
.nlp__new { flex: none; display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: color-mix(in srgb, var(--brand) 15%, transparent); color: var(--brand-text); font-size: 11.5px; font-weight: 600; }
.nlp__idx { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 14px; }
.nlp__idx small { display: block; font-size: 12px; color: var(--text-2); }
.nlp__idx b { display: block; margin-top: 2px; font-size: 21px; font-weight: 600; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.nlp__d { display: inline-flex; align-items: center; gap: 2px; height: 24px; padding: 0 8px 0 5px; border-radius: 7px; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.nlp__d .i { width: 14px; height: 14px; stroke-width: 2.4; }
.nlp__d.is-up { background: var(--success-soft); color: var(--success); }
.nlp__chart { display: block; width: 100%; height: auto; margin: 10px 0 6px; overflow: visible; }
.nlp__area { fill: color-mix(in srgb, var(--brand) 14%, transparent); }
.nlp__line { fill: none; stroke: var(--brand); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.nlp__pt { fill: var(--brand); stroke: var(--nw-card); stroke-width: 3; }
.nlp__rows { display: grid; gap: 9px; padding-top: 12px; background: var(--taper) top / 100% 1px no-repeat; }
.nlp__rows li { display: grid; grid-template-columns: 62px minmax(0, 1fr) 48px; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-2); }
.nlp__rows i { position: relative; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
html[data-theme='dark'] .nlp__rows i { background: var(--surface-3); }
.nlp__rows i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: color-mix(in srgb, var(--brand) 70%, transparent); }
.nlp__rows b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.nlp__rows b.is-up { color: var(--success); }
.nlp__rows b.is-dn { color: var(--danger); }
.nlp__pick { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 10px; border-radius: 12px; background: var(--surface-2); }
html[data-theme='dark'] .nlp__pick { background: var(--surface-3); }
.nlp__pick img { width: 52px; height: 52px; flex: none; border-radius: 9px; object-fit: cover; }
.nlp__pick small { display: block; font-size: 11.5px; font-weight: 600; color: var(--brand-text); }
.nlp__pick b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 2px; font-size: 13px; font-weight: 600; line-height: 1.35; }
.news__chip { position: absolute; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 10px; border-radius: 14px; background: var(--nw-card); box-shadow: 0 10px 28px -8px rgba(16, 24, 40, .22); white-space: nowrap; }
html[data-theme='dark'] .news__chip { background: var(--surface-3); box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .7); }
.news__chip > .i { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: color-mix(in srgb, var(--brand) 15%, transparent); color: var(--brand-text); }
.news__chip b { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.news__chip small { display: block; font-size: 12px; color: var(--text-2); }
.news__chip--a { top: 14px; right: 14px; }
.news__chip--b { bottom: 14px; left: 14px; }
@media (min-width: 560px) { .news__chip--a { top: 18px; right: 20px; } .news__chip--b { bottom: 16px; left: 20px; } }
