/* Blog styles — builds on ../styles.css design tokens. */

.blog-hero {
  padding: calc(var(--nav-h) + 60px) 0 30px;
  text-align: center;
}
.blog-hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 14px;
}
.blog-hero p { color: var(--text-secondary); max-width: 620px; margin: 0 auto; }

/* Index grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  max-width: var(--container-max);
  margin: 0 auto 80px;
}
.post-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.post-card:hover { transform: translateY(-4px); border-color: var(--border-highlight); }
.post-card .post-thumb {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  background: var(--bg-elevated);
}
.post-card .post-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card .post-cat {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-violet);
  font-weight: 600;
}
.post-card h2 { font-size: 1.15rem; margin: 0; line-height: 1.3; }
.post-card p { color: var(--text-secondary); font-size: 0.92rem; margin: 0; }
.post-card .post-meta { color: var(--text-muted); font-size: 0.8rem; margin-top: auto; }

.blog-empty {
  max-width: 620px;
  margin: 40px auto 100px;
  text-align: center;
  color: var(--text-secondary);
}

/* Article */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) 0 60px;
}
.article .post-cat {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent-violet); font-weight: 600;
}
.article h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  line-height: 1.15;
  margin: 10px 0 14px;
}
.article .article-meta { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 24px; }
.article .article-hero {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 30px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.article-body { line-height: 1.8; color: var(--text-secondary); font-size: 1.05rem; }
.article-body h2 { color: var(--text-primary); font-size: 1.5rem; margin: 36px 0 12px; }
.article-body h3 { color: var(--text-primary); font-size: 1.2rem; margin: 26px 0 10px; }
.article-body p { margin: 0 0 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--text-primary); }
.article-body img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 24px 0;
  border: 1px solid var(--border-color);
}

.article-tags { margin: 30px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.article-tag {
  font-size: 0.8rem; color: var(--text-secondary);
  background: var(--bg-elevated); border: 1px solid var(--border-color);
  border-radius: 999px; padding: 4px 12px;
}
.article-cta {
  margin: 40px 0;
  padding: 26px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  text-align: center;
}
.article-cta h3 { margin: 0 0 10px; }

.related { max-width: 760px; margin: 20px auto 80px; }
.related h3 { margin-bottom: 16px; }
