/* ========= ARTICLE.CSS — Shared styles for all article pages ========= */

* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #0b5394;
  --primary-dark: #073763;
  --accent: #f59e0b;
  --green: #10b981;
  --red: #ef4444;
  --bg: #f7f9fc;
  --text: #1a202c;
  --text-light: #64748b;
  --border: #e2e8f0;
  --card-bg: #ffffff;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ===== HEADER ===== */
header {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.logo {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  text-decoration: none;
}
.logo span { color: var(--accent); }
nav { border-top: 1px solid var(--border); }
.nav-list {
  display: flex;
  list-style: none;
  gap: 4px;
  overflow-x: auto;
}
.nav-list > li > a {
  display: block;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  color: var(--text);
  text-decoration: none;
}
.nav-list > li > a:hover { color: var(--primary); border-bottom-color: var(--primary); }

/* ===== ARTICLE LAYOUT ===== */
.article-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  margin: 30px auto;
  max-width: 1280px;
  padding: 0 20px;
}
@media (max-width: 968px) { .article-wrap { grid-template-columns: 1fr; } }

article {
  background: white;
  border-radius: 12px;
  padding: 40px;
  border: 1px solid var(--border);
}
@media (max-width: 600px) { article { padding: 24px; } }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 6px; opacity: 0.5; }

/* ===== TITLE & META ===== */
.article-cat {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}
.article-cat.crypto { background: #f59e0b; }
.article-cat.stock { background: #10b981; }
.article-cat.macro { background: #6366f1; }
.article-cat.legal { background: #ef4444; }
.article-cat.analysis { background: var(--accent); }

article h1 {
  font-size: 32px;
  line-height: 1.3;
  margin-bottom: 16px;
  font-weight: 800;
  color: var(--text);
}
@media (max-width: 600px) { article h1 { font-size: 24px; } }

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13.5px;
  color: var(--text-light);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.article-meta .author { color: var(--primary); font-weight: 600; }

/* ===== COVER IMAGE ===== */
.cover-image {
  margin-bottom: 28px;
  border-radius: 10px;
  overflow: hidden;
  height: 360px;
}
.cover-image svg { width: 100%; height: 100%; display: block; }
@media (max-width: 600px) { .cover-image { height: 220px; } }

/* ===== ARTICLE CONTENT ===== */
.article-content { font-size: 17px; line-height: 1.8; color: #2d3748; }
.article-content p { margin-bottom: 18px; }
.article-content .lead {
  font-size: 19px;
  color: var(--text);
  font-weight: 500;
  padding: 18px 22px;
  background: #f0f7ff;
  border-left: 4px solid var(--primary);
  border-radius: 4px;
  margin-bottom: 28px;
  line-height: 1.65;
}
.article-content h2 {
  font-size: 24px;
  margin: 32px 0 14px;
  font-weight: 800;
  color: var(--text);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.article-content h3 {
  font-size: 19px;
  margin: 24px 0 10px;
  font-weight: 700;
  color: var(--primary-dark);
}
.article-content ul, .article-content ol {
  margin: 0 0 20px 24px;
  padding-left: 8px;
}
.article-content ul li, .article-content ol li { margin-bottom: 8px; }
.article-content strong { color: var(--text); font-weight: 700; }
.article-content blockquote {
  border-left: 4px solid var(--accent);
  background: #fffbeb;
  padding: 16px 22px;
  margin: 20px 0;
  border-radius: 4px;
  font-style: italic;
  color: #78350f;
}

/* ===== KEY-FACT BOX ===== */
.fact-box {
  background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
  border: 1px solid #cce4ff;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 24px 0;
}
.fact-box h4 {
  font-size: 14px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
  font-weight: 700;
}
.fact-box ul { margin: 0; list-style: none; padding: 0; }
.fact-box ul li {
  padding: 6px 0;
  font-size: 15.5px;
  border-bottom: 1px dashed #cce4ff;
}
.fact-box ul li:last-child { border-bottom: none; }
.fact-box strong { color: var(--primary-dark); }

/* ===== STAT GRID ===== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin: 22px 0;
}
.stat-item {
  background: var(--bg);
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid var(--border);
}
.stat-value { font-size: 24px; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.stat-label { font-size: 12px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; }
.stat-up { color: var(--green); }
.stat-down { color: var(--red); }

/* ===== DISCLAIMER ===== */
.disclaimer {
  background: rgba(239, 68, 68, 0.06);
  border-left: 4px solid var(--red);
  padding: 16px 20px;
  border-radius: 4px;
  margin: 30px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #7f1d1d;
}
.disclaimer strong { color: var(--red); }

/* ===== SOURCES ===== */
.sources {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 2px solid var(--border);
  font-size: 14px;
}
.sources h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.sources ul { list-style: none; padding: 0; }
.sources ul li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.sources ul li:last-child { border-bottom: none; }
.sources a {
  color: var(--primary);
  word-break: break-word;
}

/* ===== SHARE ===== */
.share {
  display: flex;
  gap: 10px;
  margin: 24px 0;
  align-items: center;
}
.share .share-label { font-size: 14px; color: var(--text-light); margin-right: 6px; }
.share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg);
  font-size: 14px;
  color: var(--text);
}
.share a:hover { background: var(--primary); color: white; text-decoration: none; }

/* ===== SIDEBAR ===== */
aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.aside-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}
.aside-box h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.related-list { list-style: none; padding: 0; }
.related-list li {
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}
.related-list li:last-child { border-bottom: none; }
.related-list a {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  display: block;
  margin-bottom: 4px;
}
.related-list a:hover { color: var(--primary); text-decoration: none; }
.related-list .meta { font-size: 12px; color: var(--text-light); }

/* ===== FOOTER ===== */
footer {
  background: #0f172a;
  color: white;
  padding: 40px 0 20px;
  margin-top: 50px;
}
footer .footer-bottom {
  text-align: center;
  font-size: 13px;
  opacity: 0.7;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
footer .disclaimer-footer {
  background: rgba(239, 68, 68, 0.1);
  border-left: 3px solid var(--red);
  padding: 14px 18px;
  border-radius: 4px;
  margin-bottom: 24px;
  font-size: 13px;
  line-height: 1.6;
}
