/* Reuses the dogbistro design tokens defined globally by the yeastbox
   theme (src/themes/yeastbox/src/scss/bootstrap/_root.scss) so the blog
   reads as part of the same site rather than a bolted-on module. */

/* No custom gap here: Bootstrap's col-md-3 + col-md-9 already sum to
   exactly 100% of the row width, so a flex `gap` on top of that (with no
   slack left) pushed the sidebar onto its own line — the main column then
   kept its narrower 75% width underneath, leaving a large empty strip on
   the right. The column padding (Bootstrap's own gutter) already provides
   spacing between sidebar and main. */

.yc-blog-categories__title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--yc-text-primary, #17332d);
}

.yc-blog-categories__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.yc-blog-categories__item a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--yc-text-primary, #17332d);
  text-decoration: none;
  font-size: 14px;
}

.yc-blog-categories__item a:hover {
  color: var(--yc-green-accent, #278642);
}

.yc-blog-categories__item.is-active a {
  background: #e7f1e5;
  color: var(--yc-green-primary, #103d30);
  font-weight: 600;
}

.yc-blog__category-description {
  margin: 0 0 24px;
  color: var(--yc-text-muted, #737873);
}

.yc-blog-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.yc-blog-post-card {
  display: flex;
  flex-direction: column;
  background: #f5f5ef;
  border: 1px solid var(--yc-border-default, #e6e9e5);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.yc-blog-post-card:hover {
  box-shadow: 0 8px 20px rgba(23, 51, 45, 0.1);
  transform: translateY(-2px);
}

.yc-blog-post-card__image-link {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--yc-border-default, #e6e9e5);
}

.yc-blog-post-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yc-blog-post-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.yc-blog-post-card__category {
  font-size: 12px;
  font-weight: 600;
  color: var(--yc-green-primary, #103d30);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.yc-blog-post-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.yc-blog-post-card__title a {
  color: var(--yc-text-primary, #17332d);
  text-decoration: none;
}

.yc-blog-post-card__title a:hover {
  color: var(--yc-green-accent, #278642);
}

.yc-blog-post-card__excerpt {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--yc-text-muted, #737873);
}

.yc-blog-posts__empty {
  color: var(--yc-text-muted, #737873);
}

.yc-blog-post__hero {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 24px;
}

.yc-blog-post__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 14px;
}

.yc-blog-post__category {
  font-weight: 600;
  color: var(--yc-green-primary, #103d30);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.yc-blog-post__date {
  color: var(--yc-text-muted, #737873);
}

.yc-blog-post__content {
  max-width: 760px;
  line-height: 1.7;
  color: var(--yc-text-primary, #17332d);
}

.yc-blog-post__content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Embedded product cards sit inline in the content, same card markup as
   the rest of the site (catalog/_partials/miniatures/product.tpl) — just
   constrain the width so a single card doesn't stretch across the full
   760px reading column. */
.yc-blog-post__content .product-miniature {
  max-width: 320px;
  margin: 24px 0;
}

/* Theme's shared pagination.tpl defaults the active page to the old AL-KO
   red (#e30613, src/themes/yeastbox/src/scss/prestashop/components/category/_pagination.scss)
   — overridden here rather than in the shared SCSS so the catalog's own
   listing pagination is untouched. */
.yc-blog-pagination .page-item.active .page-link {
  background-color: var(--yc-green-primary, #103d30);
  border-color: var(--yc-green-primary, #103d30);
  color: #fff;
}

.yc-blog-pagination .page-link:hover {
  border-color: var(--yc-green-accent, #278642);
  color: var(--yc-green-primary, #103d30);
}

.yc-blog-pagination {
  margin-top: 32px;
}

@media (max-width: 991px) {
  .yc-blog-posts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .yc-blog-posts {
    grid-template-columns: 1fr;
  }
}
