/* Newsletter Page Styles */

/* Newsletter Hero */
.newsletter-hero {
  background: linear-gradient(
    135deg,
    var(--eucalyptus-green) 0%,
    var(--rust-orange) 100%
  );
  padding: 6rem 0 4rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.newsletter-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
  animation: float 20s infinite linear;
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
  }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat span {
  font-size: 0.9rem;
  opacity: 0.8;
}

.signup-card {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  color: var(--text-color);
}

.signup-card h2 {
  color: var(--dark-brown);
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.signup-card > p {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.newsletter-form .form-group {
  margin-bottom: 1.5rem;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  margin-top: 1rem;
}

.form-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.form-note i {
  color: var(--eucalyptus-green);
}

/* Newsletter Features */
.newsletter-features {
  padding: 5rem 0;
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  text-align: center;
  padding: 2rem;
  background: var(--light-cream);
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid transparent;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--rust-orange);
}

.feature-icon {
  width: 4rem;
  height: 4rem;
  background: var(--rust-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: background-color 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: var(--dark-brown);
}

.feature-icon i {
  color: white;
  font-size: 1.5rem;
}

.feature-card h3 {
  color: var(--dark-brown);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Newsletter Preview */
.newsletter-preview {
  padding: 5rem 0;
  background: var(--light-cream);
}

.preview-container {
  max-width: 700px;
  margin: 3rem auto 0;
}

.preview-email {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border: 1px solid #e8e5d9;
}

.email-header {
  background: #f8f7f4;
  padding: 1.5rem;
  border-bottom: 1px solid #e8e5d9;
}

.email-meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.email-content {
  padding: 2rem;
}

.email-greeting h3 {
  color: var(--dark-brown);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.email-greeting p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.email-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #f0f0f0;
}

.email-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.email-section h4 {
  color: var(--dark-brown);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.recipe-preview {
  display: flex;
  gap: 1.5rem;
  background: var(--light-cream);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1rem;
}

.recipe-image {
  width: 150px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.recipe-info p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.recipe-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recipe-info li {
  color: var(--eucalyptus-green);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.recipe-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.recipe-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.recipe-list li:last-child {
  border-bottom: none;
}

/* Testimonials */
.newsletter-testimonials {
  padding: 5rem 0;
  background: white;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: var(--light-cream);
  padding: 2rem;
  border-radius: 12px;
  position: relative;
  border: 1px solid #e8e5d9;
}

.testimonial-content {
  margin-bottom: 2rem;
}

.testimonial-content p {
  font-style: italic;
  line-height: 1.6;
  color: var(--text-color);
  position: relative;
}

.testimonial-content p::before {
  content: '"';
  font-size: 3rem;
  color: var(--rust-orange);
  position: absolute;
  left: -1rem;
  top: -0.5rem;
  font-family: Georgia, serif;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info strong {
  display: block;
  color: var(--dark-brown);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.author-info span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
}

.testimonial-rating i {
  color: #ffd700;
  font-size: 1rem;
}

/* Newsletter FAQ */
.newsletter-faq {
  padding: 5rem 0;
  background: var(--light-cream);
}

.newsletter-faq .faq-grid {
  display: grid;
  gap: 1rem;
  max-width: 800px;
  margin: 3rem auto 0;
}

.newsletter-faq .faq-item {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border: 1px solid #e8e5d9;
}

.newsletter-faq .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.newsletter-faq .faq-question:hover {
  background: #f8f7f4;
}

.newsletter-faq .faq-question h3 {
  color: var(--dark-brown);
  font-size: 1.1rem;
  margin: 0;
  font-weight: 600;
}

.newsletter-faq .faq-toggle {
  background: none;
  border: none;
  color: var(--rust-orange);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.newsletter-faq .faq-toggle:hover {
  background: var(--rust-orange);
  color: white;
}

.newsletter-faq .faq-item.active .faq-toggle {
  transform: rotate(45deg);
  background: var(--rust-orange);
  color: white;
}

.newsletter-faq .faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.newsletter-faq .faq-item.active .faq-answer {
  padding: 0 1.5rem 1.5rem;
  max-height: 200px;
}

.newsletter-faq .faq-answer p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.newsletter-faq .faq-answer a {
  color: var(--rust-orange);
  text-decoration: none;
}

.newsletter-faq .faq-answer a:hover {
  text-decoration: underline;
}

/* Final CTA */
.newsletter-cta {
  padding: 5rem 0;
  background: linear-gradient(
    135deg,
    var(--dark-brown) 0%,
    var(--rust-orange) 100%
  );
  color: white;
  text-align: center;
}

.cta-content h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.btn-large {
  padding: 1.25rem 3rem;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.cta-note {
  font-size: 0.9rem;
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-stats {
    justify-content: center;
    gap: 1.5rem;
  }

  .stat strong {
    font-size: 1.5rem;
  }

  .signup-card {
    padding: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .recipe-preview {
    flex-direction: column;
  }

  .recipe-image {
    width: 100%;
    height: 200px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .cta-content h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .newsletter-hero {
    padding: 4rem 0 3rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .signup-card {
    padding: 1.5rem;
  }

  .signup-card h2 {
    font-size: 1.5rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .newsletter-features,
  .newsletter-preview,
  .newsletter-testimonials,
  .newsletter-faq,
  .newsletter-cta {
    padding: 3rem 0;
  }

  .feature-card,
  .testimonial-card {
    padding: 1.5rem;
  }

  .email-content {
    padding: 1.5rem;
  }

  .cta-content h2 {
    font-size: 1.8rem;
  }

  .btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }
}
