/* KUBE MIND — Azure-style architecture diagrams */

.diagram-container.kube-arch-wrap,
.kube-arch-wrap.diagram-container {
  padding: 20px 24px 24px;
}

.kube-arch-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 8px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 10px;
  color: var(--text-muted, #8892a4);
}

.kube-arch-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.kube-arch-legend .pip::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.35);
}

.kube-arch-legend .priv::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.35);
}

.kube-arch-legend .flow-ok::before {
  content: '';
  width: 14px;
  height: 2px;
  background: #10b981;
}

.kube-arch-legend .flow-bad::before {
  content: '';
  width: 14px;
  height: 2px;
  background: #ef4444;
}

.kube-arch-canvas {
  width: 100%;
  overflow-x: auto;
}

.kube-arch-canvas svg {
  display: block;
  width: 100%;
  max-width: 920px;
  height: auto;
  min-width: 640px;
}

.kube-arch-caption {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted, #8892a4);
  max-width: 860px;
}

.kube-arch-caption strong {
  color: var(--text, #e8edf5);
}

.kube-arch-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 720px) {
  .kube-arch-compare {
    grid-template-columns: 1fr;
  }
  .kube-arch-canvas svg {
    min-width: 520px;
  }
}

.kube-arch-panel-title {
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: 12px;
  font-weight: 700;
  fill: var(--text, #e8edf5);
}

/* SVG theme tokens (used in diagram JS) */
:root {
  --arch-zone-stroke: rgba(80, 168, 232, 0.55);
  --arch-zone-fill: rgba(0, 120, 212, 0.06);
  --arch-subnet-stroke: rgba(255, 255, 255, 0.12);
  --arch-subnet-fill: rgba(255, 255, 255, 0.02);
}
