/* Article page styles */
.article-page { background: var(--bg-light); }
.article-header { background: linear-gradient(135deg, var(--accent), #264d78); color: #fff; padding: 44px 0; }
.article-header h1 { color: #fff; font-size: 2.2rem; line-height: 1.2; margin-bottom: 16px; }
.article-meta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.article-category-badge { background: var(--primary); color: #fff; padding: 4px 12px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.article-date, .article-reading { color: rgba(255,255,255,0.8); font-size: 0.87rem; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

.article-body { padding: 56px 0; }
.article-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; }
.article-main { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; border: 1px solid var(--border); }
.article-featured-image { width: 100%; height: 380px; object-fit: cover; }
.article-content { padding: 40px; }

.article-content .lead { font-size: 1.18rem; line-height: 1.8; color: var(--text-light); margin-bottom: 28px; font-weight: 400; }
.article-content h2 { color: var(--text); margin: 32px 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--border); font-size: 1.5rem; }
.article-content h2:first-of-type { margin-top: 0; }
.article-content h3 { color: var(--text); margin: 24px 0 12px; font-size: 1.2rem; }
.article-content p { margin-bottom: 18px; line-height: 1.85; }
.article-content ul, .article-content ol { margin-bottom: 20px; padding-left: 24px; }
.article-content li { margin-bottom: 8px; line-height: 1.7; }
.article-content strong { font-weight: 700; color: var(--text); }

.info-box { background: #eff6ff; border-left: 4px solid var(--primary); padding: 20px 24px; border-radius: 0 8px 8px 0; margin: 24px 0; }
.info-box h4 { color: var(--primary); margin: 0 0 10px; font-size: 1rem; }
.info-box p { margin: 0; font-size: 0.93rem; }
.warning-box { background: #fff8e6; border-left: 4px solid #f59e0b; padding: 20px 24px; border-radius: 0 8px 8px 0; margin: 24px 0; }
.warning-box h4 { color: #b45309; margin: 0 0 10px; font-size: 1rem; }
.warning-box p { margin: 0; font-size: 0.93rem; }
.stat-box { background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin: 24px 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; text-align: center; }
.stat-box .stat { }
.stat-box .num { font-size: 1.8rem; font-weight: 800; color: var(--primary); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.stat-box .lbl { font-size: 0.78rem; color: var(--text-light); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

.article-tags { padding: 20px 40px; border-top: 1px solid var(--border); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.article-tags strong { font-size: 0.87rem; color: var(--text); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.tag { display: inline-block; background: var(--bg-light); color: var(--text); padding: 5px 12px; border-radius: 4px; font-size: 0.8rem; font-weight: 500; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; border: 1px solid var(--border); transition: var(--transition); }
.tag:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.article-sidebar { position: sticky; top: 90px; align-self: start; }
.sidebar-box { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); margin-bottom: 24px; }
.sidebar-box h3 { font-size: 1rem; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.related-list { list-style: none; padding: 0; margin: 0; }
.related-list li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.related-list li:last-child { border-bottom: none; padding-bottom: 0; }
.related-list a { color: var(--text); font-size: 0.88rem; font-weight: 500; line-height: 1.35; }
.related-list a:hover { color: var(--primary); }
.related-cat { display: block; color: var(--primary); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 3px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

.author-box { display: flex; gap: 14px; align-items: flex-start; }
.author-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 700; flex-shrink: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.author-info h4 { font-size: 0.95rem; margin-bottom: 2px; }
.author-info p { font-size: 0.8rem; color: var(--text-light); margin: 0; }

@media (max-width: 1024px) {
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { position: static; }
}
@media (max-width: 768px) {
    .article-header h1 { font-size: 1.75rem; }
    .article-featured-image { height: 240px; }
    .article-content { padding: 24px 18px; }
    .article-tags { padding: 16px 18px; }
    .stat-box { grid-template-columns: 1fr 1fr; }
}
