/* Base style included inside each button variant */

/* Wave Button */
.wave-button {
  position: relative;
  padding: 7px 10px;
  color: #fff;
  background-color: #001380;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}

.wave-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  transition: left 0.5s;
}

.wave-button:hover {
  transform: scale(1.03);
}

.wave-button:hover::before {
  left: 100%;
}

/* Glow Button */
.wavy-glow {
  padding: 7px 10px;
  color: #fff;
  background-color: #001380;
  border: 2px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  position: relative;
  background-clip: padding-box;
  z-index: 1;
  transition: box-shadow 0.3s ease;
}

/* Glow effect only on hover */
.wavy-glow:hover {
  box-shadow: 0 0 15px rgba(0, 85, 255, 0.7);
}

.wavy-glow::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 7px;
  background: linear-gradient(90deg, #00f, #0ff, #00f);
  background-size: 300% 100%;
  z-index: -1;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  padding: 2px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Animate on hover */
.wavy-glow:hover::before {
  opacity: 1;
  animation: wave-border 3s linear infinite;
}

/* Always animate if infinite_wavy_glow class is added */
.wavy-glow.infinite_wavy_glow::before {
  opacity: 1;
  animation: wave-border 3s linear infinite;
}

.wavy-glow.infinite_wavy_glow {
  box-shadow: 0 0 15px rgba(0, 85, 255, 0.7);
}

@keyframes wave-border {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 300% 0%;
  }
}

/* Pulse Button */
.pulse-button {
  padding: 7px 10px;
  position: relative;
  color: #fff;
  background-color: #0055a5;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

.pulse-button:hover {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 85, 165, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(0, 85, 165, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 85, 165, 0);
  }
}

/* Infinite Pulse Button */
.infinite-pulse {
  padding: 7px 10px;
  position: relative;
  color: #fff;
  background-color: #0055a5;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

.infinite-pulse {
  animation: infinite-pulse 2s infinite;
}

@keyframes infinite-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 85, 165, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(0, 85, 165, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 85, 165, 0);
  }
}

/* Bounce Button */
.bounce-button {
  padding: 7px 10px;
  color: #fff;
  background-color: #0055a5;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s ease;
  will-change: transform;
}

.infinite-bounce-button {
  padding: 7px 10px;
  color: #fff;
  background-color: #0055a5;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s ease;
  will-change: transform;
  animation: infinite-bounce 1.5s infinite ease-out;
}

.bounce-button:hover {
  animation: bounce 0.5s ease-out;
}

@keyframes bounce {
  0% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-4px);
  }
  60% {
    transform: translateY(4px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes infinite-bounce {
  0% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-4px);
  }
  60% {
    transform: translateY(4px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Slide Buttons */
/* Common Styles for All Slide Buttons */
.slide-button-left,
.slide-button-right,
.slide-button-top,
.slide-button-bottom {
  padding: 7px 10px;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease-out;
  background-size: 200% 100%;
  font-weight: bold;
}

.slide-button-left {
  background: linear-gradient(to right, #001380 50%, #0055ff 50%);
  background-size: 200% 100%;
  background-position: left bottom;
  transition: all 0.3s ease-out;
}

.slide-button-left:hover {
  background-position: right bottom;
  color: #ffffff;
}

/* Slide Button - Right to Left */
.slide-button-right {
  background: linear-gradient(to left, #001380 50%, #0055ff 50%);
  background-size: 200% 100%;
  background-position: right bottom;
  transition: all 0.3s ease-out;
}

.slide-button-right:hover {
  background-position: left bottom;
  color: #ffffff;
}

/* Slide Button - Top to Bottom */
.slide-button-top {
  background: linear-gradient(to bottom, #001380 50%, #0055ff 50%);
  background-size: 100% 200%;
  background-position: top center;
  transition: all 0.3s ease-out;
}

.slide-button-top:hover {
  background-position: bottom center;
  color: #ffffff;
}

/* Slide Button - Bottom to Top */
.slide-button-bottom {
  background: linear-gradient(to top, #001380 50%, #0055ff 50%);
  background-size: 100% 200%;
  background-position: bottom center;
  transition: all 0.3s ease-out;
}

.slide-button-bottom:hover {
  background-position: top center;
  color: #ffffff;
}

/* 3D Button */
.button-3d {
  padding: 7px 10px;
  color: #fff;
  background-color: #2980b9;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3), 0 8px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.15s ease;
}

.button-3d:hover {
  transform: translateY(2px);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3), 0 6px 7px rgba(0, 0, 0, 0.3);
}

.button-3d:active {
  transform: translateY(5px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 2px 3px rgba(0, 0, 0, 0.3);
}

/* Jelly Button */
.jelly-button {
  padding: 7px 10px;
  color: #fff;
  background-color: #0055a5;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.jelly-button:hover {
  animation: jelly 0.8s ease;
}

@keyframes jelly {
  0%,
  100% {
    transform: scale(1, 1);
  }
  30% {
    transform: scale(1.15, 0.9);
  }
  40% {
    transform: scale(0.9, 1.1);
  }
  50% {
    transform: scale(1.05, 0.95);
  }
  60% {
    transform: scale(0.95, 1.05);
  }
  70% {
    transform: scale(1.02, 0.98);
  }
}

/* Skew Button */
.skew-button {
  padding: 7px 10px;
  color: #fff;
  background-color: #0055a5;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.skew-button:hover {
  transform: skew(-10deg);
}

/* Text Expand */
.text-expand {
  padding: 7px 10px;
  color: #fff;
  background-color: #0055a5;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.text-expand:hover {
  letter-spacing: 3px;
}

/* Rotate Button */
.rotate-button {
  padding: 7px 10px;
  color: #fff;
  background-color: #0055a5;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.rotate-button:hover {
  transform: rotate(5deg) scale(1.05);
}

/* Neon Button */
.neon-button {
  padding: 7px 10px;
  color: #00c3ff;
  background-color: transparent;
  border: 2px solid #00c3ff;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0, 195, 255, 0.3);
  text-shadow: 0 0 5px rgba(0, 195, 255, 0.5);
  transition: all 0.3s ease;
}

.neon-button:hover {
  background-color: rgba(0, 195, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 195, 255, 0.8);
  text-shadow: 0 0 8px rgba(0, 195, 255, 0.8);
  color: #0d0d0d;
}
