/*
  SubletManager - Mobile UX Enhancements
  Easy to enable/disable - just link/unlink this file
*/

/* ========================================
   1. STICKY JOIN WAITLIST BUTTON (MOBILE)
   ======================================== */

.sticky-cta-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  background-color: #fff;
  padding: 12px 20px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
  display: none;
}

.sticky-cta-mobile.show {
  transform: translateY(0);
}

.sticky-cta-mobile .btn {
  width: 100%;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 600;
}

/* Show only on mobile/tablet */
@media (max-width: 991px) {
  .sticky-cta-mobile {
    display: block;
  }
}


/* ========================================
   2. SOCIAL PROOF BADGE
   ======================================== */

.social-proof-badge {
  display: inline-flex;
  align-items: center;
  background-color: rgba(62, 177, 255, 0.1);
  border: 1px solid rgba(62, 177, 255, 0.3);
  padding: 10px 20px;
  border-radius: 100px;
  margin-bottom: 25px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #3eb1ff;
}

.social-proof-badge .badge-icon {
  width: 22px;
  height: 22px;
  margin-right: 10px;
  display: inline-block;
  flex-shrink: 0;
}

.social-proof-badge .badge-icon::before {
  content: "👥";
  font-size: 18px;
}

/* Hide on desktop - show only on mobile/tablet */
@media (min-width: 992px) {
  .social-proof-badge {
    display: none;
  }
}

/* Alternative with checkmark */
.social-proof-badge.verified .badge-icon::before {
  content: "✓";
  background-color: #0fbc49;
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}


/* ========================================
   3. BUTTON HOVER ANIMATIONS
   ======================================== */

/* Smooth scale animation */
.btn--theme,
.btn.hover--theme {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn--theme:hover,
.btn.hover--theme:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(62, 177, 255, 0.35);
}

.btn--theme:active,
.btn.hover--theme:active {
  transform: translateY(0);
}

/* Ripple effect on click */
.btn--theme::after,
.btn.hover--theme::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn--theme:active::after,
.btn.hover--theme:active::after {
  width: 300px;
  height: 300px;
}

/* Pulse animation for primary CTA */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(62, 177, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(62, 177, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(62, 177, 255, 0);
  }
}

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


/* ========================================
   4. SCROLL INDICATOR
   ======================================== */

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: none;
}

.scroll-indicator .mouse {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 15px;
  position: relative;
  animation: fadeInOut 3s infinite;
}

.scroll-indicator .mouse::before {
  content: '';
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 2s infinite;
}

.scroll-indicator .scroll-text {
  display: block;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* Show only on mobile when at top of page */
@media (max-width: 991px) {
  .scroll-indicator.show-mobile {
    display: block;
  }
}

/* Animations */
@keyframes scroll {
  0% {
    opacity: 0;
    top: 8px;
  }
  50% {
    opacity: 1;
    top: 14px;
  }
  100% {
    opacity: 0;
    top: 20px;
  }
}

@keyframes fadeInOut {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}


/* ========================================
   5. FORM ENHANCEMENTS
   ======================================== */

/* Floating label effect on focus */
.hero-waitlist-form .form-control:focus {
  border-color: #3eb1ff;
  box-shadow: 0 0 0 3px rgba(62, 177, 255, 0.1);
  transition: all 0.3s ease;
}

/* Success state animation */
.request-form-msg.success {
  animation: slideInUp 0.5s ease-out;
}

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