/*
Theme Name: Netspeed Blog
Theme URI: https://blog.netspeed.com.tr/
Author: Netspeed
Author URI: https://www.netspeed.com.tr/
Description: Netspeed'in kurumsal tasarim diline uygun, modern, hizli ve tamamen responsive magazin/blog temasi. Mor-violet palet, kart tabanli haber duzeni, GSF tipografi, one cikan gorsel + okuma suresi destegi.
Version: 1.1.0
Requires at least: 5.5
Tested up to: 6.6
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: netspeed-blog
Tags: blog, news, magazine, custom-menu, featured-images, translation-ready, threaded-comments, right-sidebar
*/

/* ============ Fonts ============ */
@font-face { font-family: 'Google Sans Flex'; font-style: normal; font-weight: 1 1000; font-display: swap; src: url('assets/fonts/gsf-latin-ext.woff') format('woff'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Google Sans Flex'; font-style: normal; font-weight: 1 1000; font-display: swap; src: url('assets/fonts/gsf-latin.woff') format('woff'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ============ Tokens ============ */
:root {
  --nb-violet: #7c3aed; --nb-violet-d: #6d28d9; --nb-purple: #290e6f; --nb-purple-d: #1a0c3a;
  --nb-ink: #1a1530; --nb-navy: #1e1b4b; --nb-text: #45435a; --nb-muted: #6b6a7c; --nb-faint: #918fa3;
  --nb-bg: #fff; --nb-soft: #faf9ff; --nb-lav: #f4f1fc; --nb-icon: #efeafb; --nb-border: #ece9f6; --nb-border2: #e4e1ef;
  --nb-radius: 18px; --nb-radius-sm: 12px;
  --nb-shadow: 0 1px 2px rgba(40,14,111,.05), 0 4px 14px rgba(40,14,111,.05);
  --nb-shadow-h: 0 8px 18px rgba(40,14,111,.09), 0 22px 48px rgba(40,14,111,.1);
  --nb-max: 1220px; --nb-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --nb-display: 'Google Sans Flex', var(--nb-font);
}

/* ============ Base ============ */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--nb-font); font-size: 16px; line-height: 1.6; color: var(--nb-text); background: var(--nb-bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
a { color: var(--nb-violet); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--nb-violet-d); }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4,h5 { font-family: var(--nb-display); color: var(--nb-ink); letter-spacing: -.022em; font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul,ol { margin: 0 0 1em; padding-left: 1.3em; }
.nb-container { max-width: var(--nb-max); margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.nb-skip { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--nb-purple); padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 9999; }
.nb-skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--nb-violet); outline-offset: 2px; }

