/* Blog Post Styling */

/* Article Hero */
.article-hero {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, var(--plum) 0%, var(--terracotta) 100%);
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
}

.article-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.85) 0%, rgba(217, 119, 87, 0.85) 100%);
  pointer-events: none;
}

.article-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.article-hero .wrap {
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.article-hero .article-category {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ivory);
  margin-bottom: 20px;
}

.article-hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  color: var(--ivory);
  margin-bottom: 24px;
}

.article-hero .article-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  flex-wrap: wrap;
}

.article-hero .article-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-hero .article-meta-item svg {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}

/* Article Content */
.article-content {
  padding: 80px 0;
}

.article-content .wrap {
  max-width: 760px;
}

.article-body {
  font-size: 18px;
  line-height: 1.8;
  color: var(--foreground);
}

.article-body h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.3;
  margin-top: 48px;
  margin-bottom: 20px;
  color: var(--foreground);
}

.article-body h3 {
  font-family: 'Fraunces', serif;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.4;
  margin-top: 36px;
  margin-bottom: 16px;
  color: var(--foreground);
}

.article-body h4 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--foreground);
}

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

.article-body p:first-child {
  font-size: 21px;
  line-height: 1.7;
  color: var(--muted-foreground);
}

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

.article-body em {
  font-style: italic;
}

.article-body a {
  color: var(--plum);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: all 0.2s ease;
}

.article-body a:hover {
  color: var(--terracotta);
  text-decoration-thickness: 2px;
}

/* Lists */
.article-body ul,
.article-body ol {
  margin: 24px 0;
  padding-left: 28px;
}

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

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

.article-body ul li::before {
  content: '→';
  position: absolute;
  left: -16px;
  color: var(--plum);
  font-weight: 600;
}

.article-body ol {
  list-style: decimal;
}

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

.article-body ol li::marker {
  color: var(--plum);
  font-weight: 600;
}

/* Blockquotes */
.article-body blockquote {
  margin: 40px 0;
  padding: 24px 32px;
  background: var(--muted);
  border-left: 4px solid var(--plum);
  border-radius: 0 8px 8px 0;
}

.article-body blockquote p {
  font-size: 20px;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 0;
  color: var(--foreground);
}

.article-body blockquote cite {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  font-style: normal;
  color: var(--muted-foreground);
}

/* Code Blocks */
.article-body pre {
  margin: 32px 0;
  padding: 24px;
  background: var(--muted);
  border-radius: 8px;
  overflow-x: auto;
  border: 1px solid var(--border);
}

.article-body code {
  font-family: 'Courier New', monospace;
  font-size: 15px;
  line-height: 1.6;
  color: var(--foreground);
}

.article-body p code,
.article-body li code {
  padding: 2px 8px;
  background: var(--muted);
  border-radius: 4px;
  font-size: 16px;
  border: 1px solid var(--border);
}

/* Images */
.article-body img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 40px 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.article-body figure {
  margin: 40px 0;
}

.article-body figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
  color: var(--muted-foreground);
  font-style: italic;
}

/* Horizontal Rule */
.article-body hr {
  margin: 48px 0;
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* Key Takeaways Box */
.key-takeaways {
  margin: 48px 0;
  padding: 32px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(217, 119, 87, 0.05) 100%);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.key-takeaways h3 {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  margin-top: 0 !important;
  margin-bottom: 20px !important;
  color: var(--plum);
}

.key-takeaways ul {
  margin: 0;
}

/* Tags Section */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.article-tag {
  display: inline-block;
  padding: 8px 18px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(217, 119, 87, 0.08) 100%);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--plum);
  transition: all 0.3s ease;
}

.article-tag:hover {
  background: linear-gradient(135deg, var(--plum) 0%, var(--terracotta) 100%);
  border-color: transparent;
  color: var(--ivory);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

/* Author Section */
.article-author {
  margin-top: 64px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.04) 0%, rgba(217, 119, 87, 0.04) 100%);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 16px;
  display: flex;
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.article-author::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--plum), var(--terracotta));
}

.article-author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--plum), var(--terracotta));
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ivory);
  font-size: 32px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.25);
}

.article-author-info h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: var(--foreground);
}

.article-author-info p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* Bottom Navigation */
.article-bottom-nav {
  margin-top: 64px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.03) 0%, rgba(217, 119, 87, 0.03) 100%);
  border: 1px solid rgba(139, 92, 246, 0.1);
  border-radius: 12px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

/* CTA Section */
.article-cta-section {
  margin-top: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .article-hero {
    padding: 120px 0 40px;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
  }

  .article-hero h1 {
    font-size: 32px;
  }

  .article-content {
    padding: 48px 0;
  }

  .article-body {
    font-size: 17px;
  }

  .article-body h2 {
    font-size: 28px;
    margin-top: 36px;
  }

  .article-body h3 {
    font-size: 22px;
    margin-top: 28px;
  }

  .article-body blockquote {
    padding: 20px 24px;
  }

  .article-body blockquote p {
    font-size: 18px;
  }

  .article-author {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  .article-bottom-nav {
    padding: 24px;
    justify-content: center;
  }

  .key-takeaways {
    padding: 24px;
  }
}
