/* ==========================================
   WAITLIST MODAL
   BroJack Agent #9 - October 2025
   Email collection modal for "Notify Me" feature
   ========================================== */

.waitlist-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  
  background: rgba(0, 9, 30, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.waitlist-modal-overlay.active {
  opacity: 1;
}

.waitlist-modal {
  position: relative;
  width: 90%;
  max-width: 480px;
  
  background: rgba(28, 35, 56, 0.95);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  
  transform: translateY(40px) scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.waitlist-modal-overlay.active .waitlist-modal {
  transform: translateY(0) scale(1);
}

/* Close button */
.waitlist-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  
  color: #A4A9B6;
  font-size: 16px;
  
  display: flex;
  align-items: center;
  justify-content: center;
  
  cursor: pointer;
  transition: all 0.2s ease;
}

.waitlist-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  transform: scale(1.1);
}

.waitlist-modal-close:active {
  transform: scale(0.95);
}

/* Modal content */
.waitlist-modal-content {
  padding: 48px 32px 32px 32px;
  text-align: center;
}

.waitlist-modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  
  background: linear-gradient(135deg, #555DFF 0%, #667eea 100%);
  border-radius: 50%;
  
  display: flex;
  align-items: center;
  justify-content: center;
  
  box-shadow: 
    0 0 0 8px rgba(85, 93, 255, 0.2),
    0 0 40px rgba(85, 93, 255, 0.4);
  
  animation: pulseModalIcon 2s ease-in-out infinite;
}

@keyframes pulseModalIcon {
  0%, 100% {
    transform: scale(1);
    box-shadow: 
      0 0 0 8px rgba(85, 93, 255, 0.2),
      0 0 40px rgba(85, 93, 255, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 
      0 0 0 12px rgba(85, 93, 255, 0.3),
      0 0 60px rgba(85, 93, 255, 0.6);
  }
}

.waitlist-modal-icon i {
  font-size: 28px;
  color: #FFFFFF;
}

.waitlist-modal-title {
  font-family: 'Archivo', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 12px 0;
  
  background: linear-gradient(135deg, #FFFFFF 0%, #A4A9B6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.waitlist-modal-message {
  font-family: 'Archivo', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #A4A9B6;
  margin: 0 0 32px 0;
}

.waitlist-modal-message strong {
  color: #FFFFFF;
  font-weight: 600;
}

/* Form */
.waitlist-form {
  width: 100%;
}

.waitlist-input-group {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.waitlist-email-input {
  flex: 1;
  padding: 14px 16px;
  
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  
  font-family: 'Archivo', sans-serif;
  font-size: 16px; /* 🔥 BUG FIX (Agent #6 - Oct 26): Increased from 15px to prevent iOS zoom */
  color: #FFFFFF;
  
  transition: all 0.2s ease;
}

.waitlist-email-input::placeholder {
  color: #6B7280;
}

.waitlist-email-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: #555DFF;
  box-shadow: 0 0 0 3px rgba(85, 93, 255, 0.2);
}

.waitlist-submit-btn {
  padding: 14px 24px;
  
  background: linear-gradient(135deg, #555DFF 0%, #667eea 100%);
  border: none;
  border-radius: 12px;
  
  font-family: 'Archivo', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
  
  cursor: pointer;
  
  box-shadow: 
    0 4px 16px rgba(85, 93, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.waitlist-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 
    0 6px 24px rgba(85, 93, 255, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.waitlist-submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.waitlist-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Error message */
.waitlist-error {
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  
  font-family: 'Archivo', sans-serif;
  font-size: 14px;
  color: #FCA5A5;
  text-align: left;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

/* Success message */
.waitlist-success {
  padding: 20px;
  background: rgba(123, 255, 191, 0.1);
  border: 1px solid rgba(123, 255, 191, 0.3);
  border-radius: 12px;
  
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  
  font-family: 'Archivo', sans-serif;
  font-size: 15px;
  color: #7BFFBF;
  text-align: center;
}

.waitlist-success i {
  font-size: 48px;
  color: #7BFFBF;
}

@keyframes successPop {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .waitlist-modal-overlay {
    padding-top: 40px;
  }
  
  .waitlist-modal-content {
    padding: 40px 24px 24px 24px;
  }
  
  .waitlist-modal-icon {
    width: 56px;
    height: 56px;
  }
  
  .waitlist-modal-icon i {
    font-size: 24px;
  }
  
  .waitlist-modal-title {
    font-size: 24px;
  }
  
  .waitlist-modal-message {
    font-size: 14px;
  }
  
  .waitlist-input-group {
    flex-direction: column;
    gap: 8px;
  }
  
  .waitlist-submit-btn {
    width: 100%;
  }
}

