/* ===== WHATSAPP COMMERCE INSIGHT ENHANCED STYLING =====
   Commerce-themed styling with WhatsApp brand green colors
   Professional business-focused design for WhatsApp commerce content
   ================================================ */

/* WhatsApp Commerce Theme Variables */
.whatsapp-commerce-insight-theme {
  --whatsapp-primary: #25D366;
  --whatsapp-secondary: #128C7E;
  --whatsapp-accent: #075E54;
  --whatsapp-success: #34D399;
  --whatsapp-text: #374151;
  --whatsapp-text-light: #6B7280;
  --gradient-whatsapp: linear-gradient(135deg, #25D366, #128C7E, #34D399);
  --gradient-whatsapp-light: linear-gradient(135deg, rgba(37, 211, 102, 0.05), rgba(18, 140, 126, 0.05), rgba(52, 211, 153, 0.05));
  --gradient-commerce: linear-gradient(135deg, #25D366, #34D399, #10B981);
  --gradient-business: linear-gradient(135deg, #128C7E, #25D366, #34D399);
}

/* Override base article theme with WhatsApp colors */
.whatsapp-commerce-insight-theme.insight-article-theme {
  --insight-article-primary: #25D366;
  --insight-article-secondary: #128C7E;
  --insight-article-accent: #075E54;
  --gradient-article: linear-gradient(135deg, #25D366, #128C7E, #34D399);
  --gradient-article-light: linear-gradient(135deg, rgba(37, 211, 102, 0.05), rgba(18, 140, 126, 0.05), rgba(52, 211, 153, 0.05));
}

/* Enhanced WhatsApp Header */
.whatsapp-commerce-insight-theme .insight-header {
  background: var(--gradient-whatsapp);
  position: relative;
  overflow: hidden;
}

.whatsapp-commerce-insight-theme .insight-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(52, 211, 153, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(7, 94, 84, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(18, 140, 126, 0.15) 0%, transparent 50%);
  animation: whatsappPulse 20s ease-in-out infinite;
}

@keyframes whatsappPulse {
  0%, 100% { 
    transform: translate(0, 0) scale(1); 
    opacity: 0.8;
  }
  33% { 
    transform: translate(25px, -25px) scale(1.05); 
    opacity: 0.9;
  }
  66% { 
    transform: translate(-25px, 25px) scale(0.95); 
    opacity: 0.7;
  }
}

/* WhatsApp Message Icon */
.whatsapp-commerce-insight-theme .insight-category::before {
  content: '💬';
  margin-right: 0.5rem;
}

/* Enhanced Statistics with WhatsApp Theme */
.whatsapp-commerce-insight-theme .stats-highlight {
  background: var(--gradient-whatsapp-light);
  border: 1px solid rgba(37, 211, 102, 0.15);
  position: relative;
}

.whatsapp-commerce-insight-theme .stats-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-whatsapp);
}

.whatsapp-commerce-insight-theme .stat-item {
  background: white;
  border: 1px solid rgba(37, 211, 102, 0.1);
  position: relative;
  overflow: hidden;
}

.whatsapp-commerce-insight-theme .stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-whatsapp);
}

.whatsapp-commerce-insight-theme .stat-item:hover {
  border-color: rgba(37, 211, 102, 0.2);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.1);
}

.whatsapp-commerce-insight-theme .stat-number {
  background: var(--gradient-whatsapp);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Market Opportunity Section */
.whatsapp-commerce-insight-theme .market-opportunity {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.whatsapp-commerce-insight-theme .opportunity-item {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(37, 211, 102, 0.1);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.whatsapp-commerce-insight-theme .opportunity-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-commerce);
}

.whatsapp-commerce-insight-theme .opportunity-item::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: var(--gradient-whatsapp-light);
  transform: rotate(45deg);
  transition: opacity 0.4s ease;
  opacity: 0;
  z-index: -1;
}

.whatsapp-commerce-insight-theme .opportunity-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.15);
  border-color: rgba(37, 211, 102, 0.2);
}

.whatsapp-commerce-insight-theme .opportunity-item:hover::after {
  opacity: 1;
}

.whatsapp-commerce-insight-theme .opportunity-item h4 {
  color: var(--whatsapp-primary);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.whatsapp-commerce-insight-theme .opportunity-item:nth-child(1) h4::before { content: '🛒'; }
.whatsapp-commerce-insight-theme .opportunity-item:nth-child(2) h4::before { content: '📱'; }
.whatsapp-commerce-insight-theme .opportunity-item:nth-child(3) h4::before { content: '💳'; }
.whatsapp-commerce-insight-theme .opportunity-item:nth-child(4) h4::before { content: '⚡'; }

.whatsapp-commerce-insight-theme .opportunity-item p {
  color: var(--whatsapp-text);
  line-height: 1.6;
  margin: 0;
}

/* Technology Spotlight Enhancement */
.whatsapp-commerce-insight-theme .technology-spotlight {
  background: var(--gradient-whatsapp-light);
  border: 1px solid rgba(37, 211, 102, 0.15);
  position: relative;
}

.whatsapp-commerce-insight-theme .technology-spotlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-whatsapp);
}

