/* ============================================================
   KitchUp — Blog Styles
   ============================================================ */

/* ----- Blog Page Layout ----- */

.blog-page {
  padding-top: 8rem;
  min-height: 100vh;
}

/* ----- Blog Header ----- */

.blog-header {
  text-align: center;
  padding: 2rem 0 3rem;
  max-width: 40rem;
  margin: 0 auto;
}

.blog-header h1 {
  margin-bottom: 0.75rem;
}

.blog-header p {
  font-size: 1.0625rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* ----- Blog Section ----- */

.blog-section {
  padding: 2rem 0;
}

.blog-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.blog-section-header h2 {
  font-size: 1.5rem;
}

.blog-section-header a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.blog-section-header a:hover {
  gap: 0.5rem;
}

/* ----- Blog Grid ----- */

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

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

/* ----- Blog Card enhancements (blog page specifics) ----- */

.blog-page .blog-card {
  height: 100%;
}

.blog-page .blog-card:hover {
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   Article Page
   ============================================================ */

.article-page {
  padding-top: 8rem;
  min-height: 100vh;
}

/* ----- Article Header ----- */

.article-header {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem 0;
  text-align: center;
}

.article-header .category-badge {
  margin-bottom: 1rem;
}

.article-header h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .article-header h1 {
    font-size: 2.5rem;
  }
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.article-meta .meta-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--border);
}

/* ----- Article Featured Image ----- */

.article-featured-image {
  max-width: 48rem;
  margin: 0 auto 2rem;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--muted);
}

.article-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ----- Article Content ----- */

.article-content {
  max-width: 48rem;
  margin: 0 auto;
  padding-bottom: 3rem;
}

/* ----- Article Tags ----- */

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  max-width: 48rem;
  margin: 0 auto;
}

.article-tags .tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted-foreground);
  background-color: var(--muted);
  border-radius: 9999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.article-tags .tag:hover {
  color: var(--primary);
  background-color: rgba(212, 54, 27, 0.08);
}

/* ----- Share Buttons ----- */

.share-buttons {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 1.5rem 0;
  max-width: 48rem;
  margin: 0 auto;
}

.share-buttons span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  margin-right: 0.25rem;
}

.share-buttons .share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  background-color: var(--background);
  transition: all 0.2s ease;
}

.share-buttons .share-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  background-color: rgba(212, 54, 27, 0.05);
}

.share-buttons .share-btn svg {
  width: 1rem;
  height: 1rem;
}

/* ----- Related Posts ----- */

.related-posts {
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--border);
}

.related-posts h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.related-posts .blog-grid {
  grid-template-columns: 1fr;
}

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

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

/* ----- Blog Empty State ----- */

.blog-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem;
  min-height: 40vh;
}

.blog-empty .empty-icon {
  width: 4rem;
  height: 4rem;
  color: var(--muted-foreground);
  margin-bottom: 1.25rem;
  opacity: 0.5;
}

.blog-empty h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.blog-empty p {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  max-width: 24rem;
}
