/* Market Pulse Analysis — Finance Blog CSS */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #0a1628;
  --blue:   #1a56db;
  --accent: #10b981;
  --light:  #f8fafc;
  --gray:   #64748b;
  --border: #e2e8f0;
  --text:   #1e293b;
  --font:   'Segoe UI', system-ui, -apple-system, sans-serif;
}

body { font-family: var(--font); color: var(--text); background: #fff; line-height: 1.6; }

/* ── HEADER ──────────────────────────────────────────────────── */
header {
  background: var(--navy);
  color: #fff;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo { font-size: 1.25rem; font-weight: 700; letter-spacing: -.5px; color: #fff; text-decoration: none; }
.logo span { color: var(--accent); }
nav a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  margin-left: 28px;
  font-size: .92rem;
  font-weight: 500;
  transition: color .2s;
}
nav a:hover { color: var(--accent); }

/* ── TICKER ──────────────────────────────────────────────────── */
.ticker {
  background: #0d1e3a;
  color: rgba(255,255,255,.7);
  font-size: .78rem;
  padding: 6px 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-inner { display: inline-flex; gap: 48px; animation: scroll 30s linear infinite; }
.ticker-item { display: flex; gap: 8px; }
.ticker-item .up   { color: var(--accent); }
.ticker-item .down { color: #f87171; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #162d5a 100%);
  color: #fff;
  padding: 72px 24px;
  text-align: center;
}
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.hero h1 span { color: var(--accent); }
.hero p  { font-size: 1.1rem; color: rgba(255,255,255,.8); max-width: 600px; margin: 0 auto 32px; }
.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 16px 36px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .1s;
  letter-spacing: .3px;
}
.cta-btn:hover   { background: #059669; transform: translateY(-1px); }
.cta-btn:active  { transform: translateY(0); }
.cta-btn.loading { background: #475569; cursor: not-allowed; }
.trust-badges {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: .82rem;
  color: rgba(255,255,255,.6);
}
.trust-badges span::before { content: "✓ "; color: var(--accent); }

/* ── LAYOUT ──────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.two-col   { display: grid; grid-template-columns: 1fr 340px; gap: 40px; padding: 48px 0; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* ── ARTICLES ────────────────────────────────────────────────── */
.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.article-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  transition: box-shadow .2s;
}
.article-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.article-body  { padding: 24px; }
.article-tag   { display: inline-block; background: #eff6ff; color: var(--blue); font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; margin-bottom: 12px; }
.article-card h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; line-height: 1.35; color: var(--text); }
.article-card p  { color: var(--gray); font-size: .93rem; margin-bottom: 16px; }
.article-meta    { display: flex; align-items: center; gap: 12px; font-size: .8rem; color: var(--gray); }
.author-dot { width: 28px; height: 28px; background: var(--blue); border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; flex-shrink: 0; }
.read-more { color: var(--blue); font-weight: 600; text-decoration: none; font-size: .88rem; }
.read-more:hover { text-decoration: underline; }

/* ── SIDEBAR ─────────────────────────────────────────────────── */
.sidebar-card {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}
.sidebar-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.market-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.market-row:last-child { border-bottom: none; }
.market-row .sym  { font-weight: 700; }
.market-row .up   { color: var(--accent); font-weight: 600; }
.market-row .down { color: #ef4444; font-weight: 600; }

.nl-form { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.nl-form input {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .9rem;
  width: 100%;
  outline: none;
  transition: border-color .2s;
}
.nl-form input:focus { border-color: var(--blue); }
.nl-form button {
  background: var(--blue);
  color: #fff;
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: .9rem;
  transition: background .2s;
}
.nl-form button:hover { background: #1748c0; }

/* ── MINI ARTICLES ───────────────────────────────────────────── */
.mini-card {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}
.mini-card:last-child { border-bottom: none; }
.mini-num  { font-size: 1.5rem; font-weight: 800; color: var(--border); flex-shrink: 0; line-height: 1; }
.mini-card h4 { font-size: .88rem; font-weight: 600; margin-bottom: 4px; line-height: 1.35; color: var(--text); }
.mini-card span { font-size: .78rem; color: var(--gray); }

/* ── STATS BAR ───────────────────────────────────────────────── */
.stats-bar { background: var(--light); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 32px 0; gap: 24px; }
@media (max-width: 640px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-item { text-align: center; }
.stat-num  { font-size: 2rem; font-weight: 800; color: var(--blue); display: block; }
.stat-lbl  { font-size: .82rem; color: var(--gray); }

/* ── FOOTER ──────────────────────────────────────────────────── */
footer { background: var(--navy); color: rgba(255,255,255,.6); padding: 40px 24px 24px; margin-top: 60px; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p  { font-size: .88rem; margin-top: 12px; line-height: 1.6; }
footer h4        { font-size: .9rem; font-weight: 700; color: #fff; margin-bottom: 16px; }
footer ul        { list-style: none; }
footer ul li     { margin-bottom: 10px; }
footer ul li a   { color: rgba(255,255,255,.6); text-decoration: none; font-size: .88rem; transition: color .2s; }
footer ul li a:hover { color: var(--accent); }
.footer-bottom { max-width: 1200px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: gap; font-size: .8rem; }
.footer-bottom a { color: rgba(255,255,255,.5); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
.disclaimer { font-size: .75rem; color: rgba(255,255,255,.35); margin-top: 16px; max-width: 1200px; margin-left: auto; margin-right: auto; line-height: 1.5; }
