/* ============================================
   Network Animation - Visualization Component
   ============================================ */

.network-animation {
  position: relative;
  width: 100%;
  max-width: 460px;
  height: 100%;
  min-height: 280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 24px 16px;
  box-sizing: border-box;
}

.network-animation__canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Top Icons Container */
.network-animation__top-icons {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  max-width: 380px;
  z-index: 2;
  position: relative;
  padding-top: 10px;
}

/* Individual Network Icon */
.network-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(196, 30, 58, 0.06);
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  flex-shrink: 0;
}

.network-icon::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  padding: 2px;
  background: linear-gradient(135deg, #c41e3a, #ff6b6b);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.network-icon svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 4px 8px rgba(196, 30, 58, 0.3));
  transition: transform 0.3s ease;
}

.network-icon:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(196, 30, 58, 0.25);
}

.network-icon:hover::before {
  opacity: 1;
}

.network-icon:hover svg {
  transform: scale(1.1);
}

/* Bottom Logo Container */
.network-animation__logo {
  z-index: 2;
  position: relative;
  padding-bottom: 10px;
}

.haegl-logo-circle {
  width: 72px;
  height: 72px;
  background: radial-gradient(circle at center, rgba(196, 30, 58, 0.98) 0%, rgba(196, 30, 58, 0.95) 45%, rgba(196, 30, 58, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: logoPulse 3s ease-in-out infinite;
}

.haegl-logo-circle::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(135deg, #c41e3a, #ff6b6b, #c41e3a) border-box;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: logoRotate 8s linear infinite;
}

.haegl-logo-circle svg {
  width: 60px;
  height: 60px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
}

.haegl-logo-circle svg text {
  fill: #ffffff;
  stroke: rgba(0, 0, 0, 0.22);
  stroke-width: 0.8px;
  paint-order: stroke;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* Animations */
@keyframes logoPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(196, 30, 58, 0.4);
  }
  50% {
    box-shadow: 0 0 0 16px rgba(196, 30, 58, 0);
  }
}

@keyframes logoRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .network-animation {
    max-width: 100%;
    min-height: 250px;
    padding: 16px 10px;
  }

  .network-animation__top-icons {
    max-width: 320px;
    padding-top: 8px;
  }

  .network-icon {
    width: 42px;
    height: 42px;
  }

  .network-icon svg {
    width: 28px;
    height: 28px;
  }

  .haegl-logo-circle {
    width: 62px;
    height: 62px;
  }

  .haegl-logo-circle svg {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .network-animation {
    min-height: 220px;
    padding: 12px 6px;
  }

  .network-animation__top-icons {
    max-width: 280px;
    padding-top: 6px;
  }

  .network-icon {
    width: 36px;
    height: 36px;
  }

  .network-icon svg {
    width: 24px;
    height: 24px;
  }

  .haegl-logo-circle {
    width: 56px;
    height: 56px;
  }

  .haegl-logo-circle svg {
    width: 44px;
    height: 44px;
  }
}
