/**
 * Email Signup Popup Styles
 */

/* Popup Overlay */
#email-signup-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#email-signup-popup.show {
  opacity: 1;
}

/* Popup Content - Glass Morphism Effect */
.email-signup-content {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

#email-signup-popup.active .email-signup-content {
  transform: scale(1);
}

/* Close Button */
.close-popup {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 24px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.close-popup:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

/* Icon */
.email-signup-icon {
  font-size: 60px;
  text-align: center;
  margin-bottom: 20px;
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Title */
.email-signup-title {
  color: white;
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Description */
.email-signup-description {
  color: rgba(255, 255, 255, 0.95);
  font-size: 16px;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Buttons Container */
.email-signup-buttons {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

/* Primary Button */
.email-signup-btn-primary {
  flex: 1;
  padding: 15px 25px;
  background: white;
  color: #667eea;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.email-signup-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Secondary Button */
.email-signup-btn-secondary {
  flex: 1;
  padding: 15px 25px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.email-signup-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.8);
}

/* Form Container */
#email-signup-form-container {
  display: none;
}

/* Form */
#email-signup-form {
  margin-top: 20px;
}

/* Form Group */
.email-signup-form-group {
  margin-bottom: 20px;
}

/* Label */
.email-signup-form-group label {
  display: block;
  color: white;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 8px;
}

/* Input */
.email-signup-form-group input[type="email"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: white;
  box-sizing: border-box;
  transition: all 0.3s;
}

.email-signup-form-group input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.email-signup-form-group input[type="email"]:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.2);
}

/* Checkbox Container */
.email-signup-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.email-signup-checkbox input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.email-signup-checkbox label {
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
  flex: 1;
}

/* Submit Button */
.email-signup-submit {
  width: 100%;
  padding: 15px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.email-signup-submit:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.email-signup-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Error Message */
#email-signup-error {
  display: none;
  background: rgba(255, 59, 48, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 59, 48, 0.5);
  color: #ffcccc;
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 14px;
  text-align: center;
}

/* Success Message */
#email-signup-success {
  display: none;
  text-align: center;
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .email-signup-content {
    padding: 30px 20px;
    max-width: 95%;
  }
  
  .email-signup-title {
    font-size: 24px;
  }
  
  .email-signup-description {
    font-size: 14px;
  }
  
  .email-signup-buttons {
    flex-direction: column;
  }
  
  .email-signup-icon {
    font-size: 50px;
  }
}

/* Animation for form appearance */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#email-signup-form-container {
  animation: slideIn 0.3s ease;
}

/* Desktop Notification Badge */
.free-scratcher-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
  color: white;
  font-size: 10px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 12px;
  margin-left: 8px;
  vertical-align: middle;
  animation: pulse 2s infinite;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 2px 12px rgba(255, 107, 107, 0.6);
  }
}

/* Mobile Notification */
#mobile-free-scratcher-notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 15px 25px;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 9999;
  transition: all 0.3s ease;
  display: none;
}

#mobile-free-scratcher-notification.show {
  display: block;
  transform: translateX(-50%) translateY(0);
}

#mobile-free-scratcher-notification:hover {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transform: translateX(-50%) translateY(-2px);
}

.mobile-notif-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-notif-icon {
  font-size: 24px;
  animation: bounce 1s infinite;
}

.mobile-notif-text {
  font-size: 16px;
  font-weight: bold;
  white-space: nowrap;
}

/* Show mobile notification only on mobile */
@media (min-width: 769px) {
  #mobile-free-scratcher-notification {
    display: none !important;
  }
}

/* Hide desktop badge on mobile */
@media (max-width: 768px) {
  .free-scratcher-badge {
    display: none !important;
  }
}

/* Select and text input styles */
.email-signup-form-group select,
.email-signup-form-group input[type="text"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: white;
  box-sizing: border-box;
  transition: all 0.3s;
}

.email-signup-form-group select option {
  background: rgba(30, 30, 30, 0.95);
  color: white;
}

.email-signup-form-group input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.email-signup-form-group select:focus,
.email-signup-form-group input[type="text"]:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.2);
}

