/* Animated Button Component Styles (VengenceUI Inspired) */
@property --mask-x {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 100%;
}

.animated-btn {
  --shine: rgba(255, 255, 255, 0.7);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.75rem;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f4f4f5;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

.animated-btn:hover {
  transform: scale(1.02);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.animated-btn:active {
  transform: scale(0.97);
}

/* Animated Text with Shine Effect */
.animated-btn-text {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-weight: 400;
  letter-spacing: 0.03em;
  background: linear-gradient(110deg, #ffffff 30%, rgba(255, 255, 255, 0.3) 50%, #ffffff 70%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShineSweep 2s linear infinite;
}

/* Border Shine Mask Layer */
.animated-btn-border-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events-none: none;
  background: linear-gradient(-75deg, transparent 30%, var(--shine) 50%, transparent 70%);
  background-size: 200% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: borderShineSweep 2s linear infinite;
}

@keyframes textShineSweep {
  0% {
    background-position: 100% 0;
  }
  50% {
    background-position: -100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

@keyframes borderShineSweep {
  0% {
    background-position: 100% 0;
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  50% {
    background-position: 0% 0;
    opacity: 0;
  }
  100% {
    background-position: 0% 0;
    opacity: 0;
  }
}
