/* Article page styles */

.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  padding: 32px 20px 60px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text3);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.breadcrumbs a { color: var(--text2); }
.breadcrumbs a:hover { color: var(--accent2); }
.breadcrumbs span { color: var(--text3); }

.article-header { margin-bottom: 28px; }

.article-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.article-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.article-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.article-meta-info {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text3);
  flex-wrap: wrap;
}

.view-count { color: var(--text3); }

.article-share-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.share-label { font-size: 13px; color: var(--text3); }

.share-pill {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
}

.share-pill.twitter { background: rgba(0,0,0,0.3); border: 1px solid var(--border); color: var(--text2); }
.share-pill.twitter:hover { background: #000; color: #fff; border-color: #000; }
.share-pill.telegram { background: rgba(0,136,212,0.15); border: 1px solid rgba(0,136,212,0.3); color: #0088d4; }
.share-pill.telegram:hover { background: #0088d4; color: #fff; }
.share-pill.copy { background: var(--bg3); border: 1px solid var(--border); color: var(--text2); }
.share-pill.copy:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.article-hero-img {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 8px;
  border: 1px solid var(--border);
}

.article-img-placeholder {
  width: 100%;
  height: 340px;
  background: var(--bg3);
}

.article-img-placeholder svg { width: 100%; height: 100%; }

.img-caption {
  font-size: 12px;
  color: var(--text3);
  text-align: center;
  margin-bottom: 24px;
  margin-top: 8px;
}

/* Key stats bar */
.key-stats {
  display: flex;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 32px;
  overflow: hidden;
}

.stat-item {
  flex: 1;
  padding: 14px 16px;
  border-right: 1px solid var(--border);
  text-align: center;
}

.stat-item:last-child { border-right: none; }

.stat-label {
  display: block;
  font-size: 11px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.stat-val {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

/* Article body */
.article-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
}

.article-lead {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 2px solid var(--border);
}

.article-body h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 36px 0 16px;
  letter-spacing: -0.3px;
}

.article-body p { margin-bottom: 20px; }

.article-body strong { font-weight: 700; color: var(--text); }

.article-quote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--accent);
  background: var(--card);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 17px;
  font-style: italic;
  line-height: 1.65;
  color: var(--text);
}

.article-quote cite {
  display: block;
  font-style: normal;
  font-size: 13px;
  color: var(--text3);
  margin-top: 10px;
  font-weight: 500;
}

.article-data-table {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 28px 0;
  overflow-x: auto;
}

.article-data-table h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-data-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.article-data-table th {
  text-align: left;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text3);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

.article-data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.article-data-table tr:last-child td { border-bottom: none; }

.article-list {
  margin: 16px 0 24px 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-list li {
  padding: 12px 16px;
  background: var(--bg3);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
  font-size: 15px;
  line-height: 1.6;
}

/* Article footer */
.article-footer-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.tags-label { font-size: 13px; color: var(--text3); }

.tag-link {
  padding: 4px 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12.5px;
  color: var(--text2);
  transition: all 0.2s;
}

.tag-link:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.article-share-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  font-size: 14px;
  color: var(--text2);
}

/* Author box */
.author-box {
  display: flex;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 32px 0;
}

.author-avatar.large {
  width: 72px;
  height: 72px;
  font-size: 28px;
  border-radius: 50%;
  flex-shrink: 0;
}

.author-box-info { flex: 1; }
.author-box-name { display: block; font-size: 17px; font-weight: 700; margin-bottom: 2px; }
.author-box-title { display: block; font-size: 13px; color: var(--text3); margin-bottom: 10px; }
.author-box-bio { font-size: 14px; color: var(--text2); line-height: 1.6; margin-bottom: 14px; }
.author-social { display: flex; gap: 8px; }

/* ── Inline article body images ── */
.article-inline-img {
  margin: 32px 0;
}
.article-inline-img img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  max-height: 380px;
}
.article-inline-img figcaption {
  font-size: 12px;
  color: var(--text3);
  margin-top: 8px;
  text-align: center;
  font-style: italic;
}

/* ── Author box portrait photo ── */
.author-box-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  display: block;
}

/* ── Category featured thumb is bigger ── */
.cat-featured .news-list-img {
  width: 130px !important;
  height: 90px !important;
  border-radius: 10px;
}

/* Related articles */
.related-section { margin-top: 40px; }

.related-section h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s;
}

.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.related-img { height: 100px; }

.related-body { padding: 14px; }
.related-body h4 { font-size: 14px; font-weight: 600; line-height: 1.4; margin: 8px 0 6px; }
.related-body h4 a:hover { color: var(--accent2); }

/* BTC price widget */
.btc-price-widget { padding: 4px 0; }
.btc-big-price { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.btc-change { font-size: 14px; font-weight: 500; margin-bottom: 12px; }
.btc-mini-chart svg { width: 100%; height: 50px; }
.btc-stats-mini { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.btc-stats-mini > div { display: flex; justify-content: space-between; font-size: 12.5px; }
.btc-stats-mini span:first-child { color: var(--text3); }
.btc-stats-mini span:last-child { font-weight: 600; }

/* Sidebar */
.article-sidebar { display: flex; flex-direction: column; gap: 20px; }

@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: grid; grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .key-stats { flex-wrap: wrap; }
  .stat-item { flex: 1 1 33%; border-bottom: 1px solid var(--border); }
}

@media (max-width: 768px) {
  .article-title { font-size: 24px; }
  .article-lead { font-size: 16px; }
  .article-body { font-size: 15px; }
  .article-sidebar { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .key-stats { flex-direction: column; }
  .stat-item { border-right: none; }
}
