/* ================================================================
   SYNAPSE FILTER BAR — Graph Lens Chips
   ================================================================ */

#synapse-filter-bar {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  gap: 6px;
  padding: 4px 8px;
  background: rgba(10, 14, 39, 0.75);
  border: 1px solid rgba(0, 224, 255, 0.15);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  user-select: none;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}

.synapse-filter-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  font-family: inherit;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  line-height: 1;
}

.synapse-filter-chip i {
  font-size: 0.7rem;
  opacity: 0.7;
}

.synapse-filter-chip:hover {
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 224, 255, 0.25);
  background: rgba(0, 224, 255, 0.06);
}

.synapse-filter-chip[aria-pressed="true"] {
  color: #00e0ff;
  border-color: rgba(0, 224, 255, 0.5);
  background: rgba(0, 224, 255, 0.12);
  box-shadow: 0 0 8px rgba(0, 224, 255, 0.15), inset 0 0 6px rgba(0, 224, 255, 0.06);
}

/* Per-filter accent colors — match graph glow signatures */
.synapse-filter-chip[data-filter="connected"][aria-pressed="true"] {
  color: #00e0ff;
  border-color: rgba(0, 224, 255, 0.5);
  background: rgba(0, 224, 255, 0.12);
  box-shadow: 0 0 8px rgba(0, 224, 255, 0.2), inset 0 0 6px rgba(0, 224, 255, 0.06);
}

.synapse-filter-chip[data-filter="projects"][aria-pressed="true"] {
  color: #00ff88;
  border-color: rgba(0, 255, 136, 0.5);
  background: rgba(0, 255, 136, 0.12);
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.2), inset 0 0 6px rgba(0, 255, 136, 0.06);
}

.synapse-filter-chip[data-filter="themes"][aria-pressed="true"] {
  color: #a855f7;
  border-color: rgba(168, 85, 247, 0.5);
  background: rgba(168, 85, 247, 0.12);
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.2), inset 0 0 6px rgba(168, 85, 247, 0.06);
}

.synapse-filter-chip[data-filter="opps"][aria-pressed="true"] {
  color: #ffaa00;
  border-color: rgba(255, 170, 0, 0.5);
  background: rgba(255, 170, 0, 0.12);
  box-shadow: 0 0 8px rgba(255, 170, 0, 0.2), inset 0 0 6px rgba(255, 170, 0, 0.06);
}

.synapse-filter-chip[aria-pressed="true"] i {
  opacity: 1;
}

/* Count badge inside chip */
.synapse-filter-count {
  font-size: 0.65rem;
  opacity: 0.5;
  margin-left: 1px;
}

.synapse-filter-count:empty {
  display: none;
}

.synapse-filter-chip[aria-pressed="true"] .synapse-filter-count {
  opacity: 0.9;
}

/* Filter context header */
#synapse-filter-header {
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 51; /* must be above #synapse-filter-bar (z-index: 50) */
  padding: 4px 14px;
  background: rgba(10, 14, 39, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#synapse-filter-header.visible {
  opacity: 1;
}

#synapse-filter-header .filter-header-count {
  font-weight: 700;
  margin: 0 2px;
}

/* ================================================================
   MOBILE: Pill filter bar is hidden — cleaner full-screen graph.
   Notification buttons float standalone at top-right.
   ================================================================ */
@media (max-width: 767px) {
  #synapse-filter-bar {
    display: none !important;
  }

  /* No filter bar overhead — graph starts at top of safe area */
  #synapse-main-view {
    top: 0 !important;
  }

  /* Context header also hidden on mobile */
  #synapse-filter-header {
    display: none !important;
  }
}

/* Context chip (project/org/theme selection) */
.synapse-context-chip {
  margin-left: 4px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: 10px;
}
