/* ===== BLOG INDEX REDESIGN ===== */

/* Featured Hero Card */
.blog-hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 3rem;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  background: #1a1a2e;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-hero:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.blog-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: opacity 0.4s ease, transform 0.6s ease;
}
.blog-hero:hover .blog-hero__img {
  opacity: 0.4;
  transform: scale(1.03);
}
.blog-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,20,0.95) 0%, rgba(10,10,20,0.5) 50%, transparent 100%);
}
.blog-hero__content {
  position: relative;
  z-index: 2;
  padding: 2.5rem;
  width: 100%;
}
.blog-hero__badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #c8aa6e, #e8d5a3);
  color: #1a1a2e;
}
.blog-hero__title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: #fff;
}
.blog-hero__title a {
  color: inherit;
  text-decoration: none;
}
.blog-hero__title a:hover {
  color: #e8d5a3;
}
.blog-hero__excerpt {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  max-width: 600px;
}
.blog-hero__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.blog-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1rem;
  padding: 10px 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, #c8aa6e, #b8944e);
  color: #1a1a2e;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s ease;
}
.blog-hero__cta:hover {
  background: linear-gradient(135deg, #e8d5a3, #c8aa6e);
  transform: translateX(4px);
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

/* Blog Cards v2 */
.blog-card-v2 {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
}
.blog-card-v2:hover {
  transform: translateY(-6px);
  border-color: rgba(200,170,110,0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(200,170,110,0.15);
}
.blog-card-v2__thumb {
  position: relative;
  height: 180px;
  overflow: hidden;
}
.blog-card-v2__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-card-v2:hover .blog-card-v2__thumb img {
  transform: scale(1.08);
}
/* Gradient placeholder for cards without images */
.blog-card-v2__thumb--grad {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.grad-behavior { background: linear-gradient(135deg, #667eea, #764ba2); }
.grad-litter { background: linear-gradient(135deg, #f093fb, #f5576c); }
.grad-compare { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.grad-gear { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.grad-guide { background: linear-gradient(135deg, #fa709a, #fee140); }
.grad-health { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }
.grad-enrichment { background: linear-gradient(135deg, #f6d365, #fda085); }

.blog-card-v2__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  background: rgba(0,0,0,0.5);
  color: #fff;
  z-index: 2;
}
.blog-card-v2__body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-v2__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.65rem;
}
.blog-card-v2__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  color: var(--color-text-heading, #fff);
}
.blog-card-v2__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.blog-card-v2__title a:hover {
  color: #c8aa6e;
}
.blog-card-v2__excerpt {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.55;
  margin-bottom: 1rem;
  flex: 1;
}
.blog-card-v2__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #c8aa6e;
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s;
}
.blog-card-v2__link:hover {
  gap: 8px;
  color: #e8d5a3;
}

/* Sticky filter bar */
.blog-filters-bar {
  position: sticky;
  top: 60px;
  z-index: 50;
  padding: 1rem 0;
  background: rgba(15,15,25,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 2rem;
}
.blog-filters-bar .blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.blog-filters-bar .filter-btn {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent;
  color: rgba(255,255,255,0.6);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: 'DM Sans', sans-serif;
}
.blog-filters-bar .filter-btn:hover {
  border-color: rgba(200,170,110,0.4);
  color: #c8aa6e;
  background: rgba(200,170,110,0.08);
}
.blog-filters-bar .filter-btn.active {
  background: linear-gradient(135deg, #c8aa6e, #b8944e);
  color: #1a1a2e;
  border-color: transparent;
  font-weight: 700;
}

/* Post count badge */
.blog-count {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 2rem;
}
.blog-count span {
  color: #c8aa6e;
  font-weight: 600;
}

/* Responsive */
/* ===== ARTICLE HERO BANNER ===== */
.article-hero {
  position: relative;
  max-width: 480px;
  margin: 1rem auto 2rem;
  border-radius: 14px;
  overflow: hidden;
  height: 200px;
}
.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-hero--grad {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.article-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(10,10,20,0.6) 100%);
  border-radius: 16px;
}

/* Enhanced article body */
.blog-article__body h2 {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.blog-article__body h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

@media (max-width: 768px) {
  .article-hero { height: 240px; }
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .blog-hero {
    min-height: 300px;
  }
  .blog-hero__title {
    font-size: 1.5rem;
  }
  .blog-hero__content {
    padding: 1.5rem;
  }
  .blog-card-v2__thumb {
    height: 160px;
  }
}
