/* Article styles — apple-dev.uno */

/* Breadcrumbs */
.breadcrumbs {
  padding: 90px 20px 0;
  max-width: 800px;
  margin: 0 auto;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumbs ol li + li::before {
  content: '/';
  margin-right: 6px;
  color: var(--text-muted);
  opacity: 0.5;
}

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

.breadcrumbs ol li a:hover { color: var(--accent2); }
.breadcrumbs ol li span { color: var(--accent2); }

/* Article hero */
.article-hero {
  padding: 28px 20px 40px;
  max-width: 800px;
  margin: 0 auto;
}

.article-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.article-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.article-meta span { display: flex; align-items: center; gap: 5px; }

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

/* Article body */
.article-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.article-body h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 800;
  margin: 48px 0 16px;
  color: var(--text);
  letter-spacing: -0.01em;
}

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

.article-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--accent2);
}

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

.article-body ul, .article-body ol {
  padding-left: 0;
  margin-bottom: 24px;
  list-style: none;
}

.article-body ul li, .article-body ol li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  padding: 6px 0 6px 24px;
  position: relative;
}

.article-body ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.article-body ol {
  counter-reset: ol-counter;
}

.article-body ol li {
  counter-increment: ol-counter;
}

.article-body ol li::before {
  content: counter(ol-counter) '.';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}

/* Info box */
.article-box {
  background: rgba(236,72,153,0.08);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 28px 0;
}

.article-box p {
  margin: 0;
  font-size: 0.95rem;
}

/* Comparison table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 0.9rem;
  overflow-x: auto;
  display: block;
}

.compare-table th {
  background: rgba(236,72,153,0.12);
  color: var(--text);
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.compare-table td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(236,72,153,0.08);
  color: var(--text-muted);
  vertical-align: top;
}

.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: rgba(236,72,153,0.04); }

.tag-yes { color: #4ade80; font-weight: 600; }
.tag-no { color: #f87171; font-weight: 600; }
.tag-opt { color: var(--accent2); font-weight: 600; }

/* CTA box */
.article-cta {
  background: linear-gradient(135deg, rgba(236,72,153,0.12), rgba(244,114,182,0.06));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px;
  text-align: center;
  margin: 48px 0 32px;
}

.article-cta h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text) !important;
}

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

/* Source */
.article-source {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.article-source a {
  color: var(--accent2);
  text-decoration: none;
}

.article-source a:hover { text-decoration: underline; }

/* Related posts */
.related-posts {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.related-posts h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}

@media (max-width: 768px) {
  .breadcrumbs { padding-top: 80px; }
  .article-body h2 { margin-top: 36px; }
  .compare-table th, .compare-table td { padding: 8px 10px; font-size: 0.82rem; }
}
