/* /styles/components/cursor.css */

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate3d(-50%, -50%, 0);
  will-change: transform;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-glow);
  border-radius: 50%;
  transition: width 250ms var(--ease-out-expo),
              height 250ms var(--ease-out-expo),
              background 250ms var(--ease-out-quart),
              opacity 250ms var(--ease-out-quart);
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid oklch(0.78 0.150 65 / 0.5);
  border-radius: 50%;
  transition: width 350ms var(--ease-out-expo),
              height 350ms var(--ease-out-expo),
              border-color 250ms var(--ease-out-quart),
              opacity 250ms var(--ease-out-quart);
}

[data-cursor-state="hover"] .cursor-dot {
  width: 0;
  height: 0;
  opacity: 0;
}

[data-cursor-state="hover"] .cursor-ring {
  width: 64px;
  height: 64px;
  border-color: var(--accent-primary);
  background: oklch(0.62 0.130 55 / 0.12);
  backdrop-filter: blur(2px);
}

[data-cursor-state="image"] .cursor-ring {
  width: 96px;
  height: 96px;
  border: none;
  background: oklch(0.10 0.015 50 / 0.85);
  color: var(--text-primary);
  display: grid;
  place-items: center;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 0.95rem;
}

[data-cursor-state="image"] .cursor-ring::after {
  content: 'ver';
}

[data-cursor-state="text"] .cursor-dot {
  width: 2px;
  height: 22px;
  border-radius: 2px;
}

[data-cursor-state="text"] .cursor-ring {
  opacity: 0;
}

@media (hover: none), (max-width: 768px) {
  .cursor-dot, .cursor-ring { display: none; }
}