/* ============================================
   appledev.space — Article / Blog Post Styles
   ============================================ */

/* Breadcrumbs */
.breadcrumb {
  padding: calc(var(--header-h) + 24px) 24px 0;
  max-width: 860px;
  margin: 0 auto;
}

.breadcrumb nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--text-dim);
}

.breadcrumb nav a {
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.breadcrumb nav span.sep {
  color: var(--text-dim);
}

.breadcrumb nav span.current {
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

/* Article layout */
.article-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

/* Article header */
.article-header {
  margin-bottom: 40px;
}

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

.article-cat {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  background: rgba(107,107,245,0.12);
  border-radius: 50px;
  color: #A78BFA;
}

.article-date {
  font-size: 13px;
  color: var(--text-dim);
}

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

.article-header h1 {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.article-intro {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin-bottom: 0;
}

/* Article divider */
.article-divider {
  border: none;
  border-top: 1px solid var(--border-card);
  margin: 40px 0;
}

/* Article body */
.article-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
}

.article-body h2 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 48px 0 16px;
  line-height: 1.25;
}

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

.article-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 32px 0 12px;
}

.article-body p {
  margin-bottom: 20px;
}

.article-body p:last-child { margin-bottom: 0; }

.article-body ul {
  margin: 0 0 24px 0;
}

.article-body ul { list-style: none; padding-left: 0; }

.article-body ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
}

.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.article-body ol {
  padding-left: 24px;
  list-style: decimal;
}

.article-body ol li {
  padding-left: 8px;
  margin-bottom: 12px;
}

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

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(107,107,245,0.4);
  transition: color 0.2s;
}

.article-body a:hover { color: var(--accent-end); }

/* Info box */
.article-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 32px 0;
}

.article-box.warning {
  border-color: rgba(251,191,36,0.3);
  background: rgba(251,191,36,0.05);
}

.article-box .box-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-box p { margin-bottom: 0; font-size: 15px; }

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

.compare-table th {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  color: var(--text);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.compare-table td {
  border: 1px solid var(--border-card);
  padding: 14px 18px;
  color: var(--text-muted);
  vertical-align: top;
}

.compare-table tr:hover td {
  background: rgba(107,107,245,0.03);
}

.compare-table .check { color: #6B6BF5; font-weight: 600; }
.compare-table .cross { color: var(--text-dim); }

/* CTA block */
.article-cta {
  background: linear-gradient(135deg, rgba(107,107,245,0.12), rgba(167,139,250,0.06));
  border: 1px solid rgba(107,107,245,0.25);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  margin: 56px 0 40px;
}

.article-cta h3 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: var(--text);
}

.article-cta p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto 28px;
  line-height: 1.65;
}

.article-cta .btn-primary {
  font-size: 16px;
  padding: 16px 40px;
}

/* Source */
.article-source {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border-card);
}

.article-source a {
  color: var(--text-muted);
  transition: color 0.2s;
}

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

/* Back button */
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 10px 20px;
  border: 1px solid var(--border-card);
  border-radius: 50px;
  transition: all 0.2s;
  margin-top: 40px;
}

.article-back:hover {
  border-color: var(--border);
  color: var(--text);
  transform: translateX(-2px);
}

/* Blog card improvements */
.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-end));
  padding: 9px 20px;
  border-radius: 50px;
  transition: opacity 0.2s, transform 0.15s;
  margin-top: auto;
}

.blog-card-link:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .article-wrap { padding: 24px 20px 60px; }
  .breadcrumb { padding-top: calc(var(--header-h) + 16px); padding-left: 20px; padding-right: 20px; }
  .article-cta { padding: 28px 20px; }
  .compare-table { font-size: 13px; }
  .compare-table th, .compare-table td { padding: 10px 12px; }
}
