/* ================================================
   Article page styles — appledeveloper.fun
   ================================================ */

.article-hero {
  padding: 120px 24px 48px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(16,185,129,0.05) 0%, transparent 100%);
}

.article-hero .container { max-width: 800px; }

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

.article-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  background: rgba(16,185,129,0.1);
  padding: 4px 12px;
  border-radius: 50px;
}

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

.article-read-time {
  font-size: 13px;
  color: var(--text-muted);
}

.article-hero h1 {
  font-size: clamp(26px, 4.5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -.5px;
}

.article-hero .lead {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 680px;
}

/* Article body */
.article-body {
  padding: 56px 24px 80px;
}

.article-body .container {
  max-width: 800px;
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 48px;
  align-items: start;
}

.article-content h2 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  margin: 40px 0 14px;
  color: var(--text);
  letter-spacing: -.3px;
}
.article-content h2:first-child { margin-top: 0; }

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

.article-content p {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(240,255,244,0.85);
  margin-bottom: 18px;
}

.article-content ul,
.article-content ol {
  padding-left: 22px;
  margin-bottom: 18px;
}

.article-content li {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(240,255,244,0.85);
  margin-bottom: 6px;
}

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

.article-content .highlight-box {
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.25);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 20px 22px;
  margin: 28px 0;
}
.article-content .highlight-box p {
  margin: 0;
  font-size: 15px;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  border-radius: 10px;
  overflow: hidden;
}
.article-content th {
  background: rgba(16,185,129,0.15);
  color: var(--accent2);
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.article-content td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: rgba(240,255,244,0.8);
  background: var(--bg2);
}
.article-content tr:last-child td { border-bottom: none; }

.article-source {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}
.article-source a { color: var(--accent); }

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

.sidebar-cta {
  background: linear-gradient(135deg, rgba(16,185,129,0.1), var(--bg2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.sidebar-cta h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
}
.sidebar-cta p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}
.sidebar-cta .btn { width: 100%; justify-content: center; font-size: 14px; padding: 11px 16px; }

.sidebar-related {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.sidebar-related h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.sidebar-related ul { list-style: none; }
.sidebar-related ul li { margin-bottom: 10px; }
.sidebar-related ul li a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color .2s;
  line-height: 1.4;
  display: block;
}
.sidebar-related ul li a:hover { color: var(--accent); }

/* Related articles section */
.related-section {
  padding: 60px 24px 80px;
  background: var(--bg3);
  border-top: 1px solid var(--border);
}

/* Breadcrumb */
.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb span { color: var(--text-muted); }

/* Responsive */
@media (max-width: 768px) {
  .article-body .container {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
    order: -1;
  }
  .sidebar-cta { display: block; }
}
