/* ============================================================
   Article / Blog Post Styles — appledeveloper.website
   ============================================================ */

/* ── Breadcrumbs ── */
.breadcrumbs {
  padding: 88px 24px 0;
  max-width: 860px;
  margin: 0 auto;
}

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

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

.breadcrumbs nav span {
  color: rgba(134,239,172,0.35);
}

.breadcrumbs nav .current {
  color: var(--accent2);
}

/* ── Article Hero ── */
.article-hero {
  padding: 24px 24px 48px;
  max-width: 860px;
  margin: 0 auto;
}

.article-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(5,150,105,0.12);
  border: 1px solid rgba(5,150,105,0.25);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 18px;
}

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

.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.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: 18px;
  margin-bottom: 0;
}

/* ── Article Body ── */
.article-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

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

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

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

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

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

.article-body ul li {
  position: relative;
  padding-left: 22px;
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 8px;
}

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

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

.article-body ol li {
  position: relative;
  padding-left: 32px;
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 10px;
  counter-increment: ol-counter;
}

.article-body ol li::before {
  content: counter(ol-counter) ".";
  position: absolute;
  left: 0;
  color: var(--accent2);
  font-weight: 700;
}

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

/* ── Info Box ── */
.info-box {
  background: rgba(5,150,105,0.08);
  border: 1px solid rgba(5,150,105,0.25);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0;
}

.info-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(5,150,105,0.15);
  color: var(--accent2);
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid var(--accent);
  white-space: nowrap;
}

.compare-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
}

.compare-table tr:hover td {
  background: rgba(5,150,105,0.04);
}

/* ── GEO Cards ── */
.geo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.geo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  transition: border-color 0.2s;
}
.geo-card:hover { border-color: var(--accent); }

.geo-card .flag { font-size: 1.5rem; margin-bottom: 6px; }
.geo-card h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.geo-card p { font-size: 0.82rem; color: var(--text-muted); margin: 0; }

/* ── Source Block ── */
.article-source {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  margin: 40px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.article-source a {
  color: var(--accent2);
  font-weight: 600;
  transition: opacity 0.2s;
}
.article-source a:hover { opacity: 0.7; }

/* ── CTA inside article ── */
.article-cta {
  background: var(--bg-card2);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  margin: 40px 0;
}

.article-cta h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.article-cta p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* ── Related posts ── */
.related-posts {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.related-posts h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .breadcrumbs { padding-top: 80px; }
  .article-hero h1 { font-size: 1.7rem; }
  .article-body { padding-bottom: 48px; }
  .compare-table th, .compare-table td { padding: 8px 10px; font-size: 0.82rem; }
}