.whatsapp-commerce-insight-theme .technology-spotlight h3::before {
  content: '📈 ';
}

/* SME Case Studies Section */
.whatsapp-commerce-insight-theme .case-studies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.whatsapp-commerce-insight-theme .case-study {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(37, 211, 102, 0.1);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.05);
  transition: all 0.3s ease;
  position: relative;
}

.whatsapp-commerce-insight-theme .case-study::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-business);
}

.whatsapp-commerce-insight-theme .case-study:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.2);
}

.whatsapp-commerce-insight-theme .case-study-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.whatsapp-commerce-insight-theme .case-study-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
}

.whatsapp-commerce-insight-theme .case-study-info h4 {
  color: var(--whatsapp-primary);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.whatsapp-commerce-insight-theme .case-study-info .industry {
  color: var(--whatsapp-text-light);
  font-size: 0.875rem;
  font-weight: 500;
}

.whatsapp-commerce-insight-theme .case-study-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.whatsapp-commerce-insight-theme .result-metric {
  text-align: center;
  background: var(--gradient-whatsapp-light);
  padding: 1rem;
  border-radius: 12px;
}

.whatsapp-commerce-insight-theme .result-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--whatsapp-primary);
  margin-bottom: 0.25rem;
  font-family: var(--font-mono);
}

.whatsapp-commerce-insight-theme .result-label {
  font-size: 0.75rem;
  color: var(--whatsapp-text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.whatsapp-commerce-insight-theme .case-study-quote {
  font-style: italic;
  color: var(--whatsapp-text);
  line-height: 1.6;
  position: relative;
  padding: 1rem 0;
  border-top: 1px solid rgba(37, 211, 102, 0.1);
}

.whatsapp-commerce-insight-theme .case-study-quote::before {
  content: '"';
  font-size: 2rem;
  color: var(--whatsapp-primary);
  position: absolute;
  top: 0;
  left: -0.25rem;
  opacity: 0.5;
}

/* Implementation Guide Section */
.whatsapp-commerce-insight-theme .implementation-guide {
  background: var(--gradient-whatsapp-light);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid rgba(37, 211, 102, 0.15);
  margin: 3rem 0;
  position: relative;
}

.whatsapp-commerce-insight-theme .implementation-guide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-whatsapp);
}

.whatsapp-commerce-insight-theme .implementation-guide h3 {
  color: var(--whatsapp-primary);
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.whatsapp-commerce-insight-theme .implementation-guide h3::before {
  content: '🛠️';
}

.whatsapp-commerce-insight-theme .implementation-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.whatsapp-commerce-insight-theme .implementation-step {
  background: white;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.1);
  border-left: 3px solid var(--whatsapp-secondary);
  transition: all 0.3s ease;
}

.whatsapp-commerce-insight-theme .implementation-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.12);
  border-left-color: var(--whatsapp-primary);
}

.whatsapp-commerce-insight-theme .step-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.whatsapp-commerce-insight-theme .step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-whatsapp);
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
}

.whatsapp-commerce-insight-theme .step-title {
  color: var(--whatsapp-primary);
  font-size: 1rem;
  font-weight: 700;
}

.whatsapp-commerce-insight-theme .step-description {
  color: var(--whatsapp-text);
  line-height: 1.6;
  margin: 0;
}

/* Revenue Impact Section */
.whatsapp-commerce-insight-theme .revenue-impact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
  padding: 2rem;
  background: var(--gradient-whatsapp-light);
  border-radius: 20px;
  border: 1px solid rgba(37, 211, 102, 0.1);
}

.whatsapp-commerce-insight-theme .revenue-item {
  text-align: center;
  background: white;
  padding: 2rem 1rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.05);
  transition: all 0.3s ease;
  position: relative;
}

.whatsapp-commerce-insight-theme .revenue-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-commerce);
}

.whatsapp-commerce-insight-theme .revenue-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.1);
}

.whatsapp-commerce-insight-theme .revenue-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-whatsapp);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
}

.whatsapp-commerce-insight-theme .revenue-label {
  color: var(--whatsapp-text-light);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Market Trends Section */
.whatsapp-commerce-insight-theme .market-trends {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.whatsapp-commerce-insight-theme .trend-item {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(37, 211, 102, 0.1);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.05);
  transition: all 0.3s ease;
  position: relative;
}

.whatsapp-commerce-insight-theme .trend-item::before {
  content: '';
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--whatsapp-primary);
}

