/* ===== ARTICLE STYLES ===== */

.article-hero {
  padding: 110px 0 40px;
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text3);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--text3);
  transition: color .2s;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text3); }
.breadcrumb .current { color: var(--text2); }

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.article-tag {
  display: inline-block;
  background: rgba(255,59,48,0.12);
  color: var(--accent2);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 4px;
}
.article-date {
  font-size: 13px;
  color: var(--text3);
}
.article-read-time {
  font-size: 13px;
  color: var(--text3);
}

.article-hero h1 {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  max-width: 820px;
}

.article-hero .lead {
  font-size: 17px;
  color: var(--text2);
  max-width: 700px;
  line-height: 1.7;
}

.article-cover {
  height: 240px;
  background: linear-gradient(135deg, var(--card2), #1e1e1e);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  margin: 40px 0 0;
  border: 1px solid var(--border);
}

/* Article body */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  padding: 56px 0 80px;
  align-items: start;
}

.article-body {
  min-width: 0;
}

.article-body h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 40px 0 14px;
  line-height: 1.3;
  color: var(--text);
}
.article-body h2:first-child { margin-top: 0; }

.article-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 10px;
  color: var(--text);
}

.article-body p {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 18px;
}

.article-body ul,
.article-body ol {
  padding-left: 22px;
  margin-bottom: 18px;
}
.article-body li {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 6px;
}

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

.article-body a {
  color: var(--accent2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-body a:hover { color: var(--accent); }

.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 14px 20px;
  margin: 24px 0;
  background: rgba(255,59,48,0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 16px;
  color: var(--text2);
  font-style: italic;
  line-height: 1.7;
}

.info-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 15px;
  color: var(--text2);
  line-height: 1.7;
}
.info-box strong { color: var(--text); }

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.comparison-table th {
  background: var(--card2);
  color: var(--text);
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  border: 1px solid var(--border);
}
.comparison-table td {
  padding: 10px 16px;
  border: 1px solid var(--border);
  color: var(--text2);
  vertical-align: top;
}
.comparison-table tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
.comparison-table .yes { color: #4CD964; font-weight: 600; }
.comparison-table .no { color: var(--text3); }

/* Article source */
.article-source {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text3);
}
.article-source a {
  color: var(--accent2);
  text-decoration: none;
}
.article-source a:hover { color: var(--accent); }

/* Sidebar */
.article-sidebar {
  position: sticky;
  top: 84px;
}

.sidebar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.sidebar-card h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text3);
  margin-bottom: 14px;
}

.toc-list {
  list-style: none;
  padding: 0;
}
.toc-list li {
  margin-bottom: 6px;
}
.toc-list a {
  font-size: 13px;
  color: var(--text2);
  transition: color .2s;
  display: block;
  padding: 2px 0;
}
.toc-list a:hover { color: var(--accent); }

.sidebar-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.sidebar-cta p {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 14px;
  line-height: 1.5;
}
.sidebar-cta .btn-primary {
  width: 100%;
  justify-content: center;
  background: rgba(0,0,0,0.25);
  box-shadow: none;
  font-size: 14px;
  padding: 11px 16px;
}
.sidebar-cta .btn-primary:hover { background: rgba(0,0,0,0.4); transform: none; }

.related-list {
  list-style: none;
  padding: 0;
}
.related-list li { margin-bottom: 10px; }
.related-list a {
  font-size: 13px;
  color: var(--text2);
  transition: color .2s;
  line-height: 1.4;
  display: block;
}
.related-list a:hover { color: var(--accent); }

/* Back to blog */
.back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text2);
  margin-top: 40px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 50px;
  transition: color .2s, border-color .2s;
}
.back-to-blog:hover { color: var(--text); border-color: var(--accent); }

/* Responsive */
@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar { position: static; }
}

@media (max-width: 600px) {
  .article-hero { padding: 96px 0 32px; }
  .article-cover { height: 160px; font-size: 52px; }
  .comparison-table { font-size: 13px; }
  .comparison-table th,
  .comparison-table td { padding: 8px 10px; }
}
