/* Knowledge-Graph-Visualisierung — Styles (KG Phase 6) */

.gq-graph-section {
  margin: 4rem 0;
  padding: 2rem 0;
  border-top: 1px solid rgba(124, 58, 237, 0.15);
  border-bottom: 1px solid rgba(124, 58, 237, 0.15);
}

.gq-graph-section h2 {
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
  background: linear-gradient(90deg, #a855f7, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gq-graph-section .gq-graph-intro {
  color: #94a3b8;
  margin: 0 0 1.5rem;
  max-width: 720px;
  font-size: 0.95rem;
  line-height: 1.6;
}

#glossar-graph {
  background: linear-gradient(180deg, #06060b 0%, #0f0f18 100%);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 12px;
  padding: 1rem;
  position: relative;
  min-height: 400px;
}

.gq-graph-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.gq-graph-stats {
  font-family: 'JetBrains Mono', monospace;
}
.gq-graph-stats strong {
  color: #f59e0b;
}

.gq-graph-legend {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  flex: 1 1 auto;
}

.gq-leg {
  font-size: 0.8rem;
  color: #94a3b8;
}
.gq-leg-broader { color: #94a3b8; }
.gq-leg-related { color: #a855f7; }
.gq-leg-prereq  { color: #14b8a6; }
.gq-leg-impl    { color: #f59e0b; }

.gq-graph-reset {
  background: rgba(124, 58, 237, 0.15);
  color: #e2e8f0;
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: 6px;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s;
}
.gq-graph-reset:hover {
  background: rgba(124, 58, 237, 0.3);
}

.gq-graph-svg {
  display: block;
  background: transparent;
  cursor: grab;
}
.gq-graph-svg:active { cursor: grabbing; }

.gq-graph-node:hover circle {
  stroke: #fbbf24;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.6));
}

.gq-graph-loading,
.gq-graph-error {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  color: #94a3b8;
  font-style: italic;
}
.gq-graph-error { color: #f87171; }

@media (max-width: 768px) {
  .gq-graph-toolbar { font-size: 0.75rem; }
  .gq-graph-legend  { gap: 0.5rem; }
  #glossar-graph    { padding: 0.5rem; }
}