.whatsapp-commerce-insight-theme .trend-item:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.2);
}

.whatsapp-commerce-insight-theme .trend-item h4 {
  color: var(--whatsapp-primary);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.whatsapp-commerce-insight-theme .trend-item p {
  color: var(--whatsapp-text);
  line-height: 1.6;
  margin: 0;
}

.whatsapp-commerce-insight-theme .trend-item strong {
  color: var(--whatsapp-secondary);
  font-weight: 700;
}

/* Business Benefits Section */
.whatsapp-commerce-insight-theme .business-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 3rem 0;
}

.whatsapp-commerce-insight-theme .benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(37, 211, 102, 0.1);
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.05);
  transition: all 0.3s ease;
}

.whatsapp-commerce-insight-theme .benefit-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.1);
  border-color: rgba(37, 211, 102, 0.2);
}

.whatsapp-commerce-insight-theme .benefit-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.whatsapp-commerce-insight-theme .benefit-content h4 {
  color: var(--whatsapp-primary);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.whatsapp-commerce-insight-theme .benefit-content p {
  color: var(--whatsapp-text);
  line-height: 1.6;
  margin: 0;
  font-size: 0.875rem;
}

/* Enhanced CTA with WhatsApp Theme */
.whatsapp-commerce-insight-theme .insight-cta {
  background: var(--color-primary);
}

.whatsapp-commerce-insight-theme .insight-cta::before {
  background: 
    linear-gradient(135deg, var(--color-primary) 0%, rgba(107, 33, 168, 0.9) 50%, var(--color-secondary) 100%),
    radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

/* Enhanced WhatsApp Commerce Footer - Dark Theme */
.whatsapp-commerce-insight-theme .footer {
  background: linear-gradient(135deg, #0A0F0A 0%, #0F1A14 30%, #0A2E1A 70%, #052E16 100%);
  color: white;
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.whatsapp-commerce-insight-theme .footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(135deg, rgba(37, 211, 102, 0.06) 0%, rgba(18, 140, 126, 0.04) 50%, rgba(52, 211, 153, 0.02) 100%),
    radial-gradient(circle at 20% 80%, rgba(18, 140, 126, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(37, 211, 102, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

/* Decorative WhatsApp pattern overlay */
.whatsapp-commerce-insight-theme .footer::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-whatsapp);
  opacity: 0.8;
}

/* Footer Grid Enhancement */
.whatsapp-commerce-insight-theme .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}

/* Footer Title with WhatsApp Accent */
.whatsapp-commerce-insight-theme .footer-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #25D366, #128C7E);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.whatsapp-commerce-insight-theme .footer-title::before {
  content: '💬';
  -webkit-text-fill-color: initial;
  filter: saturate(1.3) brightness(1.1);
}

/* Footer Description */
.whatsapp-commerce-insight-theme .footer-description {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  font-size: 1rem;
}

/* Contact Information Styling */
.whatsapp-commerce-insight-theme .footer-contact {
  font-style: normal;
}

.whatsapp-commerce-insight-theme .footer-contact p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.whatsapp-commerce-insight-theme .contact-mono {
  font-family: var(--font-mono);
  color: #25D366;
  font-weight: 500;
  font-size: 0.9rem;
}

/* Footer Bottom Section */
.whatsapp-commerce-insight-theme .footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(37, 211, 102, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.whatsapp-commerce-insight-theme .footer-bottom p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-size: 0.875rem;
}

/* WhatsApp Commerce Innovation Tagline */
.whatsapp-commerce-insight-theme .footer-bottom::after {
  content: 'Revolutionizing Commerce Through Conversation 🔮';
  font-size: 0.875rem;
  background: linear-gradient(135deg, #34D399, #25D366, #128C7E);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
  display: inline-block;
}

/* Footer Responsive Design */
@media (max-width: 768px) {
  .whatsapp-commerce-insight-theme .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .whatsapp-commerce-insight-theme .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .whatsapp-commerce-insight-theme .market-opportunity,
  .whatsapp-commerce-insight-theme .case-studies,
  .whatsapp-commerce-insight-theme .implementation-steps,
  .whatsapp-commerce-insight-theme .market-trends,
  .whatsapp-commerce-insight-theme .business-benefits {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .whatsapp-commerce-insight-theme .revenue-impact {
    grid-template-columns: repeat(2, 1fr);
    padding: 1.5rem;
  }
  
  .whatsapp-commerce-insight-theme .case-study-results {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .whatsapp-commerce-insight-theme .implementation-guide {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .whatsapp-commerce-insight-theme .revenue-impact {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  
  .whatsapp-commerce-insight-theme .case-study-results {
    grid-template-columns: 1fr;
  }
  
  .whatsapp-commerce-insight-theme .case-study-header {
    flex-direction: column;
    text-align: center;
  }
}