/* 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 oklch(from var(--fallback-bc, oklch(0.7 0 0)) l c h / 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;
  opacity: 0.8;
  margin-bottom: 2rem;
}

/* Links */
.blog-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.blog-content a:hover {
  text-decoration: none;
  opacity: 0.8;
}

/* Text formatting */
.blog-content strong {
  font-weight: 600;
}

.blog-content em {
  font-style: italic;
}

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

.blog-content ul {
  list-style-type: disc;
}

.blog-content ol {
  list-style-type: decimal;
}

.blog-content ul ul {
  list-style-type: circle;
  margin-bottom: 0;
}

.blog-content ul ul ul {
  list-style-type: square;
}

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

.blog-content li p {
  margin-bottom: 0.5rem;
}

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

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

/* Code */
.blog-content code {
  background: oklch(from var(--fallback-b2, oklch(0.95 0 0)) l c h);
  border: 1px solid oklch(from var(--fallback-b3, oklch(0.9 0 0)) l c h);
  color: currentColor;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  font-size: 0.9rem;
}

.blog-content pre {
  background: oklch(from var(--fallback-b2, oklch(0.95 0 0)) l c h);
  border: 1px solid oklch(from var(--fallback-b3, oklch(0.9 0 0)) l c h);
  color: currentColor;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  overflow-x: auto;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
}

.blog-content pre code {
  background: none;
  padding: 0;
  border: none;
  font-size: inherit;
}

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

/* Horizontal rules */
.blog-content hr {
  border: none;
  border-top: 1px solid oklch(from var(--fallback-bc, oklch(0.7 0 0)) l c h / 0.2);
  margin: 2.5rem 0;
}

/* Tables */
.blog-content table {
  border-collapse: collapse;
  margin: 2rem 0;
  width: 100%;
  font-size: 1rem;
}

.blog-content th,
.blog-content td {
  border: 1px solid oklch(from var(--fallback-bc, oklch(0.7 0 0)) l c h / 0.2);
  padding: 0.75rem;
  text-align: left;
}

.blog-content th {
  background: oklch(from var(--fallback-b2, oklch(0.95 0 0)) l c h);
  font-weight: 600;
}

.blog-content tr:hover {
  background: oklch(from var(--fallback-b1, oklch(0.98 0 0)) l c h);
}

/* 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 oklch(from var(--fallback-bc, oklch(0.7 0 0)) l c h / 0.1);
  border-bottom: 1px solid oklch(from var(--fallback-bc, oklch(0.7 0 0)) l c h / 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;
  opacity: 0.6;
}

/* Reading time indicator */
.blog-reading-time {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  opacity: 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: oklch(from var(--fallback-b2, oklch(0.95 0 0)) l c h);
  opacity: 0.7;
  text-decoration: none;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.blog-tag:hover {
  background: oklch(from var(--fallback-b3, oklch(0.9 0 0)) l c h);
  opacity: 1;
}

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

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

.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;
  opacity: 0.7;
  margin-bottom: 1rem;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  opacity: 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;
  opacity: 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;
  }
}
