/* =====================================================================
   AIFeed — Design System
   ===================================================================== */
:root {
  --bg:      #090f1c;
  --bg2:     #0f1a2b;
  --bg3:     #172236;
  --card:    #111d2e;
  --border:  #1d2f48;
  --accent:  #6366f1;
  --accent2: #818cf8;
  --accent3: #06b6d4;
  --green:   #10b981;
  --amber:   #f59e0b;
  --red:     #ef4444;
  --text:    #e2e8f0;
  --muted:   #4b6280;
  --muted2:  #8da3be;
  --radius:  14px;
  --shadow:  0 4px 24px rgba(0,0,0,.45);
  --glow:    0 0 50px rgba(99,102,241,.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.65; min-height: 100vh; }
a { color: var(--accent); text-decoration: none; transition: color .18s; }
a:hover { color: var(--accent2); }
img { max-width: 100%; }

/* ===== Navbar ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(9,15,28,.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 20px; height: 64px;
}
.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.3rem; font-weight: 800; white-space: nowrap;
  background: linear-gradient(135deg, #a5b4fc, #67e8f9);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.navbar-brand .icon { font-size: 1.6rem; }
.brand-icon { flex-shrink: 0; }
.brand-text {
  background: linear-gradient(135deg, #a5b4fc, #67e8f9);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.brand-accent { font-weight: 900; }
.navbar-search { flex: 1; max-width: 480px; margin-left: auto; position: relative; }
.navbar-search input {
  width: 100%; background: var(--bg3); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); padding: 9px 14px 9px 38px;
  font-size: .88rem; outline: none; transition: border-color .18s;
}
.navbar-search input:focus { border-color: var(--accent); }
.navbar-search .search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }

/* ===== Hero ===== */
.hero {
  padding: 64px 24px 44px; text-align: center; position: relative; overflow: hidden;
  background: radial-gradient(ellipse 100% 80% at 50% -10%, rgba(99,102,241,.14) 0%, transparent 70%), var(--bg);
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.22);
  color: var(--accent2); padding: 5px 16px; border-radius: 999px;
  font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.8rem); font-weight: 800; line-height: 1.12; margin-bottom: 18px;
  background: linear-gradient(140deg, #fff 0%, #a5b4fc 45%, #67e8f9 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p { color: var(--muted2); font-size: 1.08rem; max-width: 560px; margin: 0 auto 36px; }
.hero-stats {
  display: inline-flex; align-items: center; gap: 28px;
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 36px;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  display: block; font-size: 1.7rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent2), var(--accent3));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-stat .label { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 2px; }
.hero-divider { width: 1px; height: 42px; background: var(--border); }

/* ===== Filter bar ===== */
.filter-bar { background: var(--bg2); border-bottom: 1px solid var(--border); padding: 11px 24px; position: sticky; top: 64px; z-index: 90; }
.filter-inner { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.filter-label { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-right: 4px; }
.filter-btn { padding: 5px 15px; border-radius: 999px; background: transparent; border: 1px solid var(--border); color: var(--muted2); font-size: .8rem; cursor: pointer; transition: all .18s; white-space: nowrap; text-decoration: none; display: inline-block; }
.filter-btn:hover { border-color: var(--accent); color: var(--accent2); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ===== Global category strip (below navbar, all pages) ===== */
.cat-strip {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 64px; z-index: 90;
}
.cat-strip-inner {
  max-width: 1320px; margin: 0 auto; padding: 8px 24px;
  display: flex; align-items: center; gap: 6px;
  overflow-x: auto; scrollbar-width: none;
}
.cat-strip-inner::-webkit-scrollbar { display: none; }
.cat-strip-btn {
  padding: 4px 14px; border-radius: 999px;
  background: transparent; border: 1px solid var(--border);
  color: var(--muted2); font-size: .78rem; font-weight: 500;
  white-space: nowrap; text-decoration: none; display: inline-block;
  transition: all .18s;
}
.cat-strip-btn:hover { border-color: var(--accent); color: var(--accent2); }
.cat-strip-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.cat-strip-sep { width: 1px; height: 18px; background: var(--border); margin: 0 4px; flex-shrink: 0; }

/* ===== Main layout ===== */
.main-layout {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 300px;
  gap: 32px; padding: 32px 24px;
}
@media (max-width: 1080px) { .main-layout { grid-template-columns: 1fr; } }

/* ===== Article cards ===== */
.articles-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.articles-title { font-size: 1rem; font-weight: 700; color: var(--muted2); }
.articles-count { font-size: .8rem; color: var(--muted); }

.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--glow); border-color: rgba(99,102,241,.3); }

