/* ============================================================
   AIWire — AI News Network
   Design reference: crypto.news / news.bitcoin.com / bitcoinworld.co.in
   Dark editorial theme, adapted for AI news instead of crypto
   ============================================================ */

:root {
  --bg: #0a0b10;
  --bg-alt: #0e1016;
  --card: #12141c;
  --card-hover: #171a24;
  --border: #21242f;
  --border-light: #2a2e3b;
  --text: #eef0f5;
  --text-dim: #9aa0b0;
  --text-faint: #666c7d;
  --accent: #7c5cff;
  --accent-2: #00e0c6;
  --accent-hot: #ff5c7c;
  --gold: #ffb020;
  --green: #1fd67a;
  --red: #ff4d5e;
  --grad: linear-gradient(135deg, #7c5cff 0%, #00c2ff 100%);
  --font-head: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --radius: 10px;
  --maxw: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- utility bar ---------- */
.utility-bar {
  background: #050609;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-faint);
}
.utility-bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
}
.utility-left { display: flex; align-items: center; gap: 16px; }
.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-hot);
  font-weight: 600;
  letter-spacing: .04em;
}
.live-dot::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-hot);
  box-shadow: 0 0 0 0 rgba(255,92,124,.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,92,124,.55); }
  70% { box-shadow: 0 0 0 6px rgba(255,92,124,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,92,124,0); }
}
.utility-right { display: flex; align-items: center; gap: 14px; }
.utility-right a { color: var(--text-faint); transition: color .15s; }
.utility-right a:hover { color: var(--accent-2); }

/* ---------- ticker ---------- */
.ticker-bar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.ticker-bar .tag {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  display: flex; align-items: center;
  background: var(--grad);
  color: #060608;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .06em;
  padding: 0 14px;
  z-index: 2;
}
.ticker-track {
  display: inline-flex;
  animation: scroll-left 38s linear infinite;
  padding-left: 140px;
}
.ticker-bar:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  font-size: 12.5px;
  color: var(--text-dim);
  padding: 8px 28px 8px 0;
  border-right: 1px solid var(--border-light);
  margin-right: 28px;
}
.ticker-track span b { color: var(--text); font-weight: 600; }
.ticker-track span.up { color: var(--green); }
.ticker-track span.down { color: var(--red); }
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- header ---------- */
header.site-header {
  background: rgba(10,11,16,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.logo .mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; color: #060608;
}
.logo .accent { color: var(--accent-2); }

nav.main-nav { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; }
nav.main-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  padding: 9px 14px;
  border-radius: 6px;
  transition: all .15s;
}
nav.main-nav a:hover, nav.main-nav a.active {
  color: var(--text);
  background: var(--card);
}
nav.main-nav a.active { color: var(--accent-2); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-dim);
  transition: all .15s;
}
.icon-btn:hover { color: var(--text); border-color: var(--accent); }
.btn-subscribe {
  background: var(--grad);
  color: #06060a;
  font-weight: 700;
  font-size: 13.5px;
  padding: 9px 18px;
  border-radius: 8px;
  transition: filter .15s, transform .15s;
}
.btn-subscribe:hover { filter: brightness(1.1); transform: translateY(-1px); }
.menu-toggle { display: none; }

/* ---------- hero ---------- */
.hero-section { padding: 28px 0 8px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 22px;
}
.hero-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  min-height: 460px;
  display: flex;
  align-items: flex-end;
}
.hero-main img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.hero-main::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,11,16,0) 20%, rgba(10,11,16,.94) 92%);
}
.hero-main .hero-content {
  position: relative; z-index: 2;
  padding: 32px;
}
.tag-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 100px;
  background: rgba(124,92,255,.16);
  color: var(--accent-2);
  border: 1px solid rgba(0,224,198,.35);
  margin-bottom: 14px;
}
.tag-pill.hot { background: rgba(255,92,124,.16); color: var(--accent-hot); border-color: rgba(255,92,124,.35); }
.tag-pill.gold { background: rgba(255,176,32,.14); color: var(--gold); border-color: rgba(255,176,32,.35); }
.tag-pill.green { background: rgba(31,214,122,.14); color: var(--green); border-color: rgba(31,214,122,.35); }

.hero-main h1 {
  font-family: var(--font-head);
  font-size: 34px;
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 12px;
  max-width: 90%;
}
.hero-main p.excerpt {
  color: var(--text-dim);
  font-size: 15px;
  max-width: 80%;
  margin-bottom: 14px;
}
.meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: var(--text-faint);
}
.meta-row .author { color: var(--text-dim); font-weight: 600; }
.meta-row .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-faint); }

.hero-side { display: flex; flex-direction: column; gap: 14px; }
.side-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  transition: all .15s;
  flex: 1;
}
.side-card:hover { background: var(--card-hover); border-color: var(--border-light); transform: translateY(-1px); }
.side-card .thumb {
  width: 96px; height: 96px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}
.side-card .thumb img { width: 100%; height: 100%; }
.side-card .body { display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.side-card .cat { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-2); }
.side-card h3 { font-size: 14.5px; line-height: 1.35; font-weight: 600; font-family: var(--font-head); }
.side-card .time { font-size: 11.5px; color: var(--text-faint); }

/* ---------- section heading ---------- */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 44px 0 20px;
}
.section-head h2 {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-head h2::before {
  content: '';
  width: 4px; height: 20px;
  background: var(--grad);
  border-radius: 3px;
}
.section-head a.view-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-2);
  display: flex; align-items: center; gap: 4px;
}

/* ---------- content layout w/ sidebar ---------- */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

