/* ==========================================================================
   Category Pages Stylesheet (catelogy.css)
   Used across category pages: action.html, cars.html, puzzle.html, etc.
   ========================================================================== */

/* Category Header Hero */
.category-hero {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(15, 23, 42, 0.95));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-stage);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.category-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ef4444, #f97316, #eab308);
}

.category-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.category-badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.category-hero-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.category-hero-title i {
  color: #f97316;
  filter: drop-shadow(0 0 14px rgba(249, 115, 22, 0.6));
}

.category-hero-desc {
  font-size: 1rem;
  color: var(--text-gray-300);
  max-width: 860px;
  line-height: 1.6;
  margin: 0;
}

.category-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-gray-200);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.stat-pill i {
  color: var(--accent-emerald);
}

/* Search & Filter Toolbar */
.filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--bg-stage);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
}

.filter-tabs-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-gray-300);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-tab-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.filter-tab-btn.active {
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.4);
}

.search-box-wrap {
  position: relative;
  min-width: 240px;
  flex-grow: 1;
  max-width: 340px;
}

.search-box-wrap i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-gray-400);
  font-size: 0.85rem;
}

.search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 8px 14px 8px 36px;
  color: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition-fast);
}

.search-input:focus {
  border-color: var(--accent-emerald);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.active-nav-link {
  background: linear-gradient(135deg, #ef4444, #f97316) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.5);
}
