/* Glass Morph Button Styles */
.glass-morph-button-wrapper {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.glass-morph-button-wrapper:hover {
  transform: scale(1.05);
}

.glass-morph-button-wrapper:active {
  transform: scale(0.95);
}

.glass-morph-button {
  position: relative;
  overflow: hidden;
  -webkit-backdrop-filter: blur(24px);
          backdrop-filter: blur(24px);
  border-width: 2px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transition: all 0.5s ease;
  border-radius: 1rem;
  height: 3.5rem;
  padding: 0 2rem;
  font-weight: 600;
  font-size: 1rem;
}

.glass-morph-button:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Variants */
.glass-morph-button--primary {
  background-image: linear-gradient(to bottom right, 
    rgba(96, 165, 250, 0.15), 
    rgba(168, 85, 247, 0.1), 
    rgba(244, 114, 182, 0.15));
  border-color: rgba(147, 197, 253, 0.25);
}

.glass-morph-button--secondary {
  background-image: linear-gradient(to bottom right, 
    rgba(52, 211, 153, 0.15), 
    rgba(20, 184, 166, 0.1), 
    rgba(34, 211, 238, 0.15));
  border-color: rgba(110, 231, 183, 0.25);
}

.glass-morph-button--accent {
  background-image: linear-gradient(to bottom right, 
    rgba(251, 191, 36, 0.15), 
    rgba(251, 146, 60, 0.1), 
    rgba(239, 68, 68, 0.15));
  border-color: rgba(252, 211, 77, 0.25);
}

/* Animated gradient */
.glass-morph-button__gradient {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, 
    rgba(255, 255, 255, 0.05), 
    rgba(255, 255, 255, 0.03), 
    transparent);
  transform: translateX(-100%);
  transition: transform 1.5s ease-in-out;
}

.glass-morph-button:hover .glass-morph-button__gradient {
  animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Ripple effect */
.glass-morph-button__ripple {
  position: absolute;
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

/* Button content */
.glass-morph-button__content {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Arrow animation */
.glass-morph-button__arrow {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s ease;
}

.glass-morph-button:hover .glass-morph-button__arrow {
  transform: translateX(5px);
}

/* Floating particles */
.glass-morph-button__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glass-morph-button:hover .glass-morph-button__particles {
  opacity: 1;
}

.glass-morph-button__particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  animation: float 2s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(-5px);
    opacity: 0;
  }
  50% {
    transform: translateY(-15px);
    opacity: 1;
  }
  100% {
    transform: translateY(-5px);
    opacity: 0;
  }
}