.card-image { width: 100%; height: 185px; object-fit: cover; }
.card-image-placeholder { width: 100%; height: 185px; background: linear-gradient(135deg, var(--bg3), var(--bg2)); display: flex; align-items: center; justify-content: center; font-size: 3.5rem; color: var(--muted); }
.card-source-logo { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; }
.card-image-featured { height: 260px; }

.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.card-source { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-source-name { font-size: .78rem; color: var(--muted2); font-weight: 500; }
.read-time { font-size: .72rem; color: var(--muted); margin-left: auto; }

.card-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.badge-AI\ Labs    { background: rgba(99,102,241,.15); color: #a5b4fc; }
.badge-Research    { background: rgba(6,182,212,.15);  color: #67e8f9; }
.badge-News        { background: rgba(245,158,11,.15); color: #fcd34d; }
.badge-Newsletters { background: rgba(16,185,129,.15); color: #6ee7b7; }
.badge-Safety      { background: rgba(239,68,68,.15);  color: #fca5a5; }
.badge-Tools       { background: rgba(139,92,246,.15); color: #c4b5fd; }
.badge-Business    { background: rgba(249,115,22,.15); color: #fdba74; }

.card-title { font-size: .97rem; font-weight: 700; line-height: 1.4; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--accent2); }

.card-summary { font-size: .84rem; color: var(--muted2); line-height: 1.6; flex: 1; }

/* Tags */
.card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.tag-chip { font-size: .7rem; color: var(--accent2); background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.2); padding: 2px 8px; border-radius: 999px; transition: all .15s; }
.tag-chip:hover { background: rgba(99,102,241,.2); color: #fff; }

/* AI badge */
.ai-badge { display: inline-flex; align-items: center; gap: 4px; font-size: .7rem; font-weight: 700; color: var(--accent3); background: rgba(6,182,212,.1); border: 1px solid rgba(6,182,212,.2); padding: 2px 9px; border-radius: 999px; width: fit-content; }

.card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--border); margin-top: auto; }
.card-time { font-size: .73rem; color: var(--muted); }
.card-actions { display: flex; gap: 6px; }

/* Featured card */
.card-featured { grid-column: 1 / -1; flex-direction: row; }
.card-featured .card-image, .card-featured .card-image-placeholder { width: 380px; height: auto; min-height: 240px; flex-shrink: 0; }
@media (max-width: 680px) { .card-featured { flex-direction: column; } .card-featured .card-image, .card-featured .card-image-placeholder { width: 100%; min-height: auto; } }

/* ===== Buttons ===== */
.btn-sm { display: inline-flex; align-items: center; gap: 5px; padding: 5px 13px; border-radius: 8px; font-size: .78rem; font-weight: 600; cursor: pointer; border: none; transition: all .18s; text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent2); color: #fff; }
.btn-outline { background: transparent; color: var(--muted2); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent2); color: var(--accent2); }
.btn-lg { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 12px; font-size: .97rem; font-weight: 700; background: linear-gradient(135deg, var(--accent), #7c3aed); color: #fff; transition: all .2s; border: none; cursor: pointer; text-decoration: none; }
.btn-lg:hover { opacity: .9; transform: translateY(-1px); color: #fff; box-shadow: 0 8px 24px rgba(99,102,241,.4); }

/* ===== Sidebar ===== */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.sidebar { display: flex; flex-direction: column; gap: 22px; }
.widget { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.widget-header { padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted2); display: flex; align-items: center; gap: 7px; }
.widget-body { padding: 16px 18px; }
.live-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.live-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.live-stat-num { font-size: 1.4rem; font-weight: 800; background: linear-gradient(135deg, var(--accent2), var(--accent3)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.live-stat-lbl { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; text-align: center; }

.cat-list { display: flex; flex-direction: column; gap: 10px; }
.cat-link { text-decoration: none; color: inherit; }
.cat-item { display: flex; align-items: center; gap: 8px; }
.cat-name { font-size: .82rem; font-weight: 500; width: 90px; flex-shrink: 0; }
.cat-bar-wrap { flex: 1; height: 4px; background: var(--bg3); border-radius: 999px; overflow: hidden; }
.cat-bar { height: 4px; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent3)); }
.cat-count { font-size: .78rem; color: var(--muted); font-weight: 700; width: 32px; text-align: right; }

.source-list { display: flex; flex-direction: column; gap: 2px; max-height: 340px; overflow-y: auto; }
.source-list::-webkit-scrollbar { width: 3px; }
.source-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.source-item { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; cursor: pointer; transition: background .12s; text-decoration: none; color: var(--muted2); font-size: .8rem; }
.source-item:hover { background: var(--bg3); color: var(--text); }
.source-item.active { background: rgba(99,102,241,.12); color: var(--accent2); }
.source-item .logo { font-size: .95rem; width: 18px; text-align: center; }

/* ===== Live dot ===== */
.live-dot { display: inline-block; width: 7px; height: 7px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(1.35)} }

/* ===== Pagination ===== */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 36px; }
.page-btn { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 9px; font-size: .88rem; font-weight: 600; border: 1px solid var(--border); background: transparent; color: var(--muted2); cursor: pointer; transition: all .18s; text-decoration: none; }
.page-btn:hover { border-color: var(--accent2); color: var(--accent2); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-btn.disabled { opacity: .3; pointer-events: none; }

/* ===== Article detail ===== */
.article-hero { background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%); border-bottom: 1px solid var(--border); padding: 52px 24px 44px; }
.article-hero-inner { max-width: 860px; margin: 0 auto; }
.article-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.source-link { font-size: .84rem; color: var(--muted2); font-weight: 600; }
.source-link:hover { color: var(--accent2); }
.meta-sep { color: var(--muted); font-size: .8rem; }
.meta-time { font-size: .8rem; color: var(--muted); }
.meta-author { font-size: .8rem; color: var(--muted2); }
.article-hero h1 { font-size: clamp(1.6rem, 3.8vw, 2.6rem); font-weight: 800; line-height: 1.22; margin-bottom: 18px; }
.article-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.article-cta-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ai-digest-badge { font-size: .78rem; color: var(--accent3); font-weight: 600; }

.article-image-wrap { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.article-hero-image { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); display: block; }
.article-hero-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; height: 180px; background: var(--bg2); border-radius: var(--radius); border: 1px solid var(--border); }
.hero-source-logo { width: 72px; height: 72px; object-fit: contain; border-radius: 16px; }
.hero-placeholder-logo { font-size: 3rem; line-height: 1; }
.hero-placeholder-source { font-size: 0.85rem; font-weight: 600; color: var(--text2); letter-spacing: 0.04em; text-transform: uppercase; }
.article-image-caption { font-size: .74rem; color: var(--muted); margin-top: 6px; text-align: center; }

.article-layout {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 280px;
  gap: 40px; padding: 40px 24px;
}
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } }

/* Attribution banner */
.attribution-banner {
  display: flex; align-items: flex-start; gap: 12px;
  background: rgba(99,102,241,.06); border: 1px solid rgba(99,102,241,.15);
  border-radius: 10px; padding: 14px 18px; margin-bottom: 28px; font-size: .82rem; color: var(--muted2);
}
.attr-logo { font-size: 1.5rem; flex-shrink: 0; }
.attr-text a { color: var(--accent2); }

/* Digest */
.digest-section { margin-bottom: 32px; }
.digest-header { display: flex; align-items: baseline; gap: 10px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.digest-label { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--accent3); }
.digest-sub { font-size: .75rem; color: var(--muted); }
.article-body { font-family: 'Merriweather', Georgia, serif; font-size: 1.02rem; line-height: 1.82; color: #c8d8ec; }
.article-body p { margin-bottom: 1.4em; }

/* Takeaways */
.section-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 16px; color: var(--muted2); }
.takeaways-section { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 32px; }
.takeaways-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.takeaways-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--muted2); line-height: 1.5; }
.takeaways-list li::before { content: "→"; color: var(--accent2); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* Read-more CTA */
.read-more-cta { background: linear-gradient(135deg, rgba(99,102,241,.1), rgba(6,182,212,.08)); border: 1px solid rgba(99,102,241,.2); border-radius: var(--radius); padding: 28px 30px; margin-bottom: 40px; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-text { font-size: .92rem; color: var(--muted2); line-height: 1.6; }
.cta-text strong { color: var(--text); font-size: 1rem; }

/* Sidebar info rows */
.info-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: .82rem; }
.info-row:last-child { border-bottom: none; }
.info-row { flex-wrap: wrap; }
.info-label { color: var(--muted); font-weight: 600; flex-shrink: 0; }

/* Related articles */
.related-section { margin-top: 40px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px,1fr)); gap: 16px; margin-top: 16px; }
.related-card .card-title { font-size: .88rem; }

