/* ============================================
   THE VISITOR'S GUIDE - Features & Additional Styles
   ============================================ */

/* Feature Cards with Background SVGs */
.feature-card {
  position: relative;
  overflow: visible;
  padding: 2.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

[data-theme="dark"] .feature-card {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 107, 107, 0.2);
}

/* Feature badge for 150+ pages */
.feature-badge {
  position: absolute;
  top: -8px;
  right: 15px;
  background: linear-gradient(135deg, #FFD700, #FF6B6B);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 3px 10px rgba(255, 107, 107, 0.4);
  z-index: 2;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.feature-bg-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.feature-bg-icon path,
.feature-bg-icon circle,
.feature-bg-icon rect,
.feature-bg-icon ellipse,
.feature-bg-icon line {
  stroke: var(--brand-primary);
  fill: none;
  opacity: 0.15;
}

.feature-bg-icon g {
  opacity: 0.15;
}

[data-theme="dark"] .feature-bg-icon path,
[data-theme="dark"] .feature-bg-icon circle,
[data-theme="dark"] .feature-bg-icon rect,
[data-theme="dark"] .feature-bg-icon ellipse,
[data-theme="dark"] .feature-bg-icon line {
  stroke: var(--brand-secondary);
  opacity: 0.2;
}

.feature-card h3,
.feature-card p {
  position: relative;
  z-index: 1;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

[data-theme="dark"] .feature-card h3 {
  color: var(--text-primary-dark);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

[data-theme="dark"] .feature-card p {
  color: var(--text-secondary-dark);
}

/* Newsletter Section Layout */
.newsletter-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.newsletter-graphic {
  display: flex;
  justify-content: center;
  align-items: center;
}

.envelope-animation {
  width: 100%;
  max-width: 300px;
  height: auto;
}

/* Envelope Animation */
.envelope-group {
  animation: float-envelope 4s ease-in-out infinite;
}

@keyframes float-envelope {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-10px) rotate(-2deg); }
  75% { transform: translateY(5px) rotate(2deg); }
}

.letter {
  animation: write-letter 3s ease-in-out infinite;
}

@keyframes write-letter {
  0%, 100% { stroke-dashoffset: 0; }
  50% { stroke-dashoffset: 100; }
}

.pulse-1 {
  animation: pulse 3s ease-out infinite;
}

.pulse-2 {
  animation: pulse 3s ease-out infinite 1.5s;
}

@keyframes pulse {
  0% {
    r: 80;
    opacity: 0.3;
  }
  100% {
    r: 150;
    opacity: 0;
  }
}

/* Social Links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-gradient);
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(255, 107, 107, 0.2);
}

.social-link:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
}

.social-link svg {
  width: 24px;
  height: 24px;
  color: white;
}

/* Contact Email */
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--brand-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 1rem 2rem;
  border: 2px solid var(--brand-primary);
  border-radius: 50px;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.05), rgba(255, 183, 0, 0.05));
}

.contact-email:hover {
  background: var(--brand-gradient);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
}

/* Footer Logo */
.footer-logo {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  opacity: 0.7;
}

.footer-logo-img {
  width: 100%;
  height: 100%;
}

.footer-tagline {
  font-style: italic;
  opacity: 0.7;
  margin-top: 0.5rem;
}

/* Improved Section Spacing */
.section-description {
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Hero CTA Buttons */
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .newsletter-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .newsletter-graphic {
    margin-top: 2rem;
  }
  
  .social-links {
    gap: 1rem;
  }
  
  .social-link {
    width: 40px;
    height: 40px;
  }
  
  .contact-email {
    font-size: 1.2rem;
    padding: 0.75rem 1.5rem;
  }
  
  .feature-bg-icon {
    opacity: 0.08;
  }
}