/* Healify blog INDEX-only styles. Loaded after blog-post.css so it inherits
   the same brand tokens (--bg, --fg, --fg-muted, --accent, --max-w-wide,
   --font-body, --font-display, --border) and the same .site-header /
   .app-cta / .site-footer. Adds: hero, search, grid, card. */

/* ------------- Hero ------------- */
.blog-hero {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 96px 24px 48px;
  text-align: center;
}
.blog-hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  color: var(--fg);
}
.blog-search {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}
.blog-search input {
  width: 100%;
  padding: 18px 22px 18px 56px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 16px;
  font-family: inherit;
  background: var(--bg);
  color: var(--fg);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.blog-search input::placeholder { color: rgba(10, 10, 10, 0.4); }
.blog-search input:focus {
  border-color: var(--fg);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04);
}
.blog-search svg {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  stroke: var(--fg-muted);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ------------- Grid ------------- */
.blog-grid {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 48px 24px 96px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}
.blog-empty {
  text-align: center;
  color: var(--fg-muted);
  padding: 48px 0;
}

/* ------------- Card ------------- */
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow:
    0 0.5px 0.14px rgba(15, 26, 34, 0.02),
    0 1.05px 0.44px rgba(15, 27, 34, 0.03),
    0 1.95px 1.09px rgba(15, 27, 34, 0.03),
    0 6px 4px rgba(15, 27, 34, 0.04);
}
.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15, 27, 34, 0.06), 0 2px 8px rgba(15, 27, 34, 0.04);
  text-decoration: none;
}
.blog-card__image {
  aspect-ratio: 16 / 10;
  background: rgba(0, 0, 0, 0.03);
  overflow: hidden;
}
.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.blog-card:hover .blog-card__image img { transform: scale(1.03); }
.blog-card__body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.blog-card__pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--fg);
  background: rgba(0, 0, 0, 0.04);
  padding: 6px 12px;
  border-radius: 999px;
  align-self: flex-start;
}
.blog-card__title {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin: 0;
}
.blog-card__date {
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: auto;
  padding-top: 8px;
}

@media (max-width: 600px) {
  .blog-hero { padding: 64px 20px 32px; }
  .blog-grid { padding: 32px 20px 64px; gap: 24px; }
  .blog-card__body { padding: 20px 22px 24px; }
  .blog-card__title { font-size: 19px; }
}