/* ===== Full article content ===== */
.full-content {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.85;
  color: #c8d8ec;
}
.full-content p  { margin-bottom: 1.4em; }
.full-content h1,
.full-content h2 { font-family: 'Inter', sans-serif; font-weight: 800; color: var(--text); margin: 2em 0 .7em; line-height: 1.25; }
.full-content h1 { font-size: 1.7rem; }
.full-content h2 { font-size: 1.35rem; }
.full-content h3,
.full-content h4 { font-family: 'Inter', sans-serif; font-weight: 700; color: var(--text); margin: 1.6em 0 .5em; }
.full-content h3 { font-size: 1.15rem; }
.full-content h4 { font-size: 1rem; }
.full-content ul, .full-content ol { padding-left: 1.6em; margin-bottom: 1.4em; }
.full-content li { margin-bottom: .5em; }
.full-content blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.6em 0; padding: .8em 1.2em;
  background: rgba(99,102,241,.06);
  border-radius: 0 8px 8px 0;
  color: var(--muted2); font-style: italic;
}
.full-content pre {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.2em;
  overflow-x: auto; margin-bottom: 1.4em;
}
.full-content code {
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: .88em; background: var(--bg3);
  padding: 2px 6px; border-radius: 5px; color: var(--accent3);
}
.full-content pre code { background: none; padding: 0; color: var(--text); font-size: .9em; }
.full-content img {
  max-width: 100%; border-radius: 10px;
  margin: 1.4em 0; display: block;
}
.full-content a { color: var(--accent2); text-decoration: underline; text-decoration-color: rgba(129,140,248,.4); }
.full-content a:hover { color: #fff; }
.full-content figure { margin: 1.6em 0; }
.full-content figcaption { font-size: .8rem; color: var(--muted); text-align: center; margin-top: .5em; font-family: 'Inter', sans-serif; }
.full-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.6em; font-size: .9rem; font-family: 'Inter', sans-serif; }
.full-content th { background: var(--bg3); color: var(--text); font-weight: 700; padding: 10px 14px; border: 1px solid var(--border); text-align: left; }
.full-content td { padding: 9px 14px; border: 1px solid var(--border); color: var(--muted2); }
.full-content tr:hover td { background: rgba(255,255,255,.02); }
.full-content hr { border: none; border-top: 1px solid var(--border); margin: 2em 0; }

