/**
 * AI SEO Trends Page Styles
 * Modern, visually appealing styling for the AI SEO trends content
 */

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

.ai-trends-flex-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  max-width: 1320px;
  margin: 0 auto;
}

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

.ai-trends-hero .hero-content {
  max-width: 600px;
  position: relative;
  z-index: 2;
  flex: 1;
}

.hero-image-container {
  flex: 1;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: -2rem;
}

.hero-image {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
  animation: float 6s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.ai-trends-hero h1 {
  font-size: 3.8rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  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;
}

.ai-trends-hero .hero-tagline {
  font-size: 1.3rem;
  margin-bottom: 2.25rem;
  opacity: 0.95;
  line-height: 1.6;
  max-width: 90%;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 2.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem 2rem;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 0 1rem;
}

.hero-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 70%;
  background: rgba(255, 255, 255, 0.2);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, #ffffff, #e0e7ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.stat-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.badge {
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
}

.badge-primary {
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.badge-secondary {
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-accent {
  background-color: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.badge i {
  margin-right: 0.5rem;
}

/* Content Sections */
.content-section {
  padding: 4rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.content-section:last-child {
  border-bottom: none;
}

.section-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  color: var(--primary-dark);
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
}

.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

/* Overview Section */
.overview-section {
  background-color: #f8fafc;
}

.summary-box {
  background-color: white;
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.summary-text {
  font-size: 1.25rem;
  line-height: 1.7;
  margin: 0;
  color: var(--text-primary);
}

/* Trend Sections */
.trend-section {
  padding: 5rem 0;
}

.trend-section:nth-child(odd) {
  background-color: white;
}

.trend-section:nth-child(even) {
  background-color: #f8fafc;
}

.trend-section h3 {
  font-size: 1.75rem;
  margin: 2rem 0 1rem;
  color: var(--primary-dark);
}

.trend-image {
  margin: 0 0 2rem;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.trend-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.trend-image:hover img {
  transform: scale(1.02);
}

.trend-image figcaption {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
}

.implementation-box, .case-study-box, .tool-recommendation {
  background-color: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-left: 4px solid transparent;
}

.implementation-box {
  border-left-color: #3b82f6;
}

.case-study-box {
  border-left-color: #10b981;
}

.tool-recommendation {
  border-left-color: #8b5cf6;
}

.implementation-box h4, .case-study-box h4, .tool-recommendation h4 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: var(--primary-dark);
}

/* FAQ Section */
.faq-section {
  background-color: #f8fafc;
  padding: 5rem 0;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: white;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.faq-question {
  padding: 1.5rem;
  margin: 0;
  font-size: 1.25rem;
  cursor: pointer;
  position: relative;
  font-weight: 600;
  color: var(--primary-dark);
}

.faq-question::after {
  content: '\f107';
  font-family: 'Font Awesome 6 Free';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
}

.faq-answer p, .faq-answer ul, .faq-answer ol {
  margin-top: 0;
  line-height: 1.7;
  color: var(--text-secondary);
}

.faq-answer ul, .faq-answer ol {
  padding-left: 1.5rem;
}

.faq-answer li {
  margin-bottom: 0.5rem;
}

/* Recovery CTA Enhancement */
.recovery-cta {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  padding: 4rem 0;
  color: white;
  border-radius: 12px;
  margin: 4rem 0;
  position: relative;
  overflow: hidden;
}

.recovery-cta::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 30%;
  height: 100%;
  background-image: url('../images/recovery-pattern.svg');
  background-repeat: no-repeat;
  background-position: center right;
  background-size: cover;
  opacity: 0.1;
}

.recovery-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.recovery-stat {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.recovery-stat:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
  color: white;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
  .ai-trends-hero {
    padding: 3rem 0;
  }
  
  .ai-trends-hero h1 {
    font-size: 2rem;
  }
  
  .ai-trends-hero .hero-tagline {
    font-size: 1rem;
  }
  
  .section-header h2 {
    font-size: 1.75rem;
  }
  
  .summary-text {
    font-size: 1.1rem;
  }
  
  .trend-section {
    padding: 3rem 0;
  }
  
  .faq-question {
    font-size: 1.1rem;
    padding: 1.25rem;
  }
}

/* Zero-Click Recovery Highlight */
.zero-click-highlight {
  background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 700;
}

.zero-click-callout {
  background-color: rgba(59, 130, 246, 0.1);
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
}

.zero-click-callout h4 {
  margin-top: 0;
  color: var(--primary-color);
}