/* ---------- article grid / cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.article-card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .18s;
}
.article-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 12px 28px -12px rgba(124,92,255,.25); }
.article-card .thumb { position: relative; height: 168px; overflow: hidden; }
.article-card .thumb img { width: 100%; height: 100%; transition: transform .3s; }
.article-card:hover .thumb img { transform: scale(1.06); }
.article-card .thumb .tag-pill { position: absolute; top: 10px; left: 10px; margin: 0; backdrop-filter: blur(6px); }
.article-card .card-body { padding: 16px; }
.article-card h3 {
  font-family: var(--font-head);
  font-size: 16.5px;
  line-height: 1.35;
  font-weight: 600;
  margin-bottom: 10px;
}
.article-card p { font-size: 13.5px; color: var(--text-dim); margin-bottom: 12px; line-height: 1.5; }

.byline {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-faint);
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.byline .avatar {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 800; color: #06060a;
}
.byline b { color: var(--text-dim); }

/* row list (compact) */
.list-row {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.list-row:first-child { padding-top: 0; }
.list-row:last-child { border-bottom: none; }
.list-row .idx {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 700;
  color: var(--border-light);
  width: 34px;
  flex-shrink: 0;
  line-height: 1;
}
.list-row .thumb { width: 74px; height: 74px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.list-row .thumb img { width: 100%; height: 100%; }
.list-row .body { display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.list-row h4 { font-size: 14px; font-weight: 600; line-height: 1.35; font-family: var(--font-head); }
.list-row .time { font-size: 11.5px; color: var(--text-faint); }

/* ---------- sidebar ---------- */
.sidebar-block {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 22px;
}
.sidebar-block h3 {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.sidebar-block h3 .dot-accent { width: 8px; height: 8px; border-radius: 2px; background: var(--accent-2); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  font-size: 12.5px;
  padding: 7px 12px;
  border-radius: 100px;
  border: 1px solid var(--border-light);
  color: var(--text-dim);
  transition: all .15s;
}
.tag-cloud a:hover { border-color: var(--accent); color: var(--text); background: rgba(124,92,255,.08); }

/* market/model stat mini cards */
.stat-mini {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.stat-mini:last-child { border-bottom: none; }
.stat-mini .name { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.stat-mini .swatch { width: 26px; height: 26px; border-radius: 6px; background: var(--grad); flex-shrink:0; }
.stat-mini .val { text-align: right; }
.stat-mini .val .chg { display: block; font-size: 11.5px; }
.chg.up { color: var(--green); }
.chg.down { color: var(--red); }

/* newsletter box in sidebar */
.newsletter-mini { text-align: left; }
.newsletter-mini p { font-size: 13px; color: var(--text-dim); margin-bottom: 14px; }
.newsletter-mini form { display: flex; flex-direction: column; gap: 8px; }
.newsletter-mini input {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 13px;
}
.newsletter-mini input:focus { outline: none; border-color: var(--accent); }
.newsletter-mini button {
  background: var(--grad);
  color: #06060a;
  font-weight: 700;
  font-size: 13px;
  padding: 10px;
  border-radius: 8px;
}

/* ---------- category strip / pills row ---------- */
.category-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 6px;
  margin-bottom: 6px;
  scrollbar-width: none;
}
.category-strip::-webkit-scrollbar { display: none; }
.category-strip button {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 100px;
  border: 1px solid var(--border-light);
  color: var(--text-dim);
  transition: all .15s;
}
.category-strip button.active,
.category-strip button:hover {
  background: var(--grad);
  color: #06060a;
  border-color: transparent;
}

/* ---------- full-bleed newsletter band ---------- */
.newsletter-band {
  margin: 56px 0;
  border-radius: 16px;
  padding: 48px;
  background:
    radial-gradient(circle at 15% 20%, rgba(124,92,255,.35), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(0,224,198,.28), transparent 45%),
    #0e1016;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.newsletter-band .copy h2 {
  font-family: var(--font-head);
  font-size: 28px;
  margin-bottom: 8px;
}
.newsletter-band .copy p { color: var(--text-dim); font-size: 14.5px; max-width: 440px; }
.newsletter-band form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-band input {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 13px 16px;
  color: var(--text);
  font-size: 14px;
  min-width: 260px;
}
.newsletter-band input:focus { outline: none; border-color: var(--accent); }
.newsletter-band button {
  background: var(--grad);
  color: #06060a;
  font-weight: 700;
  font-size: 14px;
  padding: 13px 22px;
  border-radius: 8px;
  white-space: nowrap;
}

/* ---------- editor picks horizontal ---------- */
.picks-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 300px;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
}
.picks-scroll::-webkit-scrollbar { height: 6px; }
.picks-scroll::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 4px; }

/* ---------- footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  margin-top: 60px;
  padding: 50px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 30px;
  padding-bottom: 40px;
}
.footer-grid h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul li a { font-size: 13.5px; color: var(--text-dim); transition: color .15s; }
.footer-grid ul li a:hover { color: var(--accent-2); }
.footer-about p { font-size: 13.5px; color: var(--text-dim); margin: 14px 0 18px; max-width: 320px; }
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 34px; height: 34px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  transition: all .15s;
}
.social-row a:hover { border-color: var(--accent); color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom .legal-links { display: flex; gap: 18px; }
.disclaimer-strip {
  font-size: 11.5px;
  color: var(--text-faint);
  padding: 14px 0;
  border-top: 1px solid var(--border);
  line-height: 1.6;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .content-layout { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  nav.main-nav { display: none; }
  .menu-toggle { display: flex; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-main h1 { font-size: 26px; }
  .hero-main .hero-content { padding: 20px; }
  .newsletter-band { padding: 30px 22px; }
  .utility-bar .utility-right span { display: none; }
}
