/* ==================== Blog Article Styles ==================== */

.article-body { max-width: 760px; margin: 0 auto; }
.article-hero { text-align: center; padding: 48px 0 32px; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.article-hero h1 { font-size: 1.8rem; font-weight: 800; line-height: 1.35; margin-bottom: 12px; }
.article-meta { font-size: 0.85rem; color: var(--text-muted); display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap; }
.article-meta span { display: flex; align-items: center; gap: 4px; }
.article-content { font-size: 0.95rem; line-height: 1.9; color: var(--text-secondary); }
.article-content h2 { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); margin: 36px 0 14px; padding-left: 12px; border-left: 4px solid var(--accent); }
.article-content h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin: 28px 0 10px; }
.article-content p { margin-bottom: 16px; }
.article-content ul, .article-content ol { margin-bottom: 16px; padding-left: 22px; }
.article-content li { margin-bottom: 6px; }
.article-content strong { color: var(--accent); font-weight: 600; }
.article-content blockquote { border-left: 4px solid var(--accent); padding: 12px 18px; margin: 20px 0; background: var(--bg-glass); border-radius: 0 var(--radius-md) var(--radius-md) 0; font-style: italic; }
.article-content blockquote p { margin-bottom: 0; }
.article-content code { background: var(--bg-tertiary); padding: 2px 6px; border-radius: 4px; font-family: var(--font-mono); font-size: 0.85em; }
.article-content pre { background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; margin: 16px 0; overflow-x: auto; }
.article-content pre code { background: none; padding: 0; font-size: 0.82rem; line-height: 1.7; }
.article-content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.88rem; }
.article-content th, .article-content td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; }
.article-content th { background: var(--bg-tertiary); color: var(--text-primary); font-weight: 600; }
.article-content img { max-width: 100%; border-radius: var(--radius-md); margin: 12px 0; }

/* Visual Boxes */
.info-box { padding: 16px 20px; border-radius: var(--radius-md); margin: 20px 0; font-size: 0.9rem; line-height: 1.8; border: 1px solid; }
.info-box.tip { background: rgba(99,102,241,0.06); border-color: rgba(99,102,241,0.2); color: var(--text-secondary); }
.info-box.warn { background: rgba(243,156,18,0.06); border-color: rgba(243,156,18,0.2); color: var(--text-secondary); }
.info-box.good { background: rgba(46,204,113,0.06); border-color: rgba(46,204,113,0.2); color: var(--text-secondary); }
.info-box strong { color: var(--text-primary); }

/* Step List */
.step-list { counter-reset: step; padding: 0; }
.step-list li { counter-increment: step; display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; font-size: 0.92rem; line-height: 1.7; list-style: none; }
.step-list li::before { content: counter(step); flex-shrink: 0; width: 28px; height: 28px; background: var(--accent); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.82rem; font-weight: 700; margin-top: 2px; }

/* Comparison Grid */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
.compare-card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; }
.compare-card h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; }
.compare-card p { font-size: 0.85rem; margin-bottom: 0; }

/* Chart Visual */
.bar-chart { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.bar-row { display: flex; align-items: center; gap: 10px; }
.bar-label { width: 100px; font-size: 0.82rem; color: var(--text-primary); text-align: right; flex-shrink: 0; }
.bar-track { flex: 1; height: 22px; background: var(--bg-tertiary); border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; font-size: 0.72rem; color: #fff; font-weight: 600; }
.bar-fill.a { background: var(--accent); }
.bar-fill.b { background: #f39c12; }
.bar-fill.c { background: #2ecc71; }

/* Related Posts */
.article-related { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--border); }
.article-related h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 14px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.related-item { display: block; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-md); font-size: 0.84rem; color: var(--text-secondary); text-decoration: none; transition: all 0.15s; }
.related-item:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 600px) {
  .article-hero h1 { font-size: 1.35rem; }
  .article-content { font-size: 0.9rem; }
  .compare-grid { grid-template-columns: 1fr; }
  .bar-label { width: 70px; font-size: 0.75rem; }
}
