/* ========================================
   织网 (WebWeave) - 成员图谱样式
   ======================================== */

/* === 图谱容器 === */
.member-graph-container {
  padding: 20px;
  background: linear-gradient(145deg, rgba(10, 10, 10, 0.95), rgba(26, 26, 46, 0.9));
  border: 2px solid var(--sacred-gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--holy-glow-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.graph-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--sacred-gold);
}

.graph-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* === 图谱画布 === */
.graph-canvas {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(184, 134, 11, 0.05) 0%, transparent 50%),
    linear-gradient(145deg, rgba(10, 10, 10, 0.98), rgba(26, 26, 46, 0.95));
  border: 2px solid rgba(184, 134, 11, 0.3);
  border-radius: var(--radius-md);
}

.member-graph-svg {
  width: 100%;
  height: 100%;
  cursor: grab;
}

.member-graph-svg:active {
  cursor: grabbing;
}

/* === 节点样式 === */
.member-node {
  transition: transform var(--duration-normal);
}

.member-node:hover {
  transform: scale(1.15);
}

/* === 连接线样式 === */
.connection {
  stroke-dasharray: 5, 5;
  animation: connection-flow 3s linear infinite;
}

.connection-structure {
  stroke: var(--sacred-gold);
  stroke-width: 2;
}

.connection-collaboration {
  stroke: var(--divine-gold);
  stroke-width: 2;
}

.connection-management {
  stroke: var(--warning-orange);
  stroke-width: 3;
}

@keyframes connection-flow {
  0% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 10;
  }
}

/* === 节点详情面板 === */
.graph-detail-panel {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 300px;
  max-height: calc(100% - 40px);
  background: linear-gradient(145deg, rgba(10, 10, 10, 0.98), rgba(26, 26, 46, 0.95));
  border: 2px solid var(--sacred-gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--holy-glow-medium);
  z-index: 100;
  overflow-y: auto;
}

.member-detail-scroll {
  padding: 20px;
}

.member-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--sacred-gold);
}

.member-detail-content {
  text-align: center;
}

.member-avatar-large {
  position: relative;
  box-shadow: var(--holy-glow-soft);
}

/* === 响应式 === */
@media (max-width: 1024px) {
  .graph-detail-panel {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    margin-top: 20px;
  }
  
  .graph-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .graph-controls > * {
    width: 100%;
  }
}