/* Paywall notice */
.paywall-notice {
  text-align: center; padding: 60px 24px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 32px;
}
.paywall-icon { font-size: 3rem; margin-bottom: 16px; }
.paywall-notice h2 { font-size: 1.3rem; margin-bottom: 10px; }
.paywall-notice p { color: var(--muted2); margin-bottom: 24px; }

/* Source credit */
.source-credit {
  margin-top: 48px; padding-top: 28px;
  border-top: 1px solid var(--border);
}
.source-credit-inner {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 22px; flex-wrap: wrap;
}
.source-credit-logo { font-size: 2rem; flex-shrink: 0; }
.source-credit-text { flex: 1; font-size: .85rem; color: var(--muted2); line-height: 1.7; }
.source-credit-text strong { color: var(--text); }
.source-credit-text a { color: var(--accent2); }
.source-credit-actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
@media (max-width: 600px) { .source-credit-inner { flex-direction: column; } .source-credit-actions { flex-direction: row; flex-wrap: wrap; } }

/* ===== Sources page ===== */
.sources-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px,1fr)); gap: 16px; padding: 32px 24px; max-width: 1320px; margin: 0 auto; }
.source-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; transition: all .2s; }
.source-card:hover { border-color: rgba(99,102,241,.35); transform: translateY(-3px); }
.source-card-header { display: flex; align-items: center; gap: 12px; }
.source-card-logo { font-size: 1.9rem; }
.source-card-name { font-weight: 700; font-size: .92rem; }
.source-card-url { font-size: .77rem; color: var(--accent2); word-break: break-all; }

/* ===== Empty state ===== */
.empty-state { text-align: center; padding: 80px 24px; grid-column: 1/-1; }
.empty-state .icon { font-size: 3.2rem; margin-bottom: 16px; }
.empty-state h2 { font-size: 1.4rem; margin-bottom: 8px; }
.empty-state p { color: var(--muted2); }

/* ===== Footer ===== */
footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 40px 24px; margin-top: 48px; }
.footer-inner { max-width: 1320px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; gap: 10px; }
.footer-brand { font-size: 1.25rem; font-weight: 800; background: linear-gradient(135deg, var(--accent2), var(--accent3)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.footer-text { font-size: .8rem; color: var(--muted); line-height: 1.7; }
.footer-links { font-size: .8rem; color: var(--muted); }
.footer-links a { color: var(--muted2); margin: 0 2px; }
.footer-links a:hover { color: var(--accent2); }
.footer-copy { font-size: .75rem; color: var(--muted); }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero { padding: 44px 16px 30px; }
  .hero-stats { gap: 16px; padding: 14px 20px; }
  .articles-grid { grid-template-columns: 1fr; }
  .navbar-inner { gap: 10px; }
  .navbar-search { max-width: 200px; }
  .article-hero { padding: 36px 16px 30px; }
  .read-more-cta .cta-inner { flex-direction: column; align-items: flex-start; }
}
