/* ==========================================================================
   9. CUSTOM CURSOR
   ========================================================================== */

#molecule-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 999999;
  mix-blend-mode: screen;
}

.cursor-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-primary), 0 0 18px rgba(234, 179, 8, 0.8), 0 0 35px rgba(56, 189, 248, 0.45);
}

.cursor-orbit {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.85);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.7), inset 0 0 8px rgba(56, 189, 248, 0.25);
}

.orbit-a {
  transform: rotate(25deg) scaleX(1.25);
  animation: cursorOrbitA 1.6s linear infinite;
}

.orbit-b {
  transform: rotate(-65deg) scaleX(1.25);
  border-color: rgba(167, 139, 250, 0.75);
  box-shadow: 0 0 8px rgba(167, 139, 250, 0.7), inset 0 0 8px rgba(167, 139, 250, 0.25);
  animation: cursorOrbitB 2.2s linear infinite;
}

#molecule-cursor.cursor-hover { width: 46px; height: 46px; }
#molecule-cursor.cursor-hover .cursor-core {
  background: var(--accent-secondary);
  box-shadow: 0 0 10px var(--accent-secondary), 0 0 24px rgba(56, 189, 248, 0.9), 0 0 45px rgba(167, 139, 250, 0.5);
}

#molecule-cursor.cursor-click { transform: translate(-50%, -50%) scale(0.75); }

.molecule-cursor-trail {
  position: fixed;
  width: 7px;
  height: 7px;
  pointer-events: none;
  z-index: 999998;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.75);
  box-shadow: 0 0 8px var(--accent-secondary), 0 0 16px rgba(234, 179, 8, 0.45);
  transform: translate(-50%, -50%);
  animation: moleculeTrailFade 0.55s ease-out forwards;
}
