/* 
   LUX Neo Neon Buttons CSS
   Animated neon button styles for the LUX Neo website
*/

/* Electric Button (Lightning Icon) */
.neon-button {
  position: relative;
  background: #444;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  border: none;
  letter-spacing: 0.1rem;
  font-size: 0.8rem;
  padding: 0.5rem 1.5rem;
  transition: 0.2s;
  margin-right: 8px;
  display: inline-flex;
  align-items: center;
  /* Add fixed width and height to prevent layout shifts */
  min-width: 120px;
  height: 36px;
  justify-content: center;
}

.neon-button:hover {
  /* Remove letter-spacing change to prevent layout shifts */
  background: var(--clr, #F97316);
  color: var(--clr, #F97316);
  animation: box 3s infinite;
}

.neon-button::before {
  content: "";
  position: absolute;
  inset: 2px;
  background: #272822;
}

.neon-button span {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

.neon-button .icon {
  margin-right: 5px;
}

.neon-button i {
  position: absolute;
  inset: 0;
  display: block;
}

.neon-button i::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  left: 80%;
  top: -2px;
  border: 2px solid var(--clr, #F97316);
  background: #272822;
  transition: 0.2s;
}

.neon-button:hover i::before {
  width: 12px;
  left: 20%;
  animation: move 3s infinite;
}

.neon-button i::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  left: 20%;
  bottom: -2px;
  border: 2px solid var(--clr, #F97316);
  background: #272822;
  transition: 0.2s;
}

.neon-button:hover i::after {
  width: 12px;
  left: 80%;
  animation: move 3s infinite;
}

@keyframes move {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes box {
  0% {
    box-shadow: none;
  }
  50% {
    box-shadow: 0 0 25px var(--clr, #F97316);
  }
  100% {
    box-shadow: none;
  }
}

/* Button Color Variants */
.neon-button.orange {
  --clr: #F97316;
}

.neon-button.red {
  --clr: #EF4444;
}

.neon-button.blue {
  --clr: #60a5fa;
}

.neon-button.green {
  --clr: #4ade80;
}

.neon-button.purple {
  --clr: #8b5cf6;
}
