/* Bubble Cursor Animation Styles */

.bubble {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  animation: bubbleFloat 3s ease-out forwards;
}

/* Different bubble sizes for variety */
.bubble.small {
  width: 10px;
  height: 10px;
}

.bubble.medium {
  width: 20px;
  height: 20px;
}

.bubble.large {
  width: 30px;
  height: 30px;
}

/* Bubble colors matching Bluely theme */
.bubble.blue {
  background: radial-gradient(circle at 30% 30%, rgba(100, 200, 255, 0.8), rgba(0, 100, 255, 0.4));
  box-shadow:
    inset -5px -5px 10px rgba(255, 255, 255, 0.5),
    0 0 10px rgba(100, 200, 255, 0.5);
}

.bubble.lavender {
  background: radial-gradient(circle at 30% 30%, rgba(200, 180, 255, 0.8), rgba(150, 100, 255, 0.4));
  box-shadow:
    inset -5px -5px 10px rgba(255, 255, 255, 0.5),
    0 0 10px rgba(200, 180, 255, 0.5);
}

.bubble.pink {
  background: radial-gradient(circle at 30% 30%, rgba(255, 180, 220, 0.8), rgba(255, 100, 200, 0.4));
  box-shadow:
    inset -5px -5px 10px rgba(255, 255, 255, 0.5),
    0 0 10px rgba(255, 180, 220, 0.5);
}

.bubble.white {
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(230, 240, 255, 0.5));
  box-shadow:
    inset -5px -5px 10px rgba(255, 255, 255, 0.8),
    0 0 15px rgba(200, 220, 255, 0.6);
}

/* Floating animation */
@keyframes bubbleFloat {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0);
  }

  10% {
    opacity: 0.8;
    transform: translateY(-10px) scale(1);
  }

  50% {
    opacity: 0.6;
  }

  100% {
    opacity: 0;
    transform: translateY(-200px) translateX(var(--drift-x, 0)) scale(0.5);
  }
}

/* Burst animation for click */
.bubble.burst {
  animation: bubbleBurst 0.6s ease-out forwards !important;
}

@keyframes bubbleBurst {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.5);
  }

  100% {
    opacity: 0;
    transform: scale(0);
  }
}

/* Cursor trail bubble */
.cursor-bubble {
  position: fixed;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(100, 200, 255, 0.6), rgba(0, 150, 255, 0.3));
  box-shadow:
    inset -3px -3px 6px rgba(255, 255, 255, 0.6),
    0 0 15px rgba(100, 200, 255, 0.4);
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.15s ease-out;
  transform: translate(-50%, -50%);
}

/* Particle effects for burst */
.burst-particle {
  position: fixed;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  animation: particleExplode 0.8s ease-out forwards;
}

@keyframes particleExplode {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(0);
  }
}

/* Shimmer effect on bubbles */
.bubble::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 20%;
  width: 40%;
  height: 40%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8), transparent);
  border-radius: 50%;
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% {
    opacity: 0.8;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(1.2);
  }
}

/* Hide default cursor on body for more immersive effect (optional) */
body.bubble-cursor {
  cursor: none;
}

/* Show default cursor on interactive elements */
body.bubble-cursor a,
body.bubble-cursor button,
body.bubble-cursor input,
body.bubble-cursor select,
body.bubble-cursor textarea {
  cursor: pointer;
}