/* Blog styles — matches DDV design system */
/* Fonts: Manrope (headings), Inter (body) — loaded in layouts */

.blog-header {
  padding: 1rem 2rem;
  border-bottom: 1px solid #e5e7eb;
}

.blog-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.blog-nav a {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
}

.blog-nav a:hover,
.blog-nav a.active {
  color: #111827;
}

.blog-logo img {
  display: block;
}

/* Blog content area */
.blog-content {
  max-width: 700px;
  margin: 3rem auto;
  padding: 0 2rem;
  font-family: 'Inter', sans-serif;
  color: #1f2937;
  line-height: 1.7;
}

.blog-content h1 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 2.25rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #111827;
}

/* Post meta */
.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: #6b7280;
}

.post-tags {
  display: flex;
  gap: 0.5rem;
}

.tag {
  background: #f3f4f6;
  padding: 0.15rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #4b5563;
}

/* Post body */
.post-body {
  margin-top: 2rem;
}

.post-body h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.post-body h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.post-body p {
  margin-bottom: 1.25rem;
}

.post-body strong {
  font-weight: 600;
}

.post-body blockquote {
  border-left: 3px solid #d1d5db;
  margin: 1.5rem 0;
  padding: 0.5rem 1.5rem;
  color: #4b5563;
  font-style: italic;
}

.post-body code {
  background: #f3f4f6;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

.post-body pre {
  background: #1f2937;
  color: #e5e7eb;
  padding: 1.25rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.post-body pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.post-body ul, .post-body ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.post-body li {
  margin-bottom: 0.5rem;
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}

/* Tables */
.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.post-body thead {
  background: #f9fafb;
}

.post-body th {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid #e5e7eb;
  color: #374151;
}

.post-body td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  color: #4b5563;
  vertical-align: top;
}

.post-body tbody tr:hover {
  background: #f9fafb;
}

/* Author card */
.author-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 3rem;
  padding: 1.5rem;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.author-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-info strong {
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  display: block;
  margin-bottom: 0.25rem;
}

.author-info p {
  font-size: 0.85rem;
  color: #4b5563;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.author-info a {
  font-size: 0.85rem;
  color: #4338ca;
  text-decoration: none;
  font-weight: 500;
}

.author-info a:hover {
  text-decoration: underline;
}

/* Post footer */
.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.post-footer a {
  color: #4b5563;
  text-decoration: none;
  font-weight: 500;
}

.post-footer a:hover {
  color: #111827;
}

/* Blog index — post list */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.post-card {
  padding-bottom: 2rem;
  border-bottom: 1px solid #f3f4f6;
}

.post-card a {
  text-decoration: none;
  color: inherit;
}

.post-card h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
  color: #111827;
}

.post-card a:hover h2 {
  color: #4338ca;
}

.post-card time {
  font-size: 0.85rem;
  color: #6b7280;
}

.post-card p {
  margin-top: 0.5rem;
  color: #4b5563;
  line-height: 1.6;
}

/* Blog footer */
.blog-footer {
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* Post CTA */
.post-cta {
  margin-top: 3rem;
  padding: 2.5rem;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  text-align: center;
}

.post-cta h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: #111827;
}

.post-cta p {
  color: #4b5563;
  margin-bottom: 1.25rem;
}

.post-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.post-cta-sub {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0;
}

.post-cta-sub a {
  color: #4338ca;
  text-decoration: none;
  font-weight: 500;
}

.post-cta-sub a:hover {
  text-decoration: underline;
}

/* Site footer (blog pages) */
.site-footer {
  background: #111827;
  color: #9ca3af;
  padding: 3rem 2rem;
  margin-top: 4rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
}

.site-footer .container {
  max-width: 700px;
  margin: 0 auto;
}

.footer-grid {
  display: flex;
  gap: 3rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col strong {
  color: #f3f4f6;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.footer-col a {
  color: #9ca3af;
  text-decoration: none;
}

.footer-col a:hover {
  color: #f3f4f6;
}

/* Responsive */
@media (max-width: 640px) {
  .blog-content {
    padding: 0 1rem;
    margin: 2rem auto;
  }

  .blog-content h1 {
    font-size: 1.75rem;
  }

  .blog-nav {
    gap: 1rem;
    padding: 0 1rem;
  }

  .post-cta {
    padding: 1.5rem;
  }

  .post-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .footer-grid {
    flex-direction: column;
    gap: 2rem;
  }
}
