/* How It Works Page Styles */

/* Hero Section */
.hiw-hero {
  padding: var(--spacing-xl) 0 var(--spacing-lg);
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.05) 0%, rgba(29, 78, 216, 0.05) 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.hiw-hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: var(--spacing-sm);
  background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-active) 100%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hiw-hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Quick Overview Section */
.hiw-overview {
  padding: var(--spacing-xl) 0;
  background: var(--background);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.overview-item {
  text-align: center;
  padding: var(--spacing-md);
}

.overview-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto var(--spacing-sm);
}

.overview-item h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-xs);
  color: var(--text);
}

.overview-item p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Features Section */
.hiw-features {
  padding: var(--spacing-xl) 0;
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.feature-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-xl) 0;
  border-bottom: 1px solid var(--border);
}

.feature-detail:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.feature-detail.reverse {
  direction: rtl;
}

.feature-detail.reverse > * {
  direction: ltr;
}

.feature-badge {
  display: inline-block;
  background: rgb(30 64 175 / 20%);
  color: var(--notification);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--spacing-sm);
}

.feature-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--text);
}

.feature-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: var(--spacing-md);
}

.feature-highlights {
  background: rgb(0 0 0 / 20%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.feature-highlights h4 {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-sm);
  color: var(--text);
}

.feature-highlights ul {
  margin-left: var(--spacing-md);
}

.feature-highlights li {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: var(--spacing-xs);
}

.feature-highlights strong {
  color: var(--notification);
}

.use-case {
  background: rgba(29, 185, 84, 0.1);
  border: 1px solid rgba(29, 185, 84, 0.3);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
}

.use-case strong {
  color: var(--accent-green);
}

.feature-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-img {
  background: var(--background);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  text-align: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease;
}

.placeholder-img:hover {
  border-color: var(--border-hover);
}

.placeholder-img span {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--spacing-xs);
}

.placeholder-img p {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 300px;
}

/* Workflows Section */
.hiw-workflows {
  padding: var(--spacing-xl) 0;
  background: var(--background);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.workflow-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  transition: all 0.3s ease;
}

.workflow-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.workflow-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
  color: var(--text);
}

.workflow-steps {
  margin-bottom: var(--spacing-md);
}

.workflow-step {
  background: rgb(0 0 0 / 20%);
  border-left: 3px solid var(--primary);
  padding: var(--spacing-sm);
  margin-bottom: var(--spacing-xs);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text);
}

.workflow-result {
  background: rgba(30, 64, 175, 0.1);
  border: 1px solid rgba(30, 64, 175, 0.3);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm);
  font-size: 0.9375rem;
  color: var(--text);
}

.workflow-result strong {
  color: var(--notification);
}

/* Comparison Section */
.hiw-comparison {
  padding: var(--spacing-xl) 0;
  background: var(--card-bg);
  border-top: 1px solid var(--border);
}

.comparison-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.comparison-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  transition: all 0.2s ease;
  position: relative;
}

.comparison-card:hover {
  border-color: var(--border-hover);
}

.comparison-card.highlight {
  border: 2px solid var(--primary);
  transform: scale(1.05);
}

.comparison-card.highlight:hover {
  transform: scale(1.05);
}

.best-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comparison-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
  color: var(--text);
  text-align: center;
}

.comparison-pros,
.comparison-cons {
  margin-bottom: var(--spacing-sm);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.comparison-pros {
  color: var(--accent-green);
}

.comparison-pros strong {
  display: block;
  margin-bottom: 4px;
}

.comparison-cons {
  color: var(--text-muted);
}

.comparison-cons strong {
  display: block;
  margin-bottom: 4px;
  color: #ff453a;
}

/* CTA Section */
.hiw-cta {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.1) 0%, rgba(29, 78, 216, 0.1) 100%);
  text-align: center;
  border-top: 1px solid var(--border);
}

.hiw-cta h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--text);
}

.hiw-cta p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-md);
}

.hiw-cta .cta-buttons {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  margin-bottom: var(--spacing-md);
}

.cta-subtext {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Responsive Design */
@media (width <= 1024px) {
  .feature-detail {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .feature-detail.reverse {
    direction: ltr;
  }
}

@media (width <= 768px) {
  .hiw-hero-title {
    font-size: 2.5rem;
  }

  .hiw-hero-subtitle {
    font-size: 1rem;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .feature-title {
    font-size: 1.5rem;
  }

  .feature-description {
    font-size: 1rem;
  }

  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .comparison-cards {
    grid-template-columns: 1fr;
  }

  .comparison-card.highlight {
    transform: none;
  }

  .hiw-cta h2 {
    font-size: 2rem;
  }

  .hiw-cta .cta-buttons {
    flex-direction: column;
  }

  .hiw-cta .btn {
    width: 100%;
  }
}

@media (width <= 480px) {
  .hiw-hero-title {
    font-size: 2rem;
  }

  .feature-detail {
    padding: var(--spacing-md) 0;
  }
}
