/**
 * Feature Zigzag Layout Component
 *
 * Alternating left/right layout for feature showcase sections.
 * Even sections reverse order (image left, text right).
 * Mobile stacks vertically with image on top.
 */

/* ===================================================================
   Hero Section
   =================================================================== */

.features-hero {
  text-align: center;
  padding: var(--spacing-3xl) 0 var(--spacing-2xl);
}

.features-hero h1 {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-extrabold);
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
}

.features-hero .gradient-text {
  background: var(--color-accent-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.features-hero p {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ===================================================================
   Feature Section Base Layout
   =================================================================== */

.feature-section {
  display: flex;
  gap: var(--spacing-2xl);
  align-items: center;
  margin-bottom: var(--spacing-3xl);
}

/* Last section: no bottom margin */
.feature-section:last-child {
  margin-bottom: 0;
}

/* ===================================================================
   Zigzag Pattern - Even Sections Reverse
   =================================================================== */

.feature-section:nth-child(even) {
  flex-direction: row-reverse;
}

/* ===================================================================
   Content Column
   =================================================================== */

.feature-section__content {
  flex: 1 1 50%;
}

.feature-section__title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-lg);
  line-height: 1.3;
}

.feature-section__title .gradient-text {
  background: var(--color-accent-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-section__description {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
}

/* ===================================================================
   Highlight List
   =================================================================== */

.feature-section__highlights {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-section__highlights li {
  position: relative;
  padding-left: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-primary);
  font-size: var(--font-size-base);
  line-height: 1.6;
}

.feature-section__highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 3px;
  height: 1em;
  background: var(--color-accent-gradient);
  border-radius: var(--radius-sm);
}

/* ===================================================================
   Visual Column (Screenshots)
   =================================================================== */

.feature-section__visual {
  flex: 1 1 50%;
}

.feature-section__visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  display: block;
}

/* Glass card styling on visuals */
.feature-section__visual.glass {
  background: var(--color-background-glass);
  backdrop-filter: var(--blur-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-lg);
}

.feature-section__visual.glass img {
  border: none;
  box-shadow: none;
}

/* ===================================================================
   Mobile Layout - Stack Vertically with Image First
   =================================================================== */

@media (max-width: 768px) {
  .feature-section {
    flex-direction: column;
    gap: var(--spacing-xl);
  }

  /* Reset reverse order for even sections on mobile */
  .feature-section:nth-child(even) {
    flex-direction: column;
  }

  /* Image always appears first on mobile */
  .feature-section__visual {
    order: -1;
  }

  .feature-section__content {
    flex: 1 1 auto;
  }

  .feature-section__visual {
    flex: 1 1 auto;
  }

  .feature-section__title {
    font-size: var(--font-size-2xl);
  }

  .feature-section__description {
    font-size: var(--font-size-base);
  }
}
