/* architecture.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;700;800&display=swap');

.arch-container {
  --color-primary: #3b82f6;
  --color-primary-glow: rgba(59, 130, 246, 0.2);
  --color-success: #10b981;
  --color-accent: #ef4444;
  --color-purple: #8b5cf6;
  --bg-node: #ffffff;
  --border-node: #e2e8f0;
  --text-main: #1e293b;
  --text-muted: #64748b;

  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  position: relative;
  width: 100%;
  background: transparent;
}

.arch-container * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.arch-container .canvas {
  width: 100%;
  min-height: 720px;
  position: relative;
  overflow: visible;
  padding: 30px 0;
}

/* Hub Group Background */
.arch-container .hub-group-background {
  position: absolute;
  border: 2px dashed #cbd5e1;
  background: rgba(248, 250, 252, 0.6);
  border-radius: 60px;
  z-index: 2;
  pointer-events: none;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.02);
}

/* Node Styles */
.arch-container .node-wrapper {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 10;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.arch-container .node-wrapper:hover {
  transform: scale(1.1) translateY(-8px);
}

.arch-container .node-circle {
  width: 60px;
  height: 60px;
  background: var(--bg-node);
  border: 2px solid var(--border-node);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.08), 0 8px 12px -6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
}

/* Sub-nodes within Hub */
.arch-container .node-hub-sub .node-circle {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border-style: solid;
}

.arch-container .node-hub-sub .node-icon-svg {
  width: 24px;
  height: 24px;
}

.arch-container .node-hub-sub .node-label {
  font-size: 0.7rem;
  font-weight: 800;
}

.arch-container .node-hub-sub .node-sublabel {
  font-size: 0.6rem;
}

.arch-container .node-wrapper:hover .node-circle {
  border-color: var(--color-primary);
  box-shadow: 0 25px 50px -12px var(--color-primary-glow);
}

.arch-container .node-icon-svg {
  width: 28px;
  height: 28px;
  color: var(--text-muted);
  transition: all 0.3s ease;
  stroke-width: 2;
}

.arch-container .node-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  transition: all 0.3s ease;
}

.arch-container .node-wrapper:hover .node-icon-svg,
.arch-container .node-wrapper:hover .node-icon-img {
  color: var(--color-primary);
  transform: scale(1.1);
}

.arch-container .node-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-main);
  text-align: center;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.arch-container .node-sublabel {
  font-size: 0.6rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: -4px;
  text-align: center;
  max-width: 120px;
}

/* Hub Node */
.arch-container .node-hub .node-circle {
  width: 100px;
  height: 100px;
  border-radius: 28px;
  background: #ffffff;
  border: 3px solid var(--color-primary);
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.2);
  animation: hubPulse 3s infinite;
  padding: 10px;
}

@keyframes hubPulse {
  0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(59, 130, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.arch-container .node-hub .node-icon-img {
  padding: 0;
}

/* SVG Layer */
.arch-container .connectivity-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.arch-container .path-line {
  fill: none;
  stroke: #e2e8f0;
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}

.arch-container .path-line.active {
  stroke: var(--color-primary);
  stroke-opacity: 0.2;
}

/* Particles */
.arch-container .particle {
  fill: var(--color-primary);
  opacity: 0.6;
}

/* Labels for groups */
.arch-container .group-tag {
  position: absolute;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 4px;
  z-index: 5;
}

/* Specific Node Colors */
.arch-container .node-ot .node-icon-svg { color: var(--color-accent); }
.arch-container .node-it .node-icon-svg { color: var(--color-primary); }
.arch-container .node-et .node-icon-svg { color: var(--color-success); }
.arch-container .node-app .node-icon-svg { color: var(--color-purple); }

.arch-container .node-ot:hover .node-circle { border-color: var(--color-accent); box-shadow: 0 8px 24px rgba(239, 68, 68, 0.15); }
.arch-container .node-it:hover .node-circle { border-color: var(--color-primary); box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15); }
.arch-container .node-et:hover .node-circle { border-color: var(--color-success); box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15); }
.arch-container .node-app:hover .node-circle { border-color: var(--color-purple); box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15); }

/* Responsive */
@media (max-width: 768px) {
  .arch-container .canvas {
    height: 800px;
  }
}