/* Newsletter Popup - Matching Site Design */

.newsletter-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
}

.newsletter-popup-overlay.show {
  display: flex;
}

.newsletter-popup {
  background: rgba(255, 255, 255, 0.98);
  /* PERFORMANCE: Reduced backdrop-filter blur for better FPS */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 28px;
  padding: 48px 40px;
  max-width: 500px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.15),
              0 8px 24px rgba(244, 114, 182, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
  /* Elegant gradient border */
  border: 2px solid transparent;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.98)),
    linear-gradient(135deg, rgba(244, 114, 182, 0.3), rgba(249, 168, 212, 0.2), rgba(251, 138, 194, 0.3));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  animation: slideUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.newsletter-popup-content {
  text-align: center;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.newsletter-popup-icon {
  font-size: 3.5rem;
  margin-bottom: 24px;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(244, 114, 182, 0.2));
}

.newsletter-popup-title {
  font-size: 2rem;
  font-weight: 800;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink-900);
  margin: 0 0 16px 0;
  background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-700) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.newsletter-popup-subtitle {
  font-size: 1.0625rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  color: var(--ink-600);
  margin: 0 0 32px 0;
  line-height: 1.65;
  letter-spacing: -0.01em;
}

.newsletter-popup-form {
  margin-bottom: 20px;
}

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

.newsletter-popup-input {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  font-size: 1rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-900);
}

.newsletter-popup-input:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.1),
              0 8px 24px rgba(244, 114, 182, 0.08);
}

.newsletter-popup-submit {
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-600) 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(244, 114, 182, 0.2);
  letter-spacing: 0.01em;
}

.newsletter-popup-submit:hover {
  background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-700) 100%);
  box-shadow: 0 8px 24px rgba(244, 114, 182, 0.3);
}

.newsletter-popup-submit:active {
  box-shadow: 0 2px 8px rgba(244, 114, 182, 0.2);
}

.newsletter-popup-error,
.newsletter-popup-success {
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 500;
  margin-top: 12px;
  display: none;
  line-height: 1.5;
}

.newsletter-popup-error {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.newsletter-popup-success {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.newsletter-popup-footer {
  text-align: center;
  margin-top: 24px;
}

.newsletter-popup-footer-link {
  color: var(--ink-600);
  text-decoration: none;
  font-size: 0.9375rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  cursor: pointer;
  transition: color 0.3s ease;
  background: none;
  border: none;
  padding: 0;
}

.newsletter-popup-footer-link:hover {
  color: var(--ink-900);
}

/* Mobile responsive */
@media (max-width: 640px) {
  .newsletter-popup {
    padding: 36px 24px;
    margin: 16px;
    border-radius: 24px;
    border-width: 2px;
  }
  
  .newsletter-popup-title {
    font-size: 1.75rem;
    letter-spacing: -0.01em;
  }
  
  .newsletter-popup-subtitle {
    font-size: 0.9375rem;
  }
  
  .newsletter-popup-icon {
    font-size: 3rem;
    margin-bottom: 20px;
  }
  
  .newsletter-popup-input-group {
    flex-direction: column;
    gap: 12px;
  }
  
  .newsletter-popup-submit {
    width: 100%;
    padding: 14px 24px;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* Prevents body scroll when popup is open */
body.newsletter-popup-open {
  overflow: hidden;
}

