@import url('./design-tokens.css');
/* ===== COMPARE GRAPHS STYLES (Feature 15) ===== */
/* Styling for Brain Comparison - Knowledge Graph Duel */

/* ===== COMPARE GRAPHS WINDOW STYLES ===== */

/* Knowledge Match window container */
#compare-graphs-window {
  width: 1200px;
  height: 800px;
  max-width: 95vw;
  max-height: 85vh;
  min-width: 800px;
  min-height: 600px;
  /* top/left/transform entfernt, damit WindowPositionManager (TopbarState) korrekt arbeitet */
}

/* Region info display scrollbar styling */
.region-info-display #region-entities 

.region-info-display #region-entities ul::-webkit-scrollbar-track {
  background: var(--glass-bg-light);
  border-radius: 3px;
}

.region-info-display #region-entities ul::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.region-info-display #region-entities ul::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

#compare-graphs-window .brain-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  overflow-y: auto;
}

/* User Selection Panel */
.user-selection-panel {
  display: flex;
  gap: 15px;
  align-items: flex-end;
  padding: 15px;
  background: var(--glass-bg-light);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--glass-blur-md));
  border: 1px solid var(--glass-border);
}

.user-select {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.user-select label {
  font-weight: 600;
  color: var(--text-primary, #ffffff);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.user-select select {
  padding: 10px 15px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary, #ffffff);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-sans, sans-serif);
}

.user-select select:hover {
  border-color: var(--color-primary, #8a2be2);
  background: rgba(0, 0, 0, 0.4);
}

.user-select select:focus {
  outline: none;
  border-color: var(--color-primary, #8a2be2);
  box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.2);
}

.user-select select option {
  background: #1a1a1a;
  color: #ffffff;
  padding: 8px;
}

.btn-primary {
  padding: 12px 30px;
  background: linear-gradient(135deg, #8a2be2, #c77dff);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-sans, sans-serif);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(138, 43, 226, 0.5);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* 3D Scene Container */
#compare-scene-container {
  position: relative;
  width: 100%;
  height: 600px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0a0a0a;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

#compare-scene-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Comparison Control Buttons */
.comparison-controls {
  display: flex;
  gap: 15px;
  justify-content: center;
  padding: 15px;
  background: var(--glass-bg-light);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--glass-blur-md));
  border: 1px solid var(--glass-border);
}

.btn-mode {
  flex: 1;
  max-width: 300px;
  padding: 15px 25px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid transparent;
  border-radius: 10px;
  color: var(--text-primary, #ffffff);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-sans, sans-serif);
  text-transform: none;
  white-space: nowrap;
}

.btn-mode:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.btn-mode.active {
  background: linear-gradient(135deg, #9d4edd, #c77dff);
  border-color: #c77dff;
  box-shadow: 0 8px 25px rgba(157, 78, 221, 0.4);
  transform: translateY(-2px);
}

.btn-mode:active {
  transform: translateY(0);
}

.btn-audio {
  padding: 15px 30px;
  background: linear-gradient(135deg, #00b4d8, #0077b6);
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-sans, sans-serif);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
}

.btn-audio:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 180, 216, 0.5);
}

.btn-audio:active {
  transform: translateY(0);
}

.btn-audio:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Statistics Panel */
.stats-panel {
  padding: 20px;
  background: var(--glass-bg-light);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--glass-blur-md));
  border: 1px solid var(--glass-border);
}

.stats-panel h3 {
  margin: 0 0 15px 0;
  color: var(--text-primary, #ffffff);
  font-size: 18px;
  font-weight: 600;
  font-family: var(--font-sans, sans-serif);
}

.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary, #cccccc);
  font-size: 14px;
  font-family: var(--font-sans, sans-serif);
}

.stat-row:last-child {
  border-bottom: none;
}

.stat-row.synergy {
  margin-top: 10px;
  padding-top: 15px;
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
}

.stat-row .score {
  color: #4caf50;
  font-size: 16px;
  font-weight: bold;
}

/* Loading State */
.stats-panel p {
  margin: 0;
  color: #999;
  font-size: 14px;
  text-align: center;
  padding: 20px 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
  #compare-graphs-window {
    width: 95vw;
    height: 95vh;
  }

  .user-selection-panel {
    flex-wrap: wrap;
  }

  .user-select {
    min-width: 200px;
  }

  #compare-scene-container {
    height: 500px;
  }

  .comparison-controls {
    flex-wrap: wrap;
  }

  .btn-mode {
    max-width: none;
    min-width: 200px;
  }
}

@media (max-width: 768px) {
  #compare-graphs-window {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
  }

  .user-selection-panel {
    flex-direction: column;
  }

  #compare-scene-container {
    height: 400px;
  }

  .comparison-controls {
    flex-direction: column;
  }

  .btn-mode,
  .btn-audio {
    width: 100%;
    max-width: none;
  }
}

/* Fullscreen Mode */
#compare-graphs-window.fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  top: 0 !important;
  left: 0 !important;
}

#compare-graphs-window.fullscreen #compare-scene-container {
  height: calc(100vh - 300px);
}







