/* ═══════════════════════════════════════════
   CURSOR — Custom cursor styles (Neon Dark Theme)
   ═══════════════════════════════════════════ */

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: var(--z-cursor);
  will-change: transform;
}

.cursor-dot {
  width: 12px;
  height: 12px;
  background: var(--neon-cyan);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width 0.2s ease, height 0.2s ease, background 0.3s ease;
  box-shadow: 0 0 8px rgba(0,229,255,0.4);
}

.cursor-ring {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(0,229,255,0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.3s ease, height 0.3s ease, border-radius 0.3s ease,
              border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  opacity: 0.6;
}

.cursor-ring__label {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  opacity: 0;
  color: var(--neon-cyan);
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

/* ─── Cursor States ─── */

/* Hovering links/buttons */
.cursor-ring.is-hovering {
  width: 68px;
  height: 68px;
  background: rgba(0, 229, 255, 0.08);
  border-color: var(--neon-cyan);
  opacity: 0.9;
  box-shadow: 0 0 20px rgba(0,229,255,0.2);
}

.cursor-ring.is-hovering .cursor-ring__label {
  opacity: 1;
  color: var(--neon-cyan);
}

/* Hovering images/cards */
.cursor-ring.is-exploring {
  width: 84px;
  height: 64px;
  border-radius: var(--border-radius-lg);
  background: rgba(168, 85, 247, 0.1);
  border-color: var(--neon-violet);
  opacity: 0.9;
  box-shadow: 0 0 20px rgba(168,85,247,0.2);
}

.cursor-ring.is-exploring .cursor-ring__label {
  opacity: 1;
  color: var(--neon-violet);
}

/* Dark zone cursor adaptation */
.cursor-dot.is-dark {
  background: var(--neon-cyan);
}

.cursor-ring.is-dark {
  border-color: rgba(0, 229, 255, 0.35);
}

.cursor-ring.is-dark .cursor-ring__label {
  color: var(--neon-cyan);
}

/* Dragging (horizontal scroll) */
.cursor-ring.is-dragging {
  width: 64px;
  height: 44px;
  border-radius: var(--border-radius-lg);
  border-color: var(--neon-green);
  box-shadow: 0 0 15px rgba(0,255,136,0.2);
}

.cursor-ring.is-dragging .cursor-ring__label {
  opacity: 1;
  font-size: 14px;
  color: var(--neon-green);
}

/* ─── Hide on touch devices ─── */
@media (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  .cursor-dot,
  .cursor-ring {
    transition: none;
  }
}
