/* Professional typography for blog post content */

.blog-post-content {
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
}

.blog-post-content p {
  margin: 0 0 1rem 0;
  /* Neutralize theme rules that add separators under paragraphs in this section */
  border: none !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.blog-post-content h3,
.blog-post-content h4 {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.blog-post-content .post-hero {
  margin: 0 0 1.25rem 0;
}

.blog-post-content .post-hero img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* Remove horizontal rules inside post content area */
.blog-post-content hr {
  display: none !important;
  border: 0 !important;
}

/* Make images and iframes responsive within content */
.blog-post-content img,
.blog-post-content iframe {
  max-width: 100%;
  height: auto;
}

/* Code blocks inside posts */
.blog-post-content pre,
.blog-post-content code {
  background: rgba(0,0,0,0.04);
  border-radius: 6px;
}

.blog-post-content pre {
  padding: 0.75rem 1rem;
  overflow: auto;
}

/* Dark mode tweaks piggyback on dark-mode.css colors */
@media (prefers-color-scheme: dark) {
  .blog-post-content pre,
  .blog-post-content code {
    background: rgba(255,255,255,0.06);
  }
  .blog-post-content .post-hero img {
    box-shadow: 0 2px 16px rgba(0,0,0,0.5);
  }
}

/* Blog list and meta enhancements */
.meta-chip {
  background: #f3f5f9;
  border: 1px solid #e3e8f0;
  font-weight: 500;
}

.card {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover {
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  transform: translateY(-1px);
}

/* Make blog list excerpts comfortable */
.card .card-text {
  color: #444;
}

/* Responsive title spacing */
.card .card-title {
  margin-bottom: 0.25rem;
}

@media (prefers-color-scheme: dark) {
  .meta-chip {
    background: #1e2430 !important;
    border-color: #2a2f3a !important;
    color: #e6e6e6 !important;
  }
  .card .card-text {
    color: #c9d1d9;
  }
}
