/* ============================================================
   article.css  —  Shared styles for all article pages
   AI Profit Hub | https://ai-profit-hub.com
   ============================================================ */

/* ---- Reading progress bar ---- */
#read-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #6C63FF, #00D4AA);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ---- Breadcrumb ---- */
.bc {
  max-width: 860px;
  margin: 0 auto;
  padding: 14px 20px 0;
  font-size: .78rem;
  color: var(--text-secondary);
}
.bc a { color: var(--text-secondary); text-decoration: none; }
.bc a:hover { color: var(--primary-light); }

/* ---- Source badge ---- */
.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(108,99,255,.12);
  border: 1px solid rgba(108,99,255,.25);
  border-radius: 50px;
  padding: 4px 14px;
  font-size: .75rem;
  color: var(--primary-light);
  font-weight: 600;
  margin-bottom: 18px;
}

/* ---- Article container typography ---- */
.article-container h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 32px 0 14px;
  color: var(--text-primary);
}
.article-container h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 24px 0 10px;
  color: var(--text-primary);
}
.article-container p {
  margin: 0 0 18px;
  line-height: 1.8;
  font-size: .95rem;
  color: var(--text-secondary);
}
.article-container ul,
.article-container ol {
  margin: 0 0 18px;
  padding-left: 24px;
}
.article-container li {
  margin-bottom: 10px;
  line-height: 1.7;
  font-size: .95rem;
  color: var(--text-secondary);
}
.article-container strong { color: var(--text-primary); }
.article-container a {
  color: var(--primary-light);
  text-decoration: none;
}
.article-container a:hover { text-decoration: underline; }

/* ---- Back to top button ---- */
.back-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity .3s;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(108,99,255,.4);
}

/* ---- Personal take box ---- */
.personal-take {
  background: linear-gradient(135deg, rgba(108,99,255,.1), rgba(0,212,170,.07));
  border-left: 4px solid #6C63FF;
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 32px 0;
}
.personal-take-label {
  font-size: .72rem;
  font-weight: 800;
  color: var(--primary-light);
  letter-spacing: .1em;
  margin-bottom: 8px;
}

/* ---- Share row ---- */
.share-row, .share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 18px 22px;
  background: var(--bg-elevated, #1a1f2e);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin: 32px 0;
}
.share-bar span {
  font-size: .875rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-right: 4px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-decoration: none;
}
.share-btn-copy {
  background: var(--bg-card, #1A1F35);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.share-btn-copy:hover { border-color: var(--primary); color: var(--primary-light); }
.share-btn-x { background: #000; color: #fff; }
.share-btn-x:hover { background: #222; color: #fff; }
.share-btn-wa { background: #25D366; color: #fff; }
.share-btn-wa:hover { background: #1ebe5a; color: #fff; }

/* ---- Comparison / model table ---- */
.model-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: .87rem;
}
.model-table th {
  background: rgba(108,99,255,.15);
  color: var(--text-primary);
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
}
.model-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.model-table tr:hover td { background: rgba(108,99,255,.05); }

/* ---- Table of contents ---- */
.toc-box {
  background: var(--bg-elevated, #1a1f2e);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary, #6C63FF);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 28px 0 32px;
  max-width: 520px;
}
.toc-box h4 {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--primary-light, #a78bfa);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}
.toc-list li {
  counter-increment: toc;
  margin-bottom: 7px;
}
.toc-list li a {
  font-size: .85rem;
  color: var(--text-secondary, #8888aa);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 8px;
  transition: color .15s;
}
.toc-list li a::before {
  content: counter(toc);
  font-size: .7rem;
  font-weight: 700;
  color: var(--primary-light, #a78bfa);
  background: rgba(108,99,255,0.15);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.toc-list li a:hover { color: var(--primary-light, #a78bfa); }

/* ---- Key stat / highlight box ---- */
.key-stat {
  background: linear-gradient(135deg, rgba(108,99,255,.1), rgba(0,212,170,.07));
  border: 1px solid rgba(108,99,255,.2);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 24px 0;
  text-align: center;
}
.key-stat .stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-light, #a78bfa);
  display: block;
}
.key-stat .stat-label {
  font-size: .85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ---- Verdict / rating box ---- */
.verdict-box {
  background: var(--bg-elevated, #1a1f2e);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
  margin: 32px 0;
}
.verdict-score {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary-light, #a78bfa);
}

/* ---- Comparison pros/cons ---- */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}
.pros, .cons {
  background: var(--bg-elevated, #1a1f2e);
  border-radius: 10px;
  padding: 16px 18px;
}
.pros { border-top: 3px solid #00D4AA; }
.cons { border-top: 3px solid #ff5858; }
.pros h4 { color: #00D4AA; margin: 0 0 10px; font-size: .85rem; }
.cons h4 { color: #ff5858; margin: 0 0 10px; font-size: .85rem; }
.pros li, .cons li { font-size: .85rem; margin-bottom: 6px; }
@media (max-width: 600px) {
  .pros-cons { grid-template-columns: 1fr; }
}

/* ---- Article hero image ---- */
.article-hero {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin: 24px 0;
}
