/* بلاگ سوشال هاب — روی توکن‌های assets/style.css لندینگ ساخته شده */
.blog-main { padding: 110px 0 40px; min-height: 60vh; }
.blog-hero { padding: 24px 24px 12px; }
.blog-hero h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: var(--ink); margin-top: 6px; }
.blog-hero p { color: var(--ink-2); margin-top: 8px; max-width: 640px; line-height: 2; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: 12.5px; color: var(--ink-3); }
.crumbs li + li::before { content: "‹"; margin-left: 6px; opacity: .6; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--brand); }

.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.cat-tabs a { padding: 8px 16px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--line); color: var(--ink-2); font-size: 13.5px; font-weight: 500; }
.cat-tabs a[aria-current="page"] { background: var(--navy); color: var(--navy-ink); border-color: var(--navy); }

.bp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 22px; }
.bp-card { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--glass); border: 1px solid var(--line); box-shadow: 0 10px 30px var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.bp-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px var(--shadow); }
.bp-card-media { display: block; aspect-ratio: 1200 / 630; background: #1b2230; }
.bp-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bp-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bp-card h2 { font-size: 17px; font-weight: 700; line-height: 1.8; }
.bp-card h2 a { color: var(--ink); }
.bp-card h2 a:hover { color: var(--brand); }
.bp-card p { color: var(--ink-2); font-size: 13.5px; line-height: 2; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bp-chip { align-self: flex-start; display: inline-block; padding: 3px 12px; border-radius: 999px; background: rgba(69, 96, 241, .1); color: var(--brand); font-size: 12px; font-weight: 700; }
.bp-meta { display: flex; flex-wrap: wrap; gap: 6px; color: var(--ink-3); font-size: 12.5px; margin-top: auto; }
.empty-note { color: var(--ink-3); padding: 40px 0; }

.pager { display: flex; justify-content: center; gap: 8px; margin: 36px 0 10px; }
.pager a { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--glass-strong); border: 1px solid var(--line); color: var(--ink-2); }
.pager a[aria-current="page"] { background: var(--navy); color: var(--navy-ink); }

/* صفحه‌ی مطلب */
.preview-bar { position: sticky; top: 72px; z-index: 5; margin: 0 auto 10px; max-width: 760px; padding: 10px 16px; border-radius: 12px; background: #f2942b; color: #1b2230; font-size: 13.5px; font-weight: 700; text-align: center; }
.bp-head { display: block; max-width: 820px; margin: 0 auto; padding: 18px 0 8px; }
.bp-head .bp-chip { margin-top: 18px; }
.bp-head h1 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; line-height: 1.6; color: var(--ink); margin-top: 10px; }
.bp-lead { color: var(--ink-2); font-size: 16px; line-height: 2.1; margin-top: 10px; }
.bp-head .bp-meta { margin-top: 14px; }
.bp-cover { max-width: 1000px; margin: 22px auto 0; }
.bp-cover img { width: 100%; height: auto; border-radius: 24px; display: block; box-shadow: 0 24px 60px var(--shadow); }
.bp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 40px; max-width: 1060px; margin: 34px auto 0; align-items: start; }
.bp-layout:not(:has(.bp-toc)) { grid-template-columns: minmax(0, 760px); justify-content: center; }
.bp-toc { order: 2; position: sticky; top: 96px; padding: 18px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); font-size: 13px; }
.bp-toc summary { font-weight: 700; color: var(--ink); cursor: pointer; }
.bp-toc ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.bp-toc .lvl-3 { padding-right: 14px; }
.bp-toc a { color: var(--ink-2); line-height: 1.8; }
.bp-toc a:hover { color: var(--brand); }

