/**
 * Custom Cursor Trail Effects
 * Themed particle trails that follow the mouse
 */

/* Mouse trail characters */
.mouse-trail {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  font-size: 18px;
  font-weight: 600;
  font-family: 'Inter', monospace;
  opacity: 0.7;
  transform: translate(-50%, -50%);
  animation: trail-float 1s ease-out forwards;
  user-select: none;
}

.mouse-trail--large {
  font-size: 22px;
}

/* SVG trail particles (for ethereum) */
.mouse-trail-svg {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.7;
  transform: translate(-50%, -50%);
  animation: trail-float 1s ease-out forwards;
  user-select: none;
}

@keyframes trail-float {
  0% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
  50% {
    opacity: 0.4;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -80%) scale(0.5) rotate(15deg);
  }
}

/* Theme picker */
.cursor-theme-picker {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 10px;
  padding: 4px;
  z-index: 10001;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.cursor-theme-picker:hover {
  opacity: 1;
}

.cursor-theme-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: #52525b;
  cursor: pointer !important;
  padding: 0;
}

.cursor-theme-btn:hover {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}

.cursor-theme-btn.active {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
  font-weight: 700;
}

.cursor-theme-btn svg {
  width: 16px;
  height: 16px;
}

/* Hide on touch devices */
@media (hover: none) and (pointer: coarse) {
  .mouse-trail,
  .mouse-trail-svg,
  .cursor-theme-picker {
    display: none !important;
  }
}

/* Reduce motion support */
@media (prefers-reduced-motion: reduce) {
  .mouse-trail,
  .mouse-trail-svg,
  .cursor-theme-picker {
    display: none !important;
  }
}
