/* === Knowledge Graph Styles === */

#graph-container svg {
  width: 100%;
  height: 100%;
  display: block;
}

.graph-edge {
  stroke-linecap: round;
}

.graph-node {
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.graph-node.unlocked:hover circle {
  stroke-width: 3;
}

.graph-node.locked {
  cursor: default;
}

.graph-node text {
  pointer-events: none;
  user-select: none;
}

/* Graph legend */
.graph-legend {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(10, 10, 26, 0.9);
  border-radius: var(--radius-sm);
  border: 1px solid #222244;
  font-size: 0.75rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-secondary);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* Graph info tooltip */
.graph-tooltip {
  position: absolute;
  padding: 0.5rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid #333355;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-primary);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 10;
  white-space: nowrap;
}

.graph-tooltip.visible {
  opacity: 1;
}
