/* AI ERP Specific Styles */

/* Hero Section */
.ai-erp-hero {
  background: linear-gradient(135deg, #0078b0 0%, #004466 100%);
  color: white;
}

.ai-erp-hero .hero-text h1 {
  color: white;
}

.ai-erp-hero .article-category {
  background-color: rgba(255,255,255,0.2);
  color: white;
}

.ai-erp-hero .tag {
  background-color: rgba(255,255,255,0.15);
  color: white;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.feature-card {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  border-left: 4px solid #0078b0;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-icon {
  font-size: 24px;
  color: #0078b0;
  margin-bottom: 10px;
}

.feature-example {
  background: #e6f2f8;
  padding: 10px;
  border-radius: 4px;
  margin-top: 10px;
  font-size: 14px;
}

/* Automation Stats */
.automation-stats {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin: 30px 0;
  gap: 15px;
}

.stat-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  flex: 1;
  min-width: 150px;
}

.stat-value {
  font-size: 32px;
  font-weight: bold;
  color: #0078b0;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 14px;
  color: #666;
}

/* Accordion */
.use-case-accordion {
  margin: 30px 0;
}

.accordion-item {
  margin-bottom: 10px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.accordion-header {
  width: 100%;
  padding: 15px 20px;
  background: #0078b0;
  color: white;
  border: none;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.3s;
}

.accordion-header:hover {
  background: #006094;
}

.accordion-content {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: white;
}

.accordion-content p {
  margin: 15px 0;
}

.accordion-item.active .accordion-content {
  max-height: 500px;
  padding: 20px;
}

.accordion-item.active .accordion-header i.fa-chevron-down {
  transform: rotate(180deg);
}

.accordion-header i {
  transition: transform 0.3s;
}

.case-study {
  background: #f0f7fb;
  padding: 10px;
  border-left: 3px solid #0078b0;
  margin: 15px 0;
  font-size: 14px;
}

/* Conversational Demo */
.conversational-demo {
  display: flex;
  gap: 30px;
  margin: 30px 0;
  align-items: center;
}

.demo-text {
  flex: 1;
}

.demo-image {
  flex: 1;
  text-align: center;
}

.demo-image img {
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  max-width: 100%;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.benefit-card {
  text-align: center;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.benefit-icon {
  font-size: 24px;
  color: #0078b0;
  margin-bottom: 10px;
}

/* Anomaly Cards */
.anomaly-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.anomaly-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.anomaly-header {
  padding: 15px;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
}

.anomaly-header.financial {
  background: #e74c3c;
}

.anomaly-header.inventory {
  background: #3498db;
}

.anomaly-header.hr {
  background: #2ecc71;
}

.anomaly-card ul {
  padding: 15px;
  margin: 0;
}

.anomaly-card li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.anomaly-card li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #0078b0;
}

.detection-process {
  margin: 40px 0;
}

.process-steps {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.step {
  flex: 1;
  min-width: 200px;
  text-align: center;
  position: relative;
  padding-top: 40px;
}

.step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: #0078b0;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Personalization Examples */
.personalization-examples {
  margin: 30px 0;
}

.example-card {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  align-items: center;
}

.example-image {
  flex: 1;
}

.example-image img {
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  max-width: 100%;
}

.example-content {
  flex: 1;
}

/* Case Study Tabs */
.case-study-tabs {
  margin: 40px 0;
}

.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 20px;
}

.tab-button {
  padding: 10px 20px;
  background: #e0e0e0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.tab-button.active {
  background: #0078b0;
  color: white;
}

.tab-content {
  display: none;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.tab-content.active {
  display: block;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.result-card {
  text-align: center;
  padding: 15px;
  background: #f5f5f5;
  border-radius: 6px;
}

.result-value {
  font-size: 24px;
  font-weight: bold;
  color: #0078b0;
}

.result-label {
  font-size: 14px;
  color: #666;
}

/* Implementation Steps */
.implementation-steps {
  margin: 40px 0;
}

.step-card {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: #0078b0;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 20px;
}

.step-content {
  flex: 1;
}

.approach-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.option {
  padding: 15px;
  background: #f5f5f5;
  border-radius: 6px;
}

.quick-wins {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
}

.win-card {
  padding: 15px;
  background: #e6f2f8;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
}

/* ERP AI Matrix */
.erp-ai-matrix {
  margin: 40px 0;
}

.matrix-container {
  overflow-x: auto;
}

.matrix-container table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.matrix-container th, 
.matrix-container td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.matrix-container th {
  background: #0078b0;
  color: white;
}

.matrix-container tr:nth-child(even) {
  background: #f9f9f9;
}

.matrix-container tr:hover {
  background: #f1f1f1;
}

.matrix-container i.fa-check {
  color: #2ecc71;
}

/* Recommendation Cards */
.recommendation-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.recommendation-card {
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.rec-icon {
  font-size: 24px;
  color: #0078b0;
  margin-bottom: 10px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .conversational-demo,
  .example-card {
    flex-direction: column;
  }
  
  .demo-image,
  .example-image {
    order: -1;
  }
  
  .feature-grid,
  .benefits-grid,
  .anomaly-types {
    grid-template-columns: 1fr;
  }
  
  .stat-card {
    min-width: 100%;
  }
  
  .approach-options {
    grid-template-columns: 1fr;
  }
}