/**
 * ============================================================================
 * BESPOKE CYBER-OPTICAL CURSOR — GPU ACCELERATED TACTILE RETICLE
 * File: css/cursor.css
 * Palette: #A8FF3E Laser Accent, #0A0A0A Obsidian Void
 * Standards: 60/120 FPS Compositor-Only Execution, Zero Layout Thrashing,
 *            0% CPU Idle Sleep, Mobile-Safe Media Queries
 * ============================================================================
 */

.cyber-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--accent, #A8FF3E);
  box-shadow: 0 0 8px rgba(168, 255, 62, 0.9), 0 0 18px rgba(168, 255, 62, 0.45);
  pointer-events: none;
  z-index: 10000;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0);
  transition: opacity 0.25s ease;
  will-change: transform;
}

.cyber-cursor-dot.is-visible {
  opacity: 1;
}

.cyber-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  margin-left: -16px;
  border-radius: 50%;
  border: 1px solid rgba(168, 255, 62, 0.45);
  background: rgba(168, 255, 62, 0.02);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0);
  transition: opacity 0.3s ease,
              width 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              margin 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease,
              background-color 0.25s ease,
              box-shadow 0.25s ease;
  will-change: transform;
}

.cyber-cursor-ring.is-visible {
  opacity: 1;
}

/* Magnetic Target Lock on Interactive Elements */
.cyber-cursor-ring.is-hovering {
  width: 48px;
  height: 48px;
  margin-top: -24px;
  margin-left: -24px;
  border-color: rgba(168, 255, 62, 0.85);
  background: rgba(168, 255, 62, 0.08);
  box-shadow: 0 0 20px rgba(168, 255, 62, 0.35), inset 0 0 10px rgba(168, 255, 62, 0.12);
}

/* Tactile Click / Down State */
.cyber-cursor-ring.is-clicking {
  border-color: #FFFFFF;
  background: rgba(255, 255, 255, 0.12);
}

/* Device Adaptivity: Auto-Disable on Touchscreens */
@media (hover: none), (pointer: coarse) {
  .cyber-cursor-dot,
  .cyber-cursor-ring {
    display: none !important;
  }
}