.bp-body { font-size: 16.5px; line-height: 2.25; color: var(--ink-2); min-width: 0; }
.bp-body > * + * { margin-top: 1.1em; }
.bp-body h2 { font-size: 23px; font-weight: 800; color: var(--ink); margin-top: 1.8em; line-height: 1.7; scroll-margin-top: 90px; }
.bp-body h3 { font-size: 18.5px; font-weight: 700; color: var(--ink); margin-top: 1.5em; scroll-margin-top: 90px; }
.bp-body h4 { font-size: 16.5px; font-weight: 700; color: var(--ink); }
.bp-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.bp-body strong { color: var(--ink); font-weight: 700; }
.bp-body ul, .bp-body ol { padding-right: 1.4em; display: grid; gap: .35em; }
.bp-body ul { list-style: disc; }
.bp-body ol { list-style: decimal; }
.bp-body li::marker { color: var(--brand); }
.bp-body blockquote { margin: 1.4em 0; padding: 14px 20px; border-right: 4px solid var(--brand); background: rgba(69, 96, 241, .06); border-radius: 12px; color: var(--ink); }
.bp-body blockquote > * { margin: 0; }
.bp-body code { font-family: ui-monospace, Consolas, monospace; font-size: .88em; background: var(--glass-strong); padding: 2px 6px; border-radius: 6px; }
.bp-body pre { background: #1b2230; color: #e5e7eb; padding: 16px; border-radius: 14px; overflow-x: auto; line-height: 1.7; }
.bp-body pre code { background: none; padding: 0; color: inherit; }
.bp-body hr { border: 0; border-top: 1px solid var(--divider); margin: 2em 0; }
.bp-body figure { margin: 1.6em 0; }
.bp-body img { max-width: 100%; height: auto; border-radius: 16px; }
.bp-body figcaption { font-size: 13px; color: var(--ink-3); text-align: center; margin-top: 8px; }
.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--divider); }
.bp-body table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.9; }
.bp-body th, .bp-body td { padding: 10px 14px; text-align: right; border-bottom: 1px solid var(--divider); }
.bp-body th { background: var(--glass-strong); color: var(--ink); font-weight: 700; }

.bp-faq { margin-top: 2.4em; }
.bp-faq details { border: 1px solid var(--line); background: var(--glass); border-radius: 14px; padding: 12px 18px; margin-top: 10px; }
.bp-faq summary { cursor: pointer; font-weight: 700; color: var(--ink); line-height: 1.9; }
.bp-faq p { margin-top: 8px; }

.bp-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 2.4em; padding: 24px 26px; border-radius: 22px; background: #1b2230; color: #fff; }
.bp-cta strong { display: block; font-size: 18px; color: #fff; line-height: 1.7; }
.bp-cta p { color: #a6adbb; font-size: 14px; line-height: 2; margin-top: 4px; }
.bp-cta .btn { flex: none; }
.bp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.bp-tags span { font-size: 12.5px; color: var(--ink-3); background: var(--glass-strong); padding: 4px 10px; border-radius: 8px; }
.related { margin-top: 60px; }
.related h2 { font-size: 22px; font-weight: 800; color: var(--ink); }

@media (max-width: 960px) {
    .bp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bp-layout { grid-template-columns: minmax(0, 1fr); }
    .bp-toc { order: 0; position: static; }
}
@media (max-width: 640px) {
    .blog-main { padding-top: 92px; }
    .blog-hero, .bp-article { padding-left: 16px; padding-right: 16px; }
    .bp-grid { grid-template-columns: minmax(0, 1fr); }
    .bp-body { font-size: 15.5px; }
    .bp-cta { flex-direction: column; align-items: stretch; text-align: center; }
    .bp-cover img { border-radius: 16px; }
}

/* جست‌وجو */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.blog-search { display: flex; align-items: center; gap: 8px; max-width: 620px; margin: 26px auto 6px; padding: 6px 16px 6px 6px; border-radius: 16px; background: var(--glass-strong); border: 1px solid var(--line); box-shadow: 0 8px 24px var(--shadow); }
.blog-search svg { width: 20px; height: 20px; color: var(--ink-3); flex: none; }
.blog-search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font: inherit; font-size: 15px; color: var(--ink); padding: 8px 4px; }
.blog-search input::placeholder { color: var(--ink-3); }
.blog-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(69, 96, 241, .15); }
.blog-search .btn { flex: none; }
.section-sub { font-size: 20px; font-weight: 800; color: var(--ink); margin-top: 34px; }
@media (max-width: 640px) { .blog-search .btn { padding-left: 14px; padding-right: 14px; } }

/* =========================================================
   هویت بصری پنل: سربرگ گردینت، کارت‌های سفید، دکمه‌های گردینت
   ========================================================= */
