/* =============================================
   HobbyzHQ – Category Page Styles
   Depends on: styles.css (global)
   ============================================= */

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  max-width: 1100px;
  margin: 20px auto 0;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #6b7280;
}

.breadcrumb a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #25603a;
}

.breadcrumb-sep {
  color: #c4c4c0;
}

.breadcrumb-current {
  color: #2d2d2d;
  font-weight: 500;
}

/* ---------- Category Hero ---------- */
.category-hero {
  max-width: 1100px;
  margin: 24px auto 0;
  padding: 0 24px;
}

.category-hero-inner {
  display: flex;
  align-items: stretch;
  width: 100%;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  overflow: hidden;
}

.category-hero-image {
  flex: 0 0 340px;
  overflow: hidden;
}

.category-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.category-hero-content {
  flex: 1;
  min-width: 0;
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.category-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e67c3c;
  margin: 0 0 12px;
}

.category-hero-content h1 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 16px;
  color: #1a1a1a;
}

.category-hero-content p {
  font-size: 1.05rem;
  color: #555;
  margin: 0 0 28px;
  line-height: 1.65;
}


/* ---------- Section Block ---------- */
.section-block {
  max-width: 1100px;
  margin: 56px auto 0;
  padding: 0 24px;
}

.section-block--last {
  padding-bottom: 32px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}

.section-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  color: #1a1a1a;
}

.section-header a {
  font-size: 0.9rem;
  font-weight: 600;
  color: #25603a;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.section-header a:hover {
  color: #e67c3c;
}

/* ---------- Featured Hobbies Grid ---------- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.featured-card-link,
.hobby-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.featured-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}

.featured-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.11);
  transform: translateY(-3px);
}

.featured-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.featured-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.featured-card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: #1a1a1a;
}

.featured-card-body p {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0 0 20px;
  line-height: 1.55;
  flex: 1;
}

.featured-card-body .card-explore {
  font-size: 0.88rem;
  font-weight: 600;
  color: #25603a;
  align-self: flex-start;
  transition: color 0.2s;
}

.featured-card:hover .card-explore {
  color: #e67c3c;
}

/* ---------- All Hobbies Grid ---------- */
.hobby-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.hobby-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}

.hobby-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.11);
  transform: translateY(-3px);
}

.hobby-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.hobby-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hobby-card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: #1a1a1a;
}

.hobby-card-body p {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0 0 20px;
  line-height: 1.55;
  flex: 1;
}

.hobby-card-body .card-explore {
  font-size: 0.88rem;
  font-weight: 600;
  color: #25603a;
  align-self: flex-start;
  transition: color 0.2s;
}

.hobby-card:hover .card-explore {
  color: #e67c3c;
}
/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .category-hero-inner {
    flex-direction: column;
  }

  .category-hero-image {
    flex: none;
    width: 100%;
  }

  .category-hero-image img {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .category-hero-content {
    padding: 28px 28px 32px;
  }

  .category-hero-content h1 {
    font-size: 2rem;
  }

  .featured-grid,
  .hobby-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-block {
    margin-top: 40px;
  }
}

@media (max-width: 640px) {
  .category-hero {
    padding: 0 16px;
  }

  .category-hero-content h1 {
    font-size: 1.75rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .featured-grid,
  .hobby-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 420px) {
  .featured-grid,
  .hobby-grid {
    grid-template-columns: 1fr;
  }
}