/* ============================================================
   JAVIR — INTEGRATION MAP v2
   Dynamic connectors, data packets, hub ring, editorial labels
============================================================ */

/* Dynamic connector layer overrides the legacy path styling */
.int-connectors-dyn { overflow: visible; }
.int-connectors-dyn path { animation: none; }

.int-connectors-dyn .c-glow {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
  opacity: .14;
}
.int-connectors-dyn .c-base {
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  opacity: .34;
}
.int-connectors-dyn .c-dash {
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 5 10;
  animation: int-flow 1.7s linear infinite;
}
.int-connectors-dyn .c-dash.c-slow { animation-duration: 3.4s; }
.int-connectors-dyn .c-dash.c-idle { animation: none; opacity: .35; }

.int-connectors-dyn .c-port { opacity: .9; }
.int-connectors-dyn .c-port-halo { opacity: .28; }

@media (prefers-reduced-motion: reduce) {
  .int-connectors-dyn .c-dash { animation: none; }
}

/* ---------- Hub: rotating energy ring ---------- */
@property --hub-a {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.int-hub-ring {
  position: absolute;
  inset: -9px;
  border-radius: 34px;
  padding: 1.5px;
  pointer-events: none;
  background: conic-gradient(
    from var(--hub-a, 0deg),
    transparent 0turn,
    transparent .62turn,
    rgba(104,217,255,.05) .72turn,
    rgba(104,217,255,.9) .86turn,
    rgba(188,247,255,1) .92turn,
    transparent 1turn);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: hub-ring-spin 5.5s linear infinite;
  filter: drop-shadow(0 0 6px rgba(104,217,255,.65));
}
@keyframes hub-ring-spin {
  to { --hub-a: 360deg; }
}
@media (prefers-reduced-motion: reduce) {
  .int-hub-ring { animation: none; opacity: .4; }
}

/* ---------- Row labels: centered editorial dividers ---------- */
.int-row-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}
.int-row-label::before,
.int-row-label::after {
  content: "";
  height: 1px;
  flex: 1;
  max-width: 180px;
  background: linear-gradient(90deg, transparent, rgba(139,197,255,.3));
}
.int-row-label::after {
  background: linear-gradient(90deg, rgba(139,197,255,.3), transparent);
}

/* ---------- Card refinement inside the map ---------- */
.int-card { z-index: 2; }
.int-card.int-card-idle { opacity: .68; filter: saturate(.75); }
.int-card.int-card-idle:hover { opacity: 1; filter: none; }

/* Scanline sweep across the map, very subtle */
.int-map::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(104,217,255,.035) 46%,
    rgba(104,217,255,.075) 50%,
    rgba(104,217,255,.035) 54%,
    transparent 100%);
  background-size: 100% 220%;
  animation: int-scan 9s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes int-scan {
  0%   { background-position: 0 -120%; }
  55%  { background-position: 0 220%; }
  100% { background-position: 0 220%; }
}
@media (prefers-reduced-motion: reduce) {
  .int-map::after { animation: none; opacity: 0; }
}

/* ---------- Light theme ---------- */
html[data-theme="light"] .int-row-label::before {
  background: linear-gradient(90deg, transparent, rgba(124,160,255,.35));
}
html[data-theme="light"] .int-row-label::after {
  background: linear-gradient(90deg, rgba(124,160,255,.35), transparent);
}
