/* Phase 1.26 - New Features Styles */

/* ========================================
   HOW IT WORKS SECTION
   ======================================== */

#how-it-works {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.workflow-step {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 1rem;
  border-radius: 0.5rem;
}

.workflow-step:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.workflow-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto;
}

.workflow-number {
  font-size: 0.875rem;
  padding: 0.25rem 0.75rem;
}

/* ========================================
   USE CASES TABS
   ======================================== */

.use-case-tabs .nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  color: var(--gray-600, #64748b);
  background: white;
  border: 1px solid var(--gray-200, #e2e8f0);
  transition: none;
}

.use-case-tabs .nav-link:hover {
  background: var(--gray-50, #f8fafc);
  border-color: var(--blue-primary, #3b82f6);
  color: var(--blue-primary, #3b82f6);
}

.use-case-tabs .nav-link.active {
  background: var(--blue-primary, #3b82f6);
  color: white;
  border-color: var(--blue-primary, #3b82f6);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.use-case-visual {
  min-height: 400px; /* Uniformized height */
}

.use-case-visual .card {
  transition: none; /* Removed animation */
}

.use-case-visual .card:hover {
  /* Hover animation removed */
}

/* ========================================
   ROI CALCULATOR
   ======================================== */

#roi-calculator {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.roi-metric {
  padding: 1.5rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.roi-metric:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

#roiSlider {
  height: 8px;
  border-radius: 4px;
}

#roiSlider::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #3b82f6;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

#roiSlider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #3b82f6;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

/* ========================================
   COMPARISON TABLE
   ======================================== */

.comparison-table {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.comparison-table thead {
  background: #f8fafc;
}

.comparison-table .feature-col {
  min-width: 280px;
  font-weight: 500;
  color: #1e293b;
  padding: 1rem 1.5rem;
}

.comparison-table .plan-col {
  min-width: 180px;
  border-left: 1px solid #e2e8f0;
  vertical-align: middle;
}

.comparison-table .plan-popular {
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
  border-left: 1px solid #3b82f6; /* Reduced from 2px to 1px */
  border-right: 1px solid #3b82f6; /* Reduced from 2px to 1px */
  position: relative;
}

.comparison-table .plan-popular-cell {
  background: #f0f9ff;
}

.comparison-table .plan-header {
  padding: 1.5rem 0;
}

.comparison-table .plan-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.comparison-table .plan-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #3b82f6;
}

.comparison-table .plan-price .small {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 400;
}

.comparison-table .section-header {
  background: #f1f5f9;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.comparison-table .section-header td {
  padding: 0.75rem 1.5rem;
}

.comparison-table tbody tr {
  transition: background-color 0.2s ease;
}

.comparison-table tbody tr:hover:not(.section-header):not(.cta-row) {
  background: #fefce8;
}

.comparison-table .cta-row {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0; /* Reduced from 2px to 1px */
}

.comparison-table .cta-row .btn {
  transition: all 0.3s ease;
}

.comparison-table .cta-row .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Icons in comparison table */
.comparison-table .bi {
  opacity: 0.7;
}

.comparison-table .bi-check-lg {
  opacity: 1;
}

.comparison-table .bi-x-lg {
  opacity: 1;
  font-size: 1.2rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  /* Workflow */
  .workflow-icon {
    width: 50px;
    height: 50px;
  }

  .workflow-step {
    margin-bottom: 1rem;
  }

  /* Use Case Tabs */
  .use-case-tabs .nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  /* Comparison Table */
  .comparison-table .feature-col {
    min-width: 200px;
    font-size: 0.875rem;
  }
  
  .comparison-table .plan-col {
    min-width: 140px;
    font-size: 0.875rem;
  }

  .comparison-table .plan-name {
    font-size: 1rem;
  }

  .comparison-table .plan-price {
    font-size: 1.25rem;
  }

  /* ROI Calculator */
  .roi-metric {
    padding: 1rem;
  }

  .roi-metric .display-6 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .comparison-table {
    font-size: 0.8125rem;
  }

  .comparison-table .feature-col {
    min-width: 160px;
  }

  .comparison-table .plan-col {
    min-width: 100px;
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.bg-gradient-light {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.text-content-default {
  max-width: 600px;
}

.text-content-wide {
  max-width: 800px;
}

/* Badge colors */
.badge.bg-purple {
  background-color: #8B5CF6 !important;
}

.badge.bg-warning {
  background-color: #F59E0B !important;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up-on-scroll {
  animation: fadeInUp 0.6s ease-out;
}

/* Pulse animation for important elements */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.pulse-on-hover:hover {
  animation: pulse 1.5s infinite;
}
