/* ========================================
   SECTION HEADER COMPONENT
   ======================================== */

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--spacing-8);
  position: relative;
}

.section-header-left {
  text-align: left;
  margin-left: 0;
}

.section-header-right {
  text-align: right;
  margin-right: 0;
}

/* Section label (pre-header) */
.section-label {
  display: inline-block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  color: var(--color-primary);
  margin-bottom: var(--spacing-2);
  padding: var(--spacing-1) var(--spacing-2);
  background-color: var(--color-primary-50);
  border-radius: var(--border-radius-full);
}

/* Section title */
.section-title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-3);
}

.section-title-light {
  color: white;
}

/* Section subtitle */
.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-header-left .section-subtitle {
  margin-left: 0;
}

.section-header-right .section-subtitle {
  margin-right: 0;
}

.section-subtitle-light {
  color: rgba(255, 255, 255, 0.9);
}

/* Section with decorative line */
.section-header-line {
  position: relative;
  padding-bottom: var(--spacing-4);
}

.section-header-line::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--border-radius-full);
}

.section-header-left.section-header-line::after {
  left: 0;
  transform: none;
}

.section-header-right.section-header-line::after {
  left: auto;
  right: 0;
  transform: none;
}

/* Section with icon */
.section-icon {
  margin-bottom: var(--spacing-3);
  color: var(--color-primary);
}

.section-icon svg {
  width: 48px;
  height: 48px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

/* Section header sizes */
.section-header-sm .section-title {
  font-size: var(--font-size-3xl);
}

.section-header-sm .section-subtitle {
  font-size: var(--font-size-base);
}

.section-header-lg .section-title {
  font-size: var(--font-size-5xl);
}

.section-header-lg .section-subtitle {
  font-size: var(--font-size-xl);
}

/* Section header with background */
.section-header-bg {
  padding: var(--spacing-6);
  background-color: var(--color-background-secondary);
  border-radius: var(--border-radius-xl);
}

.section-header-bg-light {
  background-color: white;
  box-shadow: var(--shadow-sm);
}

/* Dark variant */
.section-header-dark {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  padding: var(--spacing-8);
  border-radius: var(--border-radius-2xl);
  color: white;
}

.section-header-dark .section-title {
  color: white;
}

.section-header-dark .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.section-header-dark .section-label {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .section-header {
    margin-bottom: var(--spacing-6);
  }
  
  .section-title {
    font-size: var(--font-size-3xl);
  }
  
  .section-header-lg .section-title {
    font-size: var(--font-size-4xl);
  }
  
  .section-subtitle {
    font-size: var(--font-size-base);
  }
  
  .section-header-dark {
    padding: var(--spacing-6);
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: var(--font-size-2xl);
  }
  
  .section-header-lg .section-title {
    font-size: var(--font-size-3xl);
  }
}