/* ===========================================
   BLOG — extends site/style.css
   =========================================== */

/* =============================================
   BLOG LISTING: GRID + CARDS
   ============================================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
}

.blog-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.blog-tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  background: var(--primary-tint);
  color: var(--primary);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  width: fit-content;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}

.blog-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0;
}

.blog-card-excerpt {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.65;
  flex: 1;
  margin: 0;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.blog-card-meta {
  font-size: 13px;
  color: var(--text-body);
}

.blog-card-read-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.blog-card:hover .blog-card-read-more {
  gap: 8px;
}

/* Empty state for when there are no posts yet */
.blog-empty {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-body);
  font-size: 16px;
}


/* =============================================
   BLOG POST PAGE
   ============================================= */
.post-page {
  padding: 80px 24px 112px;
}

.post-inner {
  max-width: 720px;
  margin: 0 auto;
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-body);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.2s;
}

.post-back:hover {
  color: var(--text-heading);
}

.post-header {
  margin-bottom: 48px;
}

.post-header .blog-tag {
  margin-bottom: 16px;
}

.post-header h1 {
  margin-bottom: 20px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-body);
  flex-wrap: wrap;
}

.post-meta-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border);
  display: inline-block;
  flex-shrink: 0;
}

/* Post body typography */
.post-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-body);
}

.post-body h2 {
  font-size: 26px;
  margin: 48px 0 16px;
}

.post-body h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--text-heading);
  margin: 32px 0 10px;
}

.post-body p {
  margin-bottom: 20px;
}

.post-body ul,
.post-body ol {
  margin: 0 0 20px;
  padding-left: 24px;
}

.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }

.post-body li {
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.65;
}

.post-body a:not(.btn) {
  color: var(--primary);
  text-decoration: none;
}

.post-body a:hover {
  text-decoration: underline;
}

.post-body strong {
  color: var(--text-heading);
  font-weight: 600;
}

.post-body blockquote {
  border-left: 3px solid var(--primary);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--bg-alt);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
}

.post-body blockquote p {
  font-size: 18px;
  font-style: italic;
  color: var(--text-heading);
  margin: 0;
  line-height: 1.6;
}

.post-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* Post CTA block */
.post-cta {
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 56px;
}

.post-cta h2 {
  font-size: 24px;
  margin: 0;
  letter-spacing: -0.01em;
}

.post-cta p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
}


/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .post-page {
    padding: 60px 24px 80px;
  }

  .post-body {
    font-size: 16px;
  }

  .post-body h2 {
    font-size: 22px;
  }

  .post-body h3 {
    font-size: 17px;
  }

  .post-body li {
    font-size: 16px;
  }

  .post-cta {
    padding: 24px;
  }

  .post-cta h2 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .post-page {
    padding: 48px 20px 64px;
  }
}
