@import './custom-properties.css';

.button-hover,
.btn-gradient {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.button-hover:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 20px 40px rgba(27, 130, 255, 0.25);
}

.btn-gradient {
  background: var(--ff-grad-01);
  color: #fff;
}

.btn-gradient::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.35), transparent);
  transform: translateX(-100%);
  transition: transform 0.45s ease;
}

.btn-gradient:hover::after {
  transform: translateX(0%);
}

.btn-line {
  background: none;
  border: 1px solid var(--ff-color-border);
}

.btn-line::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--ff-color-primary);
  transition: width 0.3s ease, left 0.3s ease;
}

.btn-line:hover::after {
  width: 100%;
  left: 0;
}

.icon-spin:hover { transform: rotate(12deg); }
.icon-bounce:hover { animation: bounce 0.8s; }
.icon-pop:hover { transform: scale(1.12); }
.badge-bounce { animation: bounce 1.4s infinite; }

.notification-slide {
  animation: slide-in 0.6s ease both;
}

.card-reveal {
  position: relative;
  overflow: hidden;
}

.card-reveal::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.card-reveal:hover::after {
  transform: translateX(100%);
}

.image-zoom {
  overflow: hidden;
}

.image-zoom img {
  transition: transform 0.6s ease;
}

.image-zoom:hover img {
  transform: scale(1.06);
}

.text-clip {
  position: relative;
  overflow: hidden;
}

.text-clip span {
  display: inline-block;
  transform: translateY(110%);
  animation: text-up 0.8s forwards;
}

.text-clip.delayed span:nth-child(odd) { animation-delay: 0.1s; }
.text-clip.delayed span:nth-child(even) { animation-delay: 0.2s; }

.underline-left {
  background: linear-gradient(90deg, var(--ff-color-primary), transparent);
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.3s ease;
}

.underline-left:hover { background-size: 100% 2px; }

.underline-center {
  position: relative;
}

.underline-center::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--ff-color-secondary);
  transition: width 0.3s ease, left 0.3s ease;
}

.underline-center:hover::after {
  width: 100%;
  left: 0;
}

.underline-right {
  background: linear-gradient(90deg, transparent, var(--ff-color-accent));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 100% 100%;
  transition: background-size 0.3s ease;
}

.underline-right:hover { background-size: 100% 2px; }

/* Animations */
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

@keyframes slide-in {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes text-up {
  to {
    transform: translateY(0%);
  }
}
