/* 
 * Enhanced UI Elements for Gen Z and Alpha
 * Modern animations and interactive components
 */

/* Subtle Hover Animations */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(46, 204, 113, 0.15);
}

/* Card with hover effect */
.card.interactive {
  overflow: hidden;
  position: relative;
}

.card.interactive::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-green) 0%, var(--accent-green) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.card.interactive:hover::before {
  transform: scaleX(1);
}

/* Modern form styles */
.floating-label {
  position: relative;
  margin-bottom: 20px;
}

.floating-label input,
.floating-label select,
.floating-label textarea {
  height: 50px;
  width: 100%;
  padding: 0 15px;
  border: 1px solid #e2e8f0;
  border-radius: var(--border-radius);
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
}

.floating-label label {
  position: absolute;
  top: 15px;
  left: 15px;
  color: #64748b;
  transition: all 0.3s ease;
  pointer-events: none;
  background: transparent;
  padding: 0 5px;
}

.floating-label input:focus,
.floating-label select:focus,
.floating-label textarea:focus,
.floating-label input:not(:placeholder-shown),
.floating-label select:valid,
.floating-label textarea:not(:placeholder-shown) {
  border-color: var(--primary-green);
  padding-top: 15px;
}

.floating-label input:focus + label,
.floating-label select:focus + label,
.floating-label textarea:focus + label,
.floating-label input:not(:placeholder-shown) + label,
.floating-label select:valid + label,
.floating-label textarea:not(:placeholder-shown) + label {
  transform: translateY(-23px) scale(0.85);
  color: var(--primary-green);
  background: white;
}

/* Button with ripple effect */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::after {
  content: '';
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10, 10);
  opacity: 0;
  transition: transform .5s, opacity 1s;
}

.btn-ripple:active::after {
  transform: scale(0, 0);
  opacity: .3;
  transition: 0s;
}

/* Skeleton loading animation */
.skeleton-loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: var(--border-radius);
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Notification badge */
.notification-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: #ff4757;
  color: white;
  font-size: 10px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Progress steps */
.progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #e2e8f0;
  color: #64748b;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.progress-step.active .step-number {
  background-color: var(--primary-green);
  color: white;
}

.step-title {
  font-size: 12px;
  color: #64748b;
  transition: all 0.3s ease;
}

.progress-step.active .step-title {
  color: var(--primary-green-dark);
  font-weight: 600;
}

.progress-line {
  position: absolute;
  top: 15px; /* Half of step-number height */
  left: calc(-50% + 15px); /* Half of the line length plus half of the step-number width */
  right: calc(50% + 15px);
  height: 2px;
  background-color: #e2e8f0;
  z-index: -1;
}

.progress-step:first-child .progress-line {
  display: none;
}

.progress-step.active .progress-line {
  background-color: var(--primary-green);
}

/* Switchable Themes Support - Light/Dark Toggle */
.theme-switch {
  position: relative;
  width: 60px;
  height: 30px;
  margin: 0 15px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.theme-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e2e8f0;
  transition: .4s;
  border-radius: 30px;
}

.theme-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .theme-slider {
  background-color: var(--primary-green);
}

input:focus + .theme-slider {
  box-shadow: 0 0 1px var(--primary-green);
}

input:checked + .theme-slider:before {
  transform: translateX(30px);
}

/* Emoji for Gen Z Appeal */
.emoji-reaction {
  display: flex;
  gap: 10px;
  margin: 15px 0;
}

.emoji-btn {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.2s ease;
  padding: 5px;
}

.emoji-btn:hover {
  transform: scale(1.2);
}
