/* ===============================================
   NavEd Blog Content Styling
   ===============================================
   Prose-style formatting for blog post content
   Uses NavEd design system colors
   =============================================== */

/* Container */
.blog-content {
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}

/* Typography - Headings */
.blog-content h1 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: oklch(32% 0.06 250); /* secondary */
}

.blog-content h2 {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: oklch(32% 0.06 250); /* secondary */
}

.blog-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: oklch(32% 0.06 250); /* secondary */
}

.blog-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: oklch(32% 0.06 250); /* secondary */
}

.blog-content h5,
.blog-content h6 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: oklch(32% 0.06 250); /* secondary */
}

/* Typography - Paragraphs */
.blog-content p {
  margin-bottom: 1.25rem;
  line-height: 1.75;
  color: oklch(var(--bc) / 0.9);
}

/* Links */
.blog-content a {
  color: oklch(52% 0.12 195); /* primary */
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.blog-content a:hover {
  color: oklch(45% 0.12 195); /* darker primary */
}

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

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

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

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

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

/* Code blocks */
.blog-content code {
  background-color: oklch(25% 0.02 250); /* dark background */
  color: oklch(85% 0.05 180); /* light text */
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
}

.blog-content pre {
  background-color: oklch(25% 0.02 250); /* dark background */
  color: oklch(85% 0.05 180); /* light text */
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}

.blog-content pre code {
  background-color: transparent;
  padding: 0;
  color: inherit;
}

/* Blockquotes */
.blog-content blockquote {
  border-left: 4px solid oklch(52% 0.12 195); /* primary */
  padding-left: 1rem;
  margin-left: 0;
  margin-bottom: 1.25rem;
  font-style: italic;
  color: oklch(var(--bc) / 0.7);
}

/* Tables */
.blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25rem;
  overflow-x: auto;
  display: block;
}

.blog-content thead {
  background-color: oklch(var(--b2));
}

.blog-content th {
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid oklch(var(--bc) / 0.2);
}

.blog-content td {
  padding: 0.75rem;
  border-bottom: 1px solid oklch(var(--bc) / 0.1);
}

.blog-content tbody tr:hover {
  background-color: oklch(var(--b2) / 0.5);
}

/* Images */
.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem auto;
  display: block;
}

.blog-content figure {
  margin: 1.5rem 0;
}

.blog-content figcaption {
  text-align: center;
  font-size: 0.875rem;
  color: oklch(var(--bc) / 0.6);
  margin-top: 0.5rem;
  font-style: italic;
}

/* Horizontal rule */
.blog-content hr {
  border: none;
  border-top: 2px solid oklch(var(--bc) / 0.2);
  margin: 2rem 0;
}

/* Strong/Bold */
.blog-content strong,
.blog-content b {
  font-weight: 700;
}

/* Emphasis/Italic */
.blog-content em,
.blog-content i {
  font-style: italic;
}
