/**
 * Shared Section Header Component
 *
 * Used by: Projects Widget, Portfolio Widget, and other widgets with section headers
 * Pattern: Section Label + Heading with optional Gradient Text
 */

/* Section Header Container */
.section-header {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 80px;
}

@media (min-width: 1024px) {
  .section-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.section-header-content {
  flex: 1;
}

/* Section Label */
.section-label {
  display: block;
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 24px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  color: var(--section-label-color, #f2b713);
  /* Font size can be overridden via Elementor */
}

/* Section Heading */
.section-heading {
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  max-width: 32rem;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
}

@media (min-width: 1024px) {
  .section-heading {
    font-size: 4.375rem;
  }
}

/* Gradient Text within Heading */
.section-heading-gradient {
  background: linear-gradient(
    to right,
    #ffffff,
    var(--section-gradient-color, #f2b713)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Legacy class support for existing widgets */
.projects-section-label,
.portfolio-section-label {
  display: block;
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 24px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  color: var(--section-label-color, #f2b713);
}

.projects-heading,
.portfolio-heading {
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  max-width: 32rem;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
}

@media (min-width: 1024px) {
  .projects-heading,
  .portfolio-heading {
    font-size: 4.375rem;
  }
}

.projects-heading-gradient,
.portfolio-heading-gradient {
  background: linear-gradient(
    to right,
    #ffffff,
    var(--section-gradient-color, #f2b713)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
