:root {
  --cat-technology: #1e40afb0;
  --cat-business: #ea580cb0;
  --cat-education: #4f46e5b0;
  --cat-finance: #0f766eb0;
  --cat-healthcare: #dc2626b0;
  --cat-environment: #15803db0;
  --cat-agriculture: #65a30db0;
  --cat-food: #d97706b0;
  --cat-travel: #0284c7b0;
  --cat-transportation: #334155b0;
  --cat-real-estate: #7c3aedb0;
  --cat-media-entertainment: #be185db0;
  --cat-art-design: #c026d3b0;
  --cat-sports-fitness: #ca8a04b0;
  --cat-community: #2563ebb0;
  --cat-lifestyle: #db2777b0;
  --cat-uncategorized: #475569b0;
}

.project-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1;
}

.pc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.pc-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.project-category .pc-icon {
  width: 16px;
  height: 16px;
}

.cat-technology {
  background: var(--cat-technology);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.cat-business {
  background: var(--cat-business);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.cat-education {
  background: var(--cat-education);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.cat-finance {
  background: var(--cat-finance);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.cat-healthcare {
  background: var(--cat-healthcare);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.cat-environment {
  background: var(--cat-environment);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.cat-agriculture {
  background: var(--cat-agriculture);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.cat-food {
  background: var(--cat-food);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.cat-travel {
  background: var(--cat-travel);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.cat-transportation {
  background: var(--cat-transportation);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.cat-real-estate {
  background: var(--cat-real-estate);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.cat-media-entertainment {
  background: var(--cat-media-entertainment);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.cat-art-design {
  background: var(--cat-art-design);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.cat-sports-fitness {
  background: var(--cat-sports-fitness);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.cat-community {
  background: var(--cat-community);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.cat-lifestyle {
  background: var(--cat-lifestyle);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.cat-uncategorized {
  background: var(--cat-uncategorized);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.project-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
}

.hub-filter-wrap {
  position: relative;
  min-width: 260px;
  max-width: 420px;
  width: 100%;
}

.hub-filter-wrap > select {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

#hubCategoryFilterLabel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hub-filter-chevron {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid rgba(110, 231, 243, 0.75);
  transition: transform 0.22s cubic-bezier(0.2, 0.9, 0.3, 1), border-top-color 0.18s;
  flex-shrink: 0;
}

.hub-filter-wrap.open .hub-filter-chevron {
  transform: rotate(180deg);
  border-top-color: #6ee7f3;
}

.hub-opt-icon {
  display: inline-flex;
  width: 16px;
  align-items: center;
  justify-content: center;
}

.hub-opt-icon .pc-icon {
  width: 14px;
  height: 14px;
}

.category-filter-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #d9e1ea;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: 0.2s ease;
}

.category-filter-btn:hover {
  border-color: rgba(110, 231, 243, 0.4);
}

.category-filter-btn.active {
  background: rgba(110, 231, 243, 0.18);
  color: #6ee7f3;
  border-color: rgba(110, 231, 243, 0.45);
}

.category-stats {
  margin-top: 20px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(10, 11, 28, 0.2);
}

.category-stats h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.category-stats-list {
  display: grid;
  gap: 8px;
}

.category-stat-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.92rem;
  opacity: 0.9;
}

.project-category-row {
  margin-top: 10px;
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.project-category-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Category Explorer (Chips) */
.category-explorer {
  margin: 15px 0 25px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.category-chips-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 5px 2px 15px;
  scrollbar-width: thin;
  scrollbar-color: rgba(110, 231, 243, 0.3) transparent;
  -webkit-overflow-scrolling: touch;
}

.category-chips-scroll::-webkit-scrollbar {
  height: 4px;
}

.category-chips-scroll::-webkit-scrollbar-thumb {
  background: rgba(110, 231, 243, 0.2);
  border-radius: 10px;
}

.category-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  color: #e6eef3;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
  -webkit-user-select: none;
  user-select: none;
}

.category-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(110, 231, 243, 0.3);
  transform: translateY(-2px);
}

.category-chip.active {
  background: rgba(110, 231, 243, 0.15);
  border-color: #6ee7f3;
  color: #6ee7f3;
  box-shadow: 0 4px 12px rgba(110, 231, 243, 0.2);
}

.category-chip .count {
  font-size: 0.75rem;
  opacity: 0.6;
  background: rgba(0, 0, 0, 0.2);
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 4px;
}

.category-chip.active .count {
  opacity: 1;
  background: rgba(110, 231, 243, 0.2);
}

.category-chip .pc-icon {
  width: 14px;
  height: 14px;
}

/* Hide the old annoying stats section */
.category-stats {
  display: none !important;
}

@media (max-width: 640px) {
  .project-filters {
    gap: 6px;
  }

  .hub-filter-wrap {
    min-width: 100%;
  }

  .category-filter-btn {
    font-size: 0.78rem;
    padding: 6px 10px;
  }
}