.blog-main { padding-top: 90px; }
.blog-hero { position: relative; isolation: isolate; overflow: hidden; padding: 40px 44px 34px; border-radius: 30px; background: var(--shell); color: #fff; box-shadow: 0 30px 70px rgba(20, 30, 110, .28); }
.container.blog-hero { width: calc(100% - 48px); }
.blog-hero::before { content: ''; position: absolute; z-index: -1; width: 460px; height: 460px; left: -150px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(124, 140, 255, .45), transparent 65%); }
.blog-hero h1 { color: #fff; }
.blog-hero .accent { color: #ffc24a; }
.blog-hero p { color: rgba(255, 255, 255, .78); }
.blog-hero a { color: #fff; }
.blog-hero .eyebrow { color: #e6e9fa; background: rgba(255, 255, 255, .12); }
.blog-hero .crumbs ol, .blog-hero .crumbs a { color: rgba(255, 255, 255, .65); }
.blog-hero .crumbs a:hover { color: #fff; }
.blog-hero .blog-search { margin-right: 0; background: #fff; border: 0; box-shadow: 0 16px 34px rgba(0, 0, 0, .2); }
.blog-hero .cat-tabs a { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .86); transition: background .2s; }
.blog-hero .cat-tabs a:hover { background: rgba(255, 255, 255, .2); }
.blog-hero .cat-tabs a[aria-current="page"] { background: #fff; color: #2a3a9b; border-color: #fff; }
.cat-tabs a { background: #fff; }
.cat-tabs a[aria-current="page"] { background: var(--primary-grad); color: #fff; border-color: transparent; }
.bp-grid { margin-top: 28px; }
.bp-card { background: #fff; border-color: var(--line); box-shadow: 0 8px 20px rgba(27, 34, 62, .05); }
.bp-card:hover { box-shadow: 0 20px 40px rgba(27, 34, 62, .1); }
.bp-card-media img { transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.bp-card:hover .bp-card-media img { transform: scale(1.04); }
.bp-chip { background: #eceffe; color: #4656ec; }
.pager a { background: #fff; border-color: var(--line); }
.pager a[aria-current="page"] { background: var(--primary-grad); color: #fff; border-color: transparent; }
.bp-toc, .bp-faq details { background: #fff; border-color: var(--line); box-shadow: 0 8px 20px rgba(27, 34, 62, .04); }
.bp-toc { border-radius: 20px; }
.bp-cover img { border-radius: 26px; box-shadow: 0 26px 60px rgba(20, 30, 110, .18); }
.bp-body blockquote { border-right-color: #4656ec; background: #eef0fe; }
.bp-body th { background: #f5f6fb; }
.table-wrap { background: #fff; }
.bp-cta { background: var(--shell); box-shadow: 0 24px 50px rgba(20, 30, 110, .25); }
.bp-cta p { color: rgba(255, 255, 255, .75); }
.bp-cta .btn-dark { background: #fff; color: #2a3a9b; }
.bp-tags span { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.section-sub { margin-top: 30px; }

/* صفحه‌ی تغییرات اخیر: تایم‌لاین نسخه‌ها */
.cl-hero { text-align: center; }
.cl-hero p { margin-inline: auto; }
.cl-list { position: relative; max-width: 820px; margin: 34px auto 0; padding: 0 30px 0 0; list-style: none; }
.cl-list::before { content: ''; position: absolute; top: 18px; bottom: 18px; right: 8px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, #7c8cff, #d9dcef); }
.cl-item { position: relative; margin-bottom: 18px; }
.cl-dot { position: absolute; right: -30px; top: 24px; width: 19px; height: 19px; border-radius: 50%; background: linear-gradient(145deg, #7c8cff, #4656ec); box-shadow: 0 0 0 5px var(--bg), 0 6px 12px -3px rgba(70, 86, 236, .7); }
.cl-item:first-child .cl-dot { background: linear-gradient(145deg, #2fd9a6, #0fa57d); box-shadow: 0 0 0 5px var(--bg), 0 0 0 9px rgba(47, 217, 166, .25); animation: cl-pulse 2.4s ease-in-out infinite; }
@keyframes cl-pulse { 50% { box-shadow: 0 0 0 5px var(--bg), 0 0 0 13px rgba(47, 217, 166, .12); } }
.cl-card { padding: 22px 24px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 20px rgba(27, 34, 62, .05); transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s; }
.cl-card:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(27, 34, 62, .09); }
.cl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-3); }
.cl-ver { padding: 3px 12px; border-radius: 999px; background: var(--primary-grad); color: #fff; font-weight: 700; }
.cl-new { padding: 3px 12px; border-radius: 999px; background: rgba(47, 217, 166, .16); color: #0b8a66; font-weight: 700; }
.cl-card h2 { font-size: 19px; font-weight: 800; color: var(--ink); margin: 10px 0 8px; line-height: 1.7; }
.cl-card ul { display: grid; gap: 6px; }
.cl-card li { position: relative; padding-right: 26px; font-size: 14.5px; line-height: 2; color: var(--ink-2); }
.cl-card li::before { content: '✓'; position: absolute; right: 0; top: 6px; width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center; font-size: 10.5px; font-weight: 900; color: #fff; background: linear-gradient(145deg, #2fd9a6, #0fa57d); }

@media (max-width: 640px) {
    .blog-main { padding-top: 78px; }
    .container.blog-hero { width: calc(100% - 20px); padding: 26px 18px 22px; border-radius: 22px; }
    .cl-list { padding-right: 24px; }
    .cl-dot { right: -24px; }
    .cl-card { padding: 18px; }
}
