/**
 * Bengal SSG Default Theme
 * Article/Post Page Styles
 */

/* ============================================
   ARTICLE CONTAINER
   ============================================ */

.article,
.post,
.page {
  max-width: var(--prose-width);
  margin: 0 auto;
}

/* ============================================
   ARTICLE HEADER
   ============================================ */

.article-header,
.post-header,
.page-header {
  margin-bottom: var(--space-10);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.article-header h1,
.post-header h1,
.page-header h1 {
  margin: 0 0 var(--space-4) 0;
  font-size: var(--text-4xl);
  font-weight: var(--font-extrabold);
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
}

/* ============================================
   ARTICLE META
   ============================================ */

.article-meta,
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.article-meta time,
.post-meta time {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.article-meta .author,
.post-meta .author {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
}

.reading-time {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* ============================================
   DOCS META (Minimal Design)
   ============================================ */

.docs-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}

.docs-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-tertiary);
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.docs-meta-item:hover {
  opacity: 1;
}

.docs-meta-item svg {
  flex-shrink: 0;
  opacity: 0.6;
}

/* ============================================
   ARTICLE CONTENT
   ============================================ */

.article-content,
.post-content,
.page-content {
  margin: var(--space-8) 0;
}

/* ============================================
   ARTICLE FOOTER
   ============================================ */

.article-footer,
.post-footer,
.page-footer {
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

/* ============================================
   ARTICLE NAVIGATION
   ============================================ */

.article-nav {
  display: grid;
  gap: var(--space-4);
  margin: var(--space-12) 0;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .article-nav {
    grid-template-columns: 1fr 1fr;
  }
}

.article-nav-link {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-base) var(--ease-out);
}

.article-nav-link:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.article-nav-link-label {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.article-nav-link-title {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
}

/* ============================================
   RELATED ARTICLES
   ============================================ */

.related-articles {
  margin: var(--space-16) 0;
}

.related-articles-title {
  margin: 0 0 var(--space-6) 0;
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-text-primary);
}

.related-articles-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .related-articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .related-articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   AUTHOR BIO
   ============================================ */

.author-bio {
  display: flex;
  gap: var(--space-6);
  padding: var(--space-6);
  background-color: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  margin: var(--space-12) 0;
}

.author-bio-avatar {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
}

.author-bio-content h3 {
  margin: 0 0 var(--space-2) 0;
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-text-primary);
}

.author-bio-content p {
  margin: 0;
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* ============================================
   SHARE BUTTONS
   ============================================ */

.share-buttons {
  display: flex;
  gap: var(--space-3);
  margin: var(--space-6) 0;
}

.share-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-text-inverse);
  background-color: var(--color-text-muted);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast) var(--ease-out);
}

.share-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.share-button.twitter { background-color: #1da1f2; }
.share-button.facebook { background-color: #1877f2; }
.share-button.linkedin { background-color: #0077b5; }
.share-button.reddit { background-color: #ff4500; }
