@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;
  }
}

.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: 200px;
}

.content-box {
  background: $semantic-color-surface-secondary;
}

.inner-content {
  background: $semantic-color-primary;
  color: $semantic-color-on-primary;
  padding: $semantic-spacing-component-sm;
  border-radius: $semantic-border-radius-sm;
  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);
}

.margin-demo-container {
  background: $semantic-color-surface-elevated;
  padding: $semantic-spacing-component-xl;
  border-radius: $semantic-border-radius-md;
  
  .margin-box {
    background: $semantic-color-success;
    color: $semantic-color-on-success;
    padding: $semantic-spacing-component-md;
    text-align: center;
    font-weight: $semantic-typography-font-weight-semibold;
  }
}

.flex-demo {
  gap: $semantic-spacing-component-md;
  
  .flex-item {
    background: $semantic-color-secondary;
    color: $semantic-color-on-secondary;
    padding: $semantic-spacing-component-md;
    border-radius: $semantic-border-radius-sm;
    flex: 1;
    text-align: center;
  }
}

.grid-demo {
  grid-template-columns: repeat(2, 1fr);
  gap: $semantic-spacing-component-md;
  
  .grid-item {
    background: $semantic-color-warning;
    color: $semantic-color-on-warning;
    padding: $semantic-spacing-component-md;
    border-radius: $semantic-border-radius-sm;
    text-align: center;
    font-weight: $semantic-typography-font-weight-semibold;
  }
}

.inline-demo {
  background: $semantic-color-info;
  color: $semantic-color-on-info;
  margin-right: $semantic-spacing-component-sm;
}