/* Newsletter Popup Styles for Chinese American Voices */
.newsletter-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.newsletter-popup.show {
  opacity: 1;
}

.newsletter-popup-content {
  background: white;
  border-radius: 16px;
  padding: 32px;
  max-width: 480px;
  width: 100%;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.newsletter-popup.show .newsletter-popup-content {
  transform: translateY(0);
}

.newsletter-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: #f3f4f6;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #6b7280;
  transition: all 0.2s ease;
}

.newsletter-popup-close:hover {
  background: #e5e7eb;
  color: #374151;
}

.newsletter-popup-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.newsletter-popup-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 8px 0;
  color: #111827;
}

.newsletter-popup-description {
  font-size: 16px;
  text-align: center;
  color: #6b7280;
  margin: 0 0 4px 0;
}

.newsletter-popup-privacy {
  font-size: 13px;
  text-align: center;
  color: #6b7280;
  margin: 8px 0 0 0;
}

.newsletter-popup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter-popup-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.newsletter-popup-input:focus {
  outline: none;
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.newsletter-popup-button {
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.newsletter-popup-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(220, 38, 38, 0.15);
}

.newsletter-popup-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.newsletter-popup-success {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 8px;
  color: #166534;
}

.newsletter-popup-success svg {
  flex-shrink: 0;
  color: #22c55e;
}

.newsletter-popup-success strong {
  display: block;
  margin-bottom: 4px;
}

.newsletter-popup-success p {
  margin: 0;
  font-size: 14px;
  color: #15803d;
}

.newsletter-popup-error {
  padding: 12px;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  color: #991b1b;
  text-align: center;
  margin-top: 12px;
}

.newsletter-popup-error p {
  margin: 0;
  font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .newsletter-popup {
    padding: 16px;
  }

  .newsletter-popup-content {
    padding: 24px;
  }

  .newsletter-popup-title {
    font-size: 20px;
  }

  .newsletter-popup-description {
    font-size: 14px;
  }

  .newsletter-popup-frequency {
    font-size: 13px;
  }
}