@use 'ui-design-system/src/styles/semantic' as *;

.demo-container {
  padding: $semantic-spacing-layout-section-md;
  max-width: 1200px;
  margin: 0 auto;
  
  h2 {
    font-family: map-get($semantic-typography-heading-h2, font-family);
    font-size: map-get($semantic-typography-heading-h2, font-size);
    font-weight: map-get($semantic-typography-heading-h2, font-weight);
    line-height: map-get($semantic-typography-heading-h2, line-height);
    color: $semantic-color-text-primary;
    margin-bottom: $semantic-spacing-layout-section-sm;
  }
}

.demo-section {
  margin-bottom: $semantic-spacing-layout-section-md;
  
  h3 {
    font-family: map-get($semantic-typography-heading-h3, font-family);
    font-size: map-get($semantic-typography-heading-h3, font-size);
    font-weight: map-get($semantic-typography-heading-h3, font-weight);
    line-height: map-get($semantic-typography-heading-h3, line-height);
    color: $semantic-color-text-primary;
    margin-bottom: $semantic-spacing-content-heading;
  }
  
  h4 {
    font-family: map-get($semantic-typography-heading-h4, font-family);
    font-size: map-get($semantic-typography-heading-h4, font-size);
    font-weight: map-get($semantic-typography-heading-h4, font-weight);
    line-height: map-get($semantic-typography-heading-h4, line-height);
    color: $semantic-color-text-secondary;
    margin-bottom: $semantic-spacing-component-md;
  }
  
  h5 {
    font-family: map-get($semantic-typography-heading-h5, font-family);
    font-size: map-get($semantic-typography-heading-h5, font-size);
    font-weight: map-get($semantic-typography-heading-h5, font-weight);
    line-height: map-get($semantic-typography-heading-h5, line-height);
    color: $semantic-color-text-tertiary;
    margin-bottom: $semantic-spacing-component-sm;
  }
  
  p {
    font-family: map-get($semantic-typography-body-medium, font-family);
    font-size: map-get($semantic-typography-body-medium, font-size);
    font-weight: map-get($semantic-typography-body-medium, font-weight);
    line-height: map-get($semantic-typography-body-medium, line-height);
    color: $semantic-color-text-secondary;
    margin-bottom: $semantic-spacing-content-paragraph;
  }
}

.demo-example {
  margin-bottom: $semantic-spacing-layout-section-sm;
  padding: $semantic-spacing-component-lg;
  background: $semantic-color-surface-secondary;
  border: $semantic-border-width-1 solid $semantic-color-border-subtle;
  border-radius: $semantic-border-radius-md;
}

.demo-row {
  display: flex;
  gap: $semantic-spacing-grid-gap-lg;
  flex-wrap: wrap;
  align-items: flex-start;
  
  @media (max-width: 768px) {
    flex-direction: column;
  }
}

.demo-column {
  flex: 1;
  min-width: 250px;
}

.demo-item {
  padding: $semantic-spacing-component-md;
  background: $semantic-color-primary;
  color: $semantic-color-on-primary;
  border-radius: $semantic-border-radius-sm;
  text-align: center;
  font-family: map-get($semantic-typography-body-medium, font-family);
  font-size: map-get($semantic-typography-body-medium, font-size);
  font-weight: map-get($semantic-typography-body-medium, font-weight);
  line-height: map-get($semantic-typography-body-medium, line-height);
  
  &.small {
    background: $semantic-color-success;
    color: $semantic-color-on-success;
  }
  
  &.medium {
    background: $semantic-color-warning;
    color: $semantic-color-on-warning;
  }
  
  &.large {
    background: $semantic-color-danger;
    color: $semantic-color-on-danger;
  }
}

.demo-section-header,
.demo-section-footer {
  padding: $semantic-spacing-component-lg;
  background: $semantic-color-surface-elevated;
  border: $semantic-border-width-1 solid $semantic-color-border-primary;
  border-radius: $semantic-border-radius-md;
  text-align: center;
  font-weight: $semantic-typography-font-weight-semibold;
  color: $semantic-color-text-primary;
}

.alignment-demo {
  border: $semantic-border-width-2 dashed $semantic-color-border-secondary;
  
  .alignment-container {
    background: $semantic-color-surface;
    min-height: 120px;
    width: 200px;
  }
  
  .alignment-container-horizontal {
    background: $semantic-color-surface;
    min-height: 80px;
    width: 100%;
  }
}

.justify-container {
  background: $semantic-color-surface;
  border: $semantic-border-width-1 solid $semantic-color-border-secondary;
  border-radius: $semantic-border-radius-sm;
  padding: $semantic-spacing-component-sm;
  min-height: 60px;
}