/* Shared styles for article pages */

.article-page {
  padding-top: 80px;
}

.article-hero {
  padding: 60px 0 40px;
  background: var(--bg-off);
  text-align: center;
}

.article-hero .breadcrumb {
  margin-bottom: 24px;
}

.article-hero .article-category {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 100px;
  background: var(--gradient-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
}

.article-hero h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 900;
  line-height: 1.3;
  max-width: 800px;
  margin: 0 auto 24px;
}

.article-hero .lead {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 32px;
  line-height: 1.8;
}

.article-author-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-muted);
}

.article-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-author .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
}

.article-author .info { text-align: right; }
.article-author .info strong { color: var(--text-primary); display: block; font-size: 15px; }
.article-author .info span { font-size: 12px; }

.article-hero-img {
  max-width: 700px;
  margin: 40px auto 0;
  border-radius: var(--radius-xl);
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.article-hero-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.15) 0%, transparent 60%);
}

.article-hero-img svg {
  position: relative;
  z-index: 1;
  width: 50%;
  max-width: 240px;
}

.article-content {
  padding: 60px 0 80px;
}

.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  font-size: 17px;
  line-height: 2;
  color: var(--text-secondary);
}

.article-body h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 48px 0 16px;
  line-height: 1.4;
}

.article-body h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 36px 0 12px;
}

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

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

.article-body li {
  margin-bottom: 12px;
  line-height: 1.9;
}

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

.article-body blockquote {
  border-right: 4px solid var(--blue);
  background: var(--gradient-soft);
  padding: 24px 28px;
  margin: 32px 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 18px;
  color: var(--text-primary);
  font-weight: 500;
}

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

.tip-box {
  background: var(--gradient-soft);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin: 32px 0;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.tip-box .tip-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.tip-box h4 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.tip-box p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.warning-box {
  background: #FFF5F5;
  border: 1px solid #FED7D7;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 32px 0;
}

.warning-box h4 {
  color: #C53030;
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.warning-box p { color: #744210; margin-bottom: 0; font-size: 15px; }

/* CTA at end of article */
.article-cta {
  background: var(--gradient);
  color: white;
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  text-align: center;
  margin: 60px auto;
  max-width: 760px;
}

.article-cta h3 {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 12px;
}

.article-cta p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.article-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Related articles */
.related-section {
  background: var(--bg-off);
  padding: 60px 0;
}

.related-section h2 {
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .article-hero { padding: 40px 0 30px; }
  .article-body { font-size: 16px; }
  .article-body h2 { font-size: 24px; }
  .article-cta { padding: 32px 24px; }
}
