/* ============================================
   TraceAI — Article-specific styles
   ============================================ */

.article-hero {
  padding: 60px 0 40px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-3);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--text-2);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb .sep {
  color: var(--text-3);
}

.article-category {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.article-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 20px;
  line-height: 1.15;
}

.article-meta-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--text-3);
  font-size: 0.9rem;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.article-meta-row .author {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-1);
}

.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #4dabff);
  display: grid;
  place-items: center;
  color: var(--bg-0);
  font-weight: 700;
  font-size: 0.85rem;
}

/* Body */
.article-body-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-1);
}

.article-body-content h2 {
  margin-top: 48px;
  margin-bottom: 20px;
  padding-top: 8px;
}

.article-body-content h3 {
  margin-top: 32px;
  margin-bottom: 14px;
  color: var(--text-0);
}

.article-body-content p {
  margin-bottom: 18px;
  color: var(--text-1);
}

.article-body-content ul, .article-body-content ol {
  margin: 18px 0 24px 24px;
  color: var(--text-1);
}

.article-body-content li {
  margin-bottom: 10px;
  padding-left: 6px;
}

.article-body-content ul li::marker {
  color: var(--accent);
}

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

.article-body-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 0 12px 24px;
  margin: 28px 0;
  color: var(--text-2);
  font-style: italic;
  font-size: 1.05rem;
}

.article-body-content a {
  color: var(--accent);
  border-bottom: 1px dashed var(--accent-dim);
}

.article-body-content a:hover {
  border-bottom-style: solid;
}

.article-body-content img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 24px 0;
}

.article-body-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* TOC */
.toc {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 32px 0;
}

.toc h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 14px;
}

.toc ul {
  list-style: none;
  margin: 0;
}

.toc li {
  padding: 0;
  margin-bottom: 8px;
}

.toc a {
  color: var(--text-2);
  font-size: 0.95rem;
  border: none;
}

.toc a:hover {
  color: var(--accent);
}

/* Step list */
.steps {
  counter-reset: step;
  list-style: none !important;
  margin-left: 0 !important;
}

.steps li {
  counter-increment: step;
  padding: 20px 20px 20px 64px !important;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  position: relative;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: var(--bg-0);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-family: var(--font-mono);
}

.steps li strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text-0);
}

/* Share / actions */
.article-actions {
  display: flex;
  gap: 12px;
  padding: 24px 0;
  margin-top: 48px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.article-actions .btn {
  font-size: 0.88rem;
  padding: 8px 14px;
}

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

.related-articles h3 {
  margin-bottom: 24px;
}

/* Tip card */
.tip-card {
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px;
  margin: 28px 0;
  position: relative;
}

.tip-card::before {
  content: 'DICA';
  position: absolute;
  top: -10px;
  left: 20px;
  background: var(--accent);
  color: var(--bg-0);
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.tip-card p:last-child {
  margin-bottom: 0;
}
