/* ==========================================================================
   DOD Pets — Blog styles
   Grid listing, card component, article page, inline product cards.
   ========================================================================== */

/* ---------- Blog card grid ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 32px;
}
.blog-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ---------- Blog card ---------- */
.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: 0 4px 20px -8px rgba(26, 42, 46, .10);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  text-decoration: none;
  color: inherit;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-float);
}

.blog-card__img {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f6eee4;
}
.blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform .5s var(--ease);
}
.blog-card:hover .blog-card__img img {
  transform: translateY(-3px);
}

.blog-card__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.blog-card__badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 14px;
  border-radius: var(--r-pill);
  background: var(--mint-1);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.blog-card__title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--ink);
}

.blog-card__excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  flex: 1;
}

.blog-card__meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--muted-2);
  margin-top: auto;
  padding-top: 4px;
}

/* ---------- Article page ---------- */
.article {
  max-width: 760px;
  margin: 0 auto;
}

.article__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 20px;
  transition: gap .3s var(--ease);
}
.article__back:hover {
  gap: 10px;
}

.article__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.article__title {
  font-family: var(--font-head);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 28px;
}

.article__hero {
  border-radius: var(--r-card);
  overflow: hidden;
  margin-bottom: 36px;
  background: var(--stone-1);
}
.article__hero img {
  width: 100%;
  display: block;
}

/* ---------- Article prose ---------- */
.article__prose {
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink);
}

.article__prose p {
  margin-bottom: 1.4em;
}

.article__prose h2 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin-top: 2em;
  margin-bottom: .8em;
  color: var(--ink);
}

.article__prose ul {
  margin: 0 0 1.4em 0;
  padding-left: 1.4em;
}
.article__prose li {
  margin-bottom: .6em;
  line-height: 1.6;
}
.article__prose li::marker {
  color: var(--primary);
}

.article__disclaimer {
  margin-top: 2.2em;
  padding: 18px 20px;
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  background: var(--stone-1);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- Inline product card (within articles) ---------- */
.article-product {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--stone-1);
  border-radius: var(--r-card);
  padding: 16px;
  margin: 1.6em 0;
  text-decoration: none;
  color: inherit;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.article-product:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.article-product__img {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  display: grid;
  place-items: center;
}
.article-product__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.article-product__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.article-product__brand {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: .03em;
}

.article-product__title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.article-product__price {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

.article-product__cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  margin-top: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
  .blog-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .blog-grid,
  .blog-grid--3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .article__title {
    font-size: 26px;
  }
  .article__prose {
    font-size: 16px;
  }

  .article-product {
    gap: 14px;
    padding: 12px;
  }
  .article-product__img {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 480px) {
  .blog-grid,
  .blog-grid--3 {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .blog-card__body {
    padding: 16px 18px 20px;
  }

  .article {
    padding: 0;
  }
  .article__title {
    font-size: 24px;
    margin-bottom: 20px;
  }
  .article__prose {
    font-size: 15px;
  }
  .article__prose h2 {
    font-size: 19px;
  }

  .article-product {
    flex-direction: column;
    text-align: center;
  }
  .article-product__img {
    width: 100%;
    height: 160px;
  }
  .article-product__info {
    align-items: center;
  }
}