/* ============ Header / Nav ============ */
.nb-header { position: sticky; top: 0; z-index: 200; background: rgba(20,10,42,.86); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid rgba(255,255,255,.08); }
.nb-bar { display: flex; align-items: center; gap: 18px; height: 70px; }
.nb-logo { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.nb-logo-txt { font-family: var(--nb-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -.04em; color: #fff; }
.nb-logo-tag { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #b794ff; padding: 3px 8px; border: 1px solid rgba(183,148,255,.4); border-radius: 980px; }
.nb-nav { margin-left: auto; }
.nb-menu { display: flex; align-items: center; gap: 3px; list-style: none; margin: 0; padding: 0; }
.nb-menu a { display: block; padding: 8px 15px; color: rgba(255,255,255,.82); font-size: .94rem; font-weight: 500; border-radius: 980px; transition: background .18s ease, color .18s ease; }
.nb-menu a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nb-menu .current-menu-item > a, .nb-menu .current_page_item > a, .nb-menu .current-cat > a { background: rgba(255,255,255,.12); color: #fff; }
.nb-nav-tools { display: flex; align-items: center; gap: 8px; }
.nb-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.05); color: #fff; cursor: pointer; transition: background .18s ease; }
.nb-icon-btn:hover { background: rgba(255,255,255,.14); color: #fff; }
.nb-icon-btn svg { width: 19px; height: 19px; }
.nb-burger { display: none; }
.nb-site-cta { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; background: var(--nb-violet); color: #fff; font-size: .9rem; font-weight: 600; border-radius: 980px; transition: background .18s ease, transform .18s ease; }
.nb-site-cta:hover { background: var(--nb-violet-d); color: #fff; transform: translateY(-1px); }
.nb-header.nb-scrolled { background: rgba(18,9,38,.95); box-shadow: 0 6px 26px rgba(10,5,25,.32); }

/* search dropdown */
.nb-search-pop { display: none; position: absolute; left: 0; right: 0; top: 100%; background: rgba(20,10,42,.96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.1); padding: 20px 0; }
.nb-search-pop.open { display: block; }
.nb-search-pop form { display: flex; gap: 10px; max-width: 680px; margin: 0 auto; }
.nb-search-pop input[type=search] { flex: 1; padding: 14px 20px; border-radius: 980px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.07); color: #fff; font-size: 1rem; }
.nb-search-pop input[type=search]::placeholder { color: rgba(255,255,255,.5); }
.nb-search-pop button { padding: 14px 28px; border: none; border-radius: 980px; background: var(--nb-violet); color: #fff; font-weight: 600; cursor: pointer; }

/* Category bar */
.nb-catbar { background: #fff; border-bottom: 1px solid var(--nb-border); position: sticky; top: 70px; z-index: 190; }
.nb-catbar-inner { display: flex; gap: 6px; overflow-x: auto; padding: 12px 24px; scrollbar-width: none; -ms-overflow-style: none; }
.nb-catbar-inner::-webkit-scrollbar { display: none; }
.nb-chip { flex-shrink: 0; padding: 7px 16px; border-radius: 980px; font-size: .88rem; font-weight: 600; color: var(--nb-muted); background: var(--nb-soft); border: 1px solid var(--nb-border); transition: all .18s ease; white-space: nowrap; }
.nb-chip:hover { background: var(--nb-icon); color: var(--nb-purple); border-color: var(--nb-border2); }
.nb-chip.active { background: var(--nb-purple); color: #fff; border-color: var(--nb-purple); }

/* ============ Hero (featured) ============ */
.nb-hero { padding: 40px 0 8px; }
.nb-hero-grid { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(0,1fr); gap: 22px; }
.nb-feat { position: relative; border-radius: 24px; overflow: hidden; min-height: 440px; display: flex; align-items: flex-end; color: #fff; background: var(--nb-purple); box-shadow: var(--nb-shadow); }
.nb-feat img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.nb-feat::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(20,10,42,0) 30%, rgba(20,10,42,.55) 64%, rgba(16,6,36,.92) 100%); }
.nb-feat:hover img { transform: scale(1.04); }
.nb-feat-body { position: relative; z-index: 3; padding: 34px 34px 30px; }
.nb-feat-cover { position: absolute; inset: 0; z-index: 2; }
.nb-feat-body h2 a, .nb-feat-body h2 a:hover { color: #fff; }
.nb-feat-body h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); color: #fff; margin: 12px 0 10px; line-height: 1.16; }
.nb-feat-body p { color: rgba(255,255,255,.82); font-size: 1rem; line-height: 1.55; margin: 0 0 14px; max-width: 560px; }
.nb-feat-col { display: grid; grid-template-rows: 1fr 1fr; gap: 22px; }
.nb-feat-sm { position: relative; border-radius: 20px; overflow: hidden; min-height: 209px; display: flex; align-items: flex-end; color: #fff; background: var(--nb-navy); box-shadow: var(--nb-shadow); }
.nb-feat-sm img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.nb-feat-sm::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(20,10,42,0) 36%, rgba(16,6,36,.9) 100%); }
.nb-feat-sm:hover img { transform: scale(1.05); }
.nb-feat-sm-body { position: relative; z-index: 3; padding: 18px 20px; }
.nb-feat-sm-cover { position: absolute; inset: 0; z-index: 2; }
.nb-feat-sm-body h3 a, .nb-feat-sm-body h3 a:hover { color: #fff; }
.nb-feat-sm-body h3 { font-size: 1.05rem; color: #fff; margin: 8px 0 0; line-height: 1.25; }

/* meta on dark */
.nb-cat-tag { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 980px; font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: var(--nb-violet); color: #fff; }
.nb-feat .nb-meta, .nb-feat-sm .nb-meta { color: rgba(255,255,255,.72); margin-top: 12px; }
.nb-feat .nb-meta a, .nb-feat-sm .nb-meta a { color: rgba(255,255,255,.9); }

/* ============ Section ============ */
.nb-section { padding: 46px 0 6px; }
.nb-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.nb-section-head h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); margin: 0; position: relative; padding-left: 16px; }
.nb-section-head h2::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 5px; height: 1.05em; border-radius: 4px; background: linear-gradient(180deg, var(--nb-violet), var(--nb-purple)); }
.nb-section-more { font-size: .9rem; font-weight: 600; color: var(--nb-violet); white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.nb-section-more svg { width: 15px; height: 15px; }

/* ============ Card grid ============ */
.nb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.nb-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.nb-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.nb-card { background: #fff; border: 1px solid var(--nb-border); border-radius: var(--nb-radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.nb-card:hover { transform: translateY(-5px); box-shadow: var(--nb-shadow-h); border-color: var(--nb-border2); }
.nb-card-thumb { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, var(--nb-icon), var(--nb-lav)); }
.nb-card-imglink { display: block; width: 100%; height: 100%; }
.nb-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.nb-card:hover .nb-card-thumb img { transform: scale(1.05); }
.nb-card-thumb .nb-noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #c9bff0; }
.nb-card-thumb .nb-noimg svg { width: 44px; height: 44px; }
.nb-card-thumb .nb-cat-tag { position: absolute; top: 14px; left: 16px; z-index: 2; }
.nb-card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.nb-card h3 { font-size: 1.13rem; line-height: 1.3; margin: 0 0 9px; }
.nb-card h3 a { color: var(--nb-ink); }
.nb-card h3 a:hover { color: var(--nb-violet); }
.nb-card-excerpt { font-size: .91rem; line-height: 1.55; color: var(--nb-muted); margin: 0 0 16px; }
.nb-card-foot { margin-top: auto; }

/* meta (avatar + name + date + read) */
.nb-meta { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--nb-faint); }
.nb-meta-av { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, #8b5cf6, #6d28d9); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; line-height: 1; }
.nb-meta-txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.nb-meta-name { font-size: .82rem; font-weight: 600; color: var(--nb-ink); }
.nb-meta-sub { font-size: .76rem; color: var(--nb-faint); }
.nb-meta-sub .dot { margin: 0 5px; }

/* horizontal scroll row (magazine) */
.nb-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 1fr); gap: 24px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.nb-row > * { scroll-snap-align: start; }

/* ============ Layout with sidebar (archive/single) ============ */
.nb-main-wrap { padding: 40px 0 64px; }
.nb-with-side { display: grid; grid-template-columns: minmax(0,1fr) 326px; gap: 44px; align-items: start; }

/* ============ Sidebar / widgets ============ */
.nb-side .widget, .nb-widget { background: var(--nb-soft); border: 1px solid var(--nb-border); border-radius: var(--nb-radius); padding: 22px 22px 24px; margin-bottom: 24px; }
.nb-widget-title, .nb-side .widget-title { font-size: 1.05rem; font-weight: 600; color: var(--nb-ink); margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--nb-border); }
.nb-side ul, .nb-widget ul { list-style: none; margin: 0; padding: 0; }
.nb-side li, .nb-widget li { margin: 0; }
.nb-side .widget > ul > li > a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; color: var(--nb-text); font-weight: 500; font-size: .94rem; border-bottom: 1px dashed var(--nb-border); }
.nb-side .widget > ul > li:last-child > a { border-bottom: none; }
.nb-side .widget > ul > li > a:hover { color: var(--nb-violet); }
.nb-side .children { padding-left: 14px; }

/* editor pick list */
.nb-pick { display: flex; gap: 13px; padding: 12px 0; border-bottom: 1px dashed var(--nb-border); }
.nb-pick:last-child { border-bottom: none; padding-bottom: 0; }
.nb-pick-thumb { flex-shrink: 0; width: 78px; height: 60px; border-radius: 11px; overflow: hidden; background: var(--nb-icon); }
.nb-pick-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nb-pick-body h4 { font-size: .92rem; line-height: 1.32; margin: 0 0 5px; }
.nb-pick-body h4 a { color: var(--nb-ink); }
.nb-pick-body h4 a:hover { color: var(--nb-violet); }
.nb-pick-date { font-size: .74rem; color: var(--nb-faint); }

/* newsletter widget */
.nb-news { background: linear-gradient(150deg, #2a1257 0%, #4c1d95 100%); border-color: transparent; color: #fff; }
.nb-news .nb-widget-title { color: #fff; border-bottom-color: rgba(255,255,255,.18); }
.nb-news p { font-size: .9rem; color: rgba(255,255,255,.8); line-height: 1.55; }
.nb-news input { width: 100%; padding: 12px 16px; border-radius: 980px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.1); color: #fff; margin-bottom: 10px; }
.nb-news input::placeholder { color: rgba(255,255,255,.55); }
.nb-news button { width: 100%; padding: 12px; border: none; border-radius: 980px; background: #fff; color: var(--nb-purple); font-weight: 700; cursor: pointer; }

/* ============ Page header (archive/search/page) ============ */
.nb-pagehead { position: relative; overflow: hidden; background: var(--nb-purple-d); color: #fff; padding: 92px 0 40px; }
.nb-pagehead::before { content: ''; position: absolute; inset: 0; background: radial-gradient(620px 360px at 50% 0%, rgba(124,58,237,.34), transparent 62%), linear-gradient(180deg, #2a1257, #14072e); }
.nb-pagehead-inner { position: relative; z-index: 1; text-align: center; max-width: 720px; margin: 0 auto; }
.nb-pagehead .eyebrow { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #c9b6ff; margin-bottom: 10px; }
.nb-pagehead h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: #fff; font-weight: 800; letter-spacing: -.025em; margin: 0 0 8px; }
.nb-pagehead p { color: rgba(255,255,255,.78); font-size: 1.05rem; margin: 0; }

/* ============ Single post ============ */
.nb-post-hero { position: relative; overflow: hidden; background: var(--nb-purple-d); color: #fff; padding: 96px 0 40px; }
.nb-post-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(700px 420px at 50% -8%, rgba(124,58,237,.32), transparent 60%), linear-gradient(180deg, #251048, #130630); }
.nb-post-hero-inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; text-align: center; }
.nb-post-hero h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); color: #fff; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; margin: 14px 0 16px; }
.nb-post-hero .nb-meta { justify-content: center; color: rgba(255,255,255,.78); }
.nb-post-hero .nb-meta-name { color: #fff; }
.nb-post-hero .nb-meta-sub { color: rgba(255,255,255,.62); }
.nb-post-figure { max-width: 980px; margin: -28px auto 0; padding: 0 24px; position: relative; z-index: 5; }
.nb-post-figure img { width: 100%; border-radius: 20px; box-shadow: 0 20px 60px rgba(20,10,42,.35); }
.nb-article { max-width: 760px; margin: 0 auto; padding: 44px 24px 20px; }

/* prose */
.nb-content { font-size: 1.1rem; line-height: 1.82; color: var(--nb-text); }
.nb-content > *:first-child { margin-top: 0; }
.nb-content p { margin: 0 0 1.3em; }
.nb-content h2 { font-size: 1.6rem; margin: 1.8em 0 .6em; }
.nb-content h3 { font-size: 1.3rem; margin: 1.6em 0 .5em; }
.nb-content a { color: var(--nb-violet); font-weight: 600; border-bottom: 1px solid rgba(124,58,237,.3); }
.nb-content a:hover { border-bottom-color: var(--nb-violet); }
.nb-content img { border-radius: 14px; margin: 1.4em 0; }
.nb-content ul, .nb-content ol { margin: 0 0 1.3em; padding-left: 1.4em; }
.nb-content li { margin: 0 0 .5em; }
.nb-content blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--nb-violet); font-size: 1.18rem; font-style: italic; color: var(--nb-ink); }
.nb-content figure { margin: 1.6em 0; }
.nb-content figcaption { font-size: .85rem; color: var(--nb-faint); text-align: center; margin-top: 8px; }
.nb-content code { background: var(--nb-lav); padding: 2px 7px; border-radius: 6px; font-size: .9em; color: var(--nb-purple); }
.nb-content pre { background: #1a1530; color: #ede9fb; padding: 20px; border-radius: 14px; overflow-x: auto; }
.nb-content pre code { background: none; color: inherit; padding: 0; }
.nb-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; }
.nb-content th, .nb-content td { padding: 11px 14px; border: 1px solid var(--nb-border); text-align: left; }
.nb-content th { background: var(--nb-soft); font-weight: 600; color: var(--nb-ink); }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin: 1.4em auto; }
.wp-caption { max-width: 100%; }

/* tags + share */
.nb-post-foot { max-width: 760px; margin: 0 auto; padding: 8px 24px 0; }
.nb-tags { display: flex; flex-wrap: wrap; gap: 9px; margin: 28px 0; }
.nb-tag { padding: 6px 14px; background: var(--nb-soft); border: 1px solid var(--nb-border); border-radius: 980px; font-size: .82rem; font-weight: 600; color: var(--nb-muted); }
.nb-tag:hover { background: var(--nb-icon); color: var(--nb-purple); }
.nb-share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid var(--nb-border); border-bottom: 1px solid var(--nb-border); }
.nb-share span { font-weight: 600; color: var(--nb-ink); font-size: .9rem; margin-right: 4px; }
.nb-share a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--nb-soft); border: 1px solid var(--nb-border); color: var(--nb-purple); }
.nb-share a:hover { background: var(--nb-violet); color: #fff; border-color: var(--nb-violet); }
.nb-share a.nb-copied { background: #1aa251; color: #fff; border-color: #1aa251; }
.nb-share svg { width: 18px; height: 18px; }

/* author box */
.nb-author { display: flex; gap: 18px; max-width: 760px; margin: 34px auto; padding: 26px; background: var(--nb-soft); border: 1px solid var(--nb-border); border-radius: var(--nb-radius); }
.nb-author img { width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; }
.nb-author h4 { margin: 0 0 5px; font-size: 1.1rem; }
.nb-author p { margin: 0; font-size: .92rem; color: var(--nb-muted); line-height: 1.6; }

/* related */
.nb-related { background: var(--nb-soft); border-top: 1px solid var(--nb-border); padding: 56px 0 64px; margin-top: 40px; }

/* ============ Pagination ============ */
.nb-pagination { display: flex; justify-content: center; gap: 8px; margin: 48px 0 8px; }
.nb-pagination a, .nb-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--nb-border); background: #fff; color: var(--nb-text); font-weight: 600; font-size: .95rem; }
.nb-pagination a:hover { border-color: var(--nb-violet); color: var(--nb-violet); }
.nb-pagination .current { background: var(--nb-purple); border-color: var(--nb-purple); color: #fff; }
.nb-pagination .dots { border: none; background: none; }

/* ============ Buttons ============ */
.nb-btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 26px; border-radius: 980px; font-size: 1rem; font-weight: 600; transition: all .2s ease; cursor: pointer; border: none; }
.nb-btn-primary { background: var(--nb-violet); color: #fff; box-shadow: 0 8px 24px rgba(124,58,237,.32); }
.nb-btn-primary:hover { background: var(--nb-violet-d); color: #fff; transform: translateY(-2px); }
.nb-btn-ghost { background: #fff; color: var(--nb-violet); border: 1.5px solid var(--nb-border2); }
.nb-btn-ghost:hover { border-color: var(--nb-violet); color: var(--nb-violet); }
.nb-btn svg { width: 18px; height: 18px; }

/* ============ Comments ============ */
.nb-comments { max-width: 760px; margin: 0 auto; padding: 12px 24px 56px; }
.nb-comments-title { font-size: 1.4rem; margin-bottom: 24px; }
.nb-comments ol { list-style: none; padding: 0; margin: 0; }
.nb-comments .children { list-style: none; padding-left: 28px; margin-top: 18px; }
.nb-comment-body { background: var(--nb-soft); border: 1px solid var(--nb-border); border-radius: var(--nb-radius); padding: 18px 20px; margin-bottom: 18px; }
.nb-comment-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.nb-comment-meta img { width: 42px; height: 42px; border-radius: 50%; }
.nb-comment-author { font-weight: 600; color: var(--nb-ink); }
.nb-comment-date { font-size: .8rem; color: var(--nb-faint); }
.nb-form-field { margin-bottom: 16px; }
.nb-comments input[type=text], .nb-comments input[type=email], .nb-comments input[type=url], .nb-comments textarea { width: 100%; padding: 13px 16px; border: 1px solid var(--nb-border2); border-radius: 12px; font-family: inherit; font-size: 1rem; background: #fff; }
.nb-comments textarea { min-height: 130px; resize: vertical; }
.nb-comments input:focus, .nb-comments textarea:focus { outline: none; border-color: var(--nb-violet); }

/* ============ Footer ============ */
.nb-footer { background: var(--nb-purple-d); color: rgba(255,255,255,.66); padding: 60px 0 26px; margin-top: 56px; }
.nb-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.nb-footer-brand .nb-logo-txt { color: #fff; }
.nb-footer-about { font-size: .92rem; line-height: 1.7; margin: 16px 0 18px; max-width: 320px; }
.nb-footer h4 { color: #fff; font-size: 1rem; margin: 0 0 16px; }
.nb-footer ul { list-style: none; margin: 0; padding: 0; }
.nb-footer li { margin-bottom: 10px; }
.nb-footer li a { color: rgba(255,255,255,.66); font-size: .92rem; }
.nb-footer li a:hover { color: #fff; }
.nb-social { display: flex; gap: 10px; }
.nb-social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; }
.nb-social a:hover { background: var(--nb-violet); }
.nb-social svg { width: 18px; height: 18px; }
.nb-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; font-size: .85rem; flex-wrap: wrap; }

/* ============ Mobile drawer ============ */
.nb-drawer { position: fixed; inset: 0; z-index: 300; display: none; }
.nb-drawer.open { display: block; }
.nb-drawer-ov { position: absolute; inset: 0; background: rgba(10,5,25,.6); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.nb-drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(86%, 360px); background: #170b34; padding: 22px; overflow-y: auto; box-shadow: -20px 0 60px rgba(0,0,0,.4); transform: translateX(100%); transition: transform .3s cubic-bezier(.22,1,.36,1); }
.nb-drawer.open .nb-drawer-panel { transform: none; }
.nb-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.nb-drawer ul { list-style: none; margin: 0; padding: 0; }
.nb-drawer li a { display: block; padding: 13px 14px; color: rgba(255,255,255,.85); font-size: 1.05rem; font-weight: 500; border-radius: 12px; border-bottom: 1px solid rgba(255,255,255,.06); }
.nb-drawer li a:active { background: rgba(255,255,255,.08); }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .nb-grid, .nb-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .nb-with-side { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 920px) {
  .nb-nav, .nb-site-cta { display: none; }
  .nb-burger { display: inline-flex; }
  .nb-hero-grid { grid-template-columns: 1fr; }
  .nb-feat { min-height: 340px; }
  .nb-feat-col { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .nb-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .nb-container { padding: 0 18px; }
  .nb-grid, .nb-grid.cols-2, .nb-grid.cols-4 { grid-template-columns: 1fr; gap: 20px; }
  .nb-feat-col { grid-template-columns: 1fr; }
  .nb-catbar { top: 70px; }
  .nb-feat { min-height: 300px; }
  .nb-feat-body { padding: 22px 22px 20px; }
  .nb-footer-grid { grid-template-columns: 1fr; }
  .nb-article, .nb-content { font-size: 1.04rem; }
  .nb-post-figure { margin-top: -16px; padding: 0 18px; }
}

/* ============ Single post — reading experience ============ */
.nb-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300; pointer-events: none; }
.nb-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--nb-violet), #c4b5fd); }
.nb-crumb { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; font-size: .82rem; color: rgba(255,255,255,.6); margin-bottom: 16px; }
.nb-crumb a { color: rgba(255,255,255,.82); }
.nb-crumb a:hover { color: #fff; }
.nb-crumb .sep { opacity: .45; }
.nb-crumb .cur { color: rgba(255,255,255,.55); }
.nb-readwrap { max-width: 1080px; margin: 0 auto; padding: 36px 24px 8px; display: grid; grid-template-columns: 50px minmax(0, 740px); gap: 30px; justify-content: center; align-items: start; }
.nb-readmain { min-width: 0; }
.nb-sharerail { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 10px; }
.nb-sharerail a { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--nb-soft); border: 1px solid var(--nb-border); color: var(--nb-purple); transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease; }
.nb-sharerail a:hover { background: var(--nb-violet); color: #fff; border-color: var(--nb-violet); transform: translateY(-2px); }
.nb-sharerail a.nb-copied { background: #1aa251; color: #fff; border-color: #1aa251; }
.nb-sharerail svg { width: 18px; height: 18px; }
.nb-reading-tools { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-bottom: 20px; }
.nb-reading-tools span { font-size: .8rem; color: var(--nb-faint); margin-right: 4px; }
.nb-reading-tools button { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--nb-border2); background: #fff; color: var(--nb-ink); cursor: pointer; font-weight: 700; line-height: 1; transition: border-color .15s ease, color .15s ease, background .15s ease; }
.nb-reading-tools button:hover { border-color: var(--nb-violet); color: var(--nb-violet); }
.nb-reading-tools button.is-active { background: var(--nb-purple); border-color: var(--nb-purple); color: #fff; }
.nb-reading-tools .fa-sm { font-size: .82rem; }
.nb-reading-tools .fa-md { font-size: 1rem; }
.nb-reading-tools .fa-lg { font-size: 1.18rem; }
.nb-toc { display: none; background: var(--nb-soft); border: 1px solid var(--nb-border); border-radius: var(--nb-radius); margin-bottom: 30px; overflow: hidden; }
.nb-toc.has-items { display: block; }
.nb-toc-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; cursor: pointer; font-weight: 600; color: var(--nb-ink); font-size: 1.02rem; }
.nb-toc-head svg { transition: transform .25s ease; color: var(--nb-violet); flex-shrink: 0; }
.nb-toc.open .nb-toc-head svg { transform: rotate(180deg); }
.nb-toc-list { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.nb-toc.open .nb-toc-list { max-height: 760px; overflow-y: auto; }
.nb-toc-list ul { list-style: none; margin: 0; padding: 0 20px 14px; }
.nb-toc-list li { margin: 0; }
.nb-toc-list a { display: block; padding: 8px 0; font-size: .92rem; color: var(--nb-muted); border-top: 1px dashed var(--nb-border); line-height: 1.4; }
.nb-toc-list li:first-child a { border-top: none; }
.nb-toc-list a:hover { color: var(--nb-violet); }
.nb-toc-list .nb-toc-sub a { padding-left: 16px; font-size: .88rem; color: var(--nb-faint); }
.nb-content h2, .nb-content h3 { scroll-margin-top: 88px; }
.nb-content.nb-font-sm { font-size: 1rem; }
.nb-content.nb-font-lg { font-size: 1.22rem; }
.nb-author-av { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, #8b5cf6, #6d28d9); color: #fff; font-size: 1.7rem; font-weight: 700; }
@media (max-width: 980px) {
  .nb-readwrap { grid-template-columns: 1fr; padding: 26px 18px 6px; max-width: 760px; }
  .nb-sharerail { display: none; }
}
