/* Blog Theme Overrides - Modern, spacious design for blog content */

/* Blog Post Cards */
.blog-post-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-post-card:hover {
  transform: translateY(-2px);
}

/* Blog Content Typography - Larger, more spacious */
.blog-content {
  font-size: 1.125rem;
  line-height: 1.8;
}

.blog-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.blog-content h1:first-child {
  margin-top: 0;
}

.blog-content h2 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid hsl(var(--bc) / 0.1);
  letter-spacing: -0.01em;
}

.blog-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.blog-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Paragraphs */
.blog-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.blog-content p:last-child {
  margin-bottom: 0;
}

/* Lead paragraph */
.blog-content .lead {
  font-size: 1.25rem;
  line-height: 1.7;
  color: hsl(var(--bc) / 0.8);
  margin-bottom: 2rem;
}

/* Lists */
.blog-content ul,
.blog-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.blog-content li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

/* Blockquotes - More prominent */
.blog-content blockquote {
  border-left: 4px solid hsl(var(--p));
  padding-left: 1.5rem;
  margin: 2rem 0;
  color: hsl(var(--bc) / 0.8);
  font-style: italic;
  font-size: 1.15rem;
}

.blog-content blockquote p {
  margin: 0.75rem 0;
}

/* Code blocks */
.blog-content pre {
  background: hsl(var(--b2));
  border: 1px solid hsl(var(--b3));
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Images - Full width with rounded corners */
.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
}

/* Featured image */
.blog-featured-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 2rem;
}

/* Author byline */
.blog-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid hsl(var(--bc) / 0.1);
  border-bottom: 1px solid hsl(var(--bc) / 0.1);
  margin: 2rem 0;
}

.blog-author-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  overflow: hidden;
}

.blog-author-info {
  flex: 1;
}

.blog-author-name {
  font-weight: 600;
  font-size: 1rem;
}

.blog-author-meta {
  font-size: 0.875rem;
  color: hsl(var(--bc) / 0.6);
}

/* Reading time indicator */
.blog-reading-time {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--bc) / 0.6);
}

/* Tags */
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.blog-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  background: hsl(var(--b2));
  color: hsl(var(--bc) / 0.7);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.blog-tag:hover {
  background: hsl(var(--b3));
  color: hsl(var(--bc));
}

/* Post preview cards */
.blog-post-preview {
  display: block;
  text-decoration: none;
  color: inherit;
}

.blog-post-preview:hover .blog-post-title {
  color: hsl(var(--p));
}

.blog-post-title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.blog-post-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: hsl(var(--bc) / 0.7);
  margin-bottom: 1rem;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: hsl(var(--bc) / 0.6);
}

/* Hero section for blog homepage */
.blog-hero {
  text-align: center;
  padding: 4rem 0 3rem;
}

.blog-hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.blog-hero-description {
  font-size: 1.25rem;
  line-height: 1.6;
  color: hsl(var(--bc) / 0.7);
  max-width: 42rem;
  margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .blog-content {
    font-size: 1.0625rem;
  }

  .blog-content h1 {
    font-size: 2rem;
  }

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

  .blog-hero-title {
    font-size: 2rem;
  }

  .blog-hero-description {
    font-size: 1.125rem;
  }
}
