/**
 * Newsletter Section Styles
 * Separated from inline styles for better maintainability
 */

/* Newsletter Section Base */
.newsletter-section {
  background: var(--neural-black, #0A0A0B);
  color: white;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  width: 100vw;
  position: sticky;
  position: -webkit-sticky;
  top: 75px;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin-left: calc(-50vw + 50%);
}

.newsletter-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.newsletter-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 7.2rem 0;
  min-height: 278px;
}

/* Left Column: Text */
.newsletter-left {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding-left: 2rem;
}

.newsletter-title {
  font-size: 4.2rem;
  line-height: 1.1;
  font-weight: 200;
  margin: 0;
  letter-spacing: -0.02em;
  color: white;
}

.newsletter-highlight {
  background: linear-gradient(135deg, var(--neural-purple, #3c1361), var(--neural-orange, #d97706));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.newsletter-subtitle {
  font-size: 1.4rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  font-weight: 300;
  letter-spacing: normal;
}

/* Right Column: Form */
.newsletter-right {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  width: 100%;
  max-width: 750px;
  justify-content: center;
  align-items: center;
}

.newsletter-email-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 0;
  max-width: 550px;
}

.newsletter-email-input-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Ensure crisp rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  will-change: transform;
}

.newsletter-email-input {
  width: 100%;
  padding: 1.5rem 1.75rem 1.5rem 4rem;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: white;
  font-size: 1.25rem;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  /* backdrop-filter: blur(10px); removed - causing blur */
  height: 65px;
}

.newsletter-email-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s ease;
}

.newsletter-email-input:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
}

.newsletter-email-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--neural-purple, #3C1361);
  box-shadow: 
    0 0 0 3px rgba(60, 19, 97, 0.2),
    0 10px 40px rgba(60, 19, 97, 0.15);
  transform: translateY(-2px);
}

.newsletter-email-input:focus::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-subscribe-btn {
  padding: 1.5rem 3.5rem;
  background: linear-gradient(135deg, var(--neural-purple, #3C1361), var(--neural-orange, #d97706));
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.125rem;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  min-width: 160px;
  flex-shrink: 0;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(60, 19, 97, 0.2);
}

.newsletter-subscribe-btn:hover {
  background: linear-gradient(135deg, var(--neural-orange, #d97706), var(--neural-purple, #3C1361));
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(217, 119, 6, 0.3);
}

.newsletter-subscribe-btn:active {
  transform: translateY(0);
}

.newsletter-subscribe-btn--loading {
  opacity: 0.7;
  cursor: wait;
}

/* Success Message */
.newsletter-success {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: rgba(217, 119, 6, 0.1);
  border: 2px solid rgba(217, 119, 6, 0.3);
  border-radius: 12px;
  color: var(--neural-orange, #d97706);
  font-size: 1.125rem;
  font-weight: 500;
  animation: fadeIn 0.5s ease;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
  .newsletter-section {
    position: sticky;
    top: 60px;
  }
  
  .newsletter-content {
    padding: 4.8rem 0;
    min-height: 240px;
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .newsletter-container {
    padding: 0 1.5rem;
  }
  
  .newsletter-left {
    text-align: center;
    padding-left: 0;
  }
  
  .newsletter-title {
    font-size: 3rem;
  }
  
  .newsletter-subtitle {
    font-size: 0.875rem;
  }
  
  .newsletter-right {
    padding-right: 0;
  }
  
  .newsletter-form {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    max-width: 100%;
  }
  
  .newsletter-email-input-wrapper {
    width: 100%;
    max-width: 100%;
  }
  
  .newsletter-subscribe-btn {
    width: 100%;
  }
  
  .newsletter-success {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .newsletter-section {
    top: 60px;
  }
  
  .newsletter-content {
    padding: 3.8rem 0;
    min-height: 216px;
  }
  
  .newsletter-container {
    padding: 0 1rem;
  }
  
  .newsletter-title {
    font-size: 2.5rem;
  }
  
  .newsletter-subtitle {
    font-size: 0.875rem;
  }
  
  .newsletter-email-input {
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  .newsletter-subscribe-btn {
    font-size: 1rem;
    padding: 1rem 2rem;
  }
}