/**
 * AI SEO Page Styles
 * Modern, visually appealing styling for the AI SEO services page
 */

/* Hero Section */
.ai-seo-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  border-radius: 20px;
  padding: 60px 40px;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.ai-seo-hero::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/ai-seo/hero-pattern.svg');
  background-repeat: no-repeat;
  background-position: center right;
  background-size: cover;
  opacity: 0.1;
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.hero-content h2 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(to right, #ffffff, #e0e7ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  letter-spacing: -0.5px;
}

.hero-intro {
  font-size: 1.2rem;
  margin-bottom: 30px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.hero-quote {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px 30px;
  border-radius: 16px;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
  border-left: 5px solid rgba(255, 255, 255, 0.3);
}

.hero-quote blockquote {
  font-size: 1.2rem;
  font-style: italic;
  margin: 0 0 15px 0;
  line-height: 1.5;
  color: #ffffff;
}

.hero-quote cite {
  font-size: 0.95rem;
  opacity: 0.8;
  display: block;
  text-align: right;
  font-style: normal;
}

/* Recovery Comparison */
.recovery-comparison {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
}

.comparison-item {
  flex: 1;
  min-width: 280px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 25px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-item.positive {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.comparison-item h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #ffffff;
  position: relative;
  padding-bottom: 10px;
}

.comparison-item h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.2);
}

.comparison-item.positive h4::after {
  background-color: rgba(255, 255, 255, 0.5);
}

.negative-list, .positive-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.negative-list li, .positive-list li {
  margin-bottom: 12px;
  padding-left: 28px;
  position: relative;
  line-height: 1.5;
}

.negative-list li::before {
  content: '✕';
  color: #fc8181;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.positive-list li::before {
  content: '✓';
  color: #4ade80;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Recovery Visualization */
.recovery-visualization {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.recovery-visualization h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #1e40af;
}

.recovery-visualization p {
  margin-bottom: 30px;
  font-size: 1.1rem;
  color: #4b5563;
}

.feature-chart {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
}

.chart-caption {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 15px;
  font-style: italic;
}

/* Recovery Results Section */
.recovery-results {
  background-color: #f9fafb;
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 40px;
  text-align: center;
}

.recovery-results h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #1e40af;
}

.recovery-results p {
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.chart-container {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  overflow: hidden;
}

.results-note {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 15px;
  font-style: italic;
}

/* AI Sections */
.ai-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.ai-section img {
  max-width: 90%;
  height: auto;
  margin-bottom: 30px;
}

.ai-section h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #1e40af;
}

.ai-section ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 600px;
  text-align: left;
}

.ai-section li {
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  line-height: 1.6;
  font-size: 1.1rem;
  color: #4b5563;
}

.ai-section li::before {
  content: '✓';
  color: #3b82f6;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Zero-Click Recovery Section */
.zero-click-recovery {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  padding: 60px 0;
  margin-bottom: 40px;
}

.zero-click-recovery h3 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #1e40af;
  text-align: center;
}

.section-intro {
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  color: #4b5563;
}

.framework-visual {
  margin-bottom: 40px;
  text-align: center;
}

.full-width-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
}

.stat-card {
  flex: 1;
  min-width: 240px;
  background: #ffffff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: #3b82f6;
  line-height: 1;
  background: linear-gradient(90deg, #3b82f6 0%, #1e40af 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-desc {
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.5;
}

/* A/B Test Section */
.ab-test {
  padding: 60px 40px;
}

.ab-test h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #1e40af;
}

.ab-test p {
  margin-bottom: 30px;
  font-size: 1.1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.caption {
  font-size: 0.9rem;
  color: #6b7280;
  margin-top: 10px;
  font-style: italic;
}

.cta-box {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  border-radius: 16px;
  padding: 40px;
  margin-top: 40px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.cta-box h4 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.cta-box p {
  margin-bottom: 25px;
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

.btn-primary {
  display: inline-block;
  background-color: #ffffff;
  color: #1e40af;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid #ffffff;
}

.btn-primary:hover {
  background-color: transparent;
  color: #ffffff;
}

/* Testimonial Section */
.testimonial-section {
  padding: 60px 0;
  margin-bottom: 40px;
}

.testimonial-section h3 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #1e40af;
  text-align: center;
}

.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
}

.testimonial-card {
  flex: 1;
  min-width: 300px;
  background: #ffffff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  position: relative;
  display: flex;
  flex-direction: column;
}

.industry-label {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: #f0f9ff;
  color: #3b82f6;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
}

.recovery-stats {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  text-align: center;
}

.recovery-percent {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: #3b82f6;
  line-height: 1;
  margin-bottom: 5px;
}

.recovery-label {
  font-size: 0.9rem;
  color: #4b5563;
}

.testimonial-card blockquote {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 0 20px 0;
  flex-grow: 1;
  color: #4b5563;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: auto;
}

.client-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.client-name {
  font-weight: 600;
  margin: 0;
  color: #1e40af;
}

.client-title {
  font-size: 0.85rem;
  margin: 0;
  color: #6b7280;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .hero-content h2 {
    font-size: 2.4rem;
  }
  
  .stats-row {
    flex-direction: column;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .ai-seo-hero {
    padding: 40px 25px;
  }
  
  .hero-content h2 {
    font-size: 2rem;
  }
  
  .hero-intro {
    font-size: 1.1rem;
  }
  
  .recovery-comparison {
    flex-direction: column;
  }
  
  .testimonial-grid {
    flex-direction: column;
  }
}
