/* ============================================
   PDF Scan & Convert Pro — Article Styles
   ============================================ */

/* Breadcrumbs */
.breadcrumbs {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumbs li a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.breadcrumbs li:last-child { color: var(--text-secondary); }

.breadcrumbs .sep {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Article Hero */
.article-hero {
  padding: 60px 0 48px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.article-tag {
  display: inline-block;
  background: rgba(239,68,68,0.1);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.article-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article-read-time {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.article-hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.article-hero .lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 720px;
  line-height: 1.7;
}

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

/* Article Body */
.article-body {
  min-width: 0;
}

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 48px 0 16px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  line-height: 1.3;
}

.article-body h2:first-child {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.article-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 32px 0 12px;
}

.article-body p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }

.article-body ul li,
.article-body ol li {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 8px;
}

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

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

.article-body a:hover { opacity: 0.8; }

/* Callout box */
.callout {
  background: rgba(239,68,68,0.07);
  border: 1px solid rgba(239,68,68,0.2);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin: 32px 0;
}

.callout p {
  margin: 0;
  font-size: 0.96rem;
}

.callout-title {
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px !important;
  font-size: 0.85rem !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Step boxes */
.step-box {
  display: flex;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin: 20px 0;
  align-items: flex-start;
}

.step-box-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
}

.step-box-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.step-box-content p {
  margin: 0;
  font-size: 0.93rem;
}

/* Comparison table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 0.93rem;
}

.compare-table th {
  background: rgba(239,68,68,0.1);
  color: var(--text-primary);
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid rgba(239,68,68,0.3);
}

.compare-table td {
  padding: 12px 16px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.compare-table tr:hover td {
  background: rgba(255,255,255,0.02);
}

.compare-table .check { color: #22c55e; font-weight: 700; }
.compare-table .cross { color: var(--accent); font-weight: 700; }

/* Article CTA */
.article-cta {
  background: var(--bg-card);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  margin: 48px 0;
}

.article-cta h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.article-cta p {
  margin-bottom: 20px;
  font-size: 0.95rem;
}

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

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
}

.sidebar-card h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toc-list a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.4;
  display: block;
}

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

.sidebar-app {
  text-align: center;
}

.sidebar-app img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin: 0 auto 16px;
  box-shadow: 0 8px 24px rgba(239,68,68,0.25);
}

.sidebar-app p {
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.sidebar-app .appstore-btn {
  width: 100%;
  justify-content: center;
  font-size: 0.82rem;
  padding: 10px 16px;
}

/* Related articles */
.related-posts { padding: 48px 0; background: var(--bg-secondary); }
.related-posts .section-header { margin-bottom: 36px; }
.related-posts .blog-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Share bar */
.article-share {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  margin-top: 32px;
}

.article-share span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
}

.share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Responsive */
@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0;
  }

  .article-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .article-hero { padding: 40px 0 32px; }
  .article-hero h1 { font-size: 1.6rem; }
  .article-body h2 { font-size: 1.25rem; margin: 36px 0 12px; }
  .article-body h3 { font-size: 1.05rem; }
  .article-sidebar { grid-template-columns: 1fr; }
  .step-box { flex-direction: column; gap: 12px; }
  .compare-table { font-size: 0.82rem; }
  .compare-table th, .compare-table td { padding: 10px 12px; }
  .article-cta { padding: 24px 20px; }
  .sidebar-card { padding: 20px; }
}
