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

.demo-container {
  padding: $semantic-spacing-layout-section-md;
  max-width: 1200px;
  margin: 0 auto;
}

.demo-section {
  margin-bottom: $semantic-spacing-layout-section-lg;
  
  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;
    border-bottom: $semantic-border-width-1 solid $semantic-color-border-subtle;
    padding-bottom: $semantic-spacing-component-sm;
  }
  
  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-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-row {
  display: grid;
  gap: $semantic-spacing-grid-gap-md;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-bottom: $semantic-spacing-layout-section-sm;
  
  @media (max-width: $semantic-breakpoint-sm) {
    grid-template-columns: 1fr;
  }
}

.demo-card {
  background: $semantic-color-surface-elevated;
  border: $semantic-border-width-1 solid $semantic-color-border-subtle;
  border-radius: $semantic-border-radius-lg;
  padding: $semantic-spacing-component-lg;
  box-shadow: $semantic-shadow-elevation-1;
  
  &:hover {
    box-shadow: $semantic-shadow-elevation-2;
  }
}

.demo-content {
  padding: $semantic-spacing-component-md;
  border-radius: $semantic-border-radius-md;
  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);
  text-align: center;
  border: $semantic-border-width-2 dashed;
  
  &--primary {
    background: $semantic-color-primary;
    color: $semantic-color-on-primary;
    border-color: $semantic-color-on-primary;
  }
  
  &--secondary {
    background: $semantic-color-secondary;
    color: $semantic-color-on-secondary;
    border-color: $semantic-color-on-secondary;
  }
  
  &--success {
    background: $semantic-color-success;
    color: $semantic-color-on-success;
    border-color: $semantic-color-on-success;
  }
  
  &--warning {
    background: $semantic-color-warning;
    color: $semantic-color-on-warning;
    border-color: $semantic-color-on-warning;
  }
  
  &--danger {
    background: $semantic-color-danger;
    color: $semantic-color-on-danger;
    border-color: $semantic-color-on-danger;
  }
  
  &--info {
    background: $semantic-color-info;
    color: $semantic-color-on-info;
    border-color: $semantic-color-on-info;
  }
  
  &--dark {
    background: $semantic-color-text-primary;
    color: $semantic-color-surface-primary;
    border-color: $semantic-color-surface-primary;
  }
  
  &--inline {
    padding: $semantic-spacing-component-xs $semantic-spacing-component-sm;
    background: $semantic-color-primary;
    color: $semantic-color-on-primary;
    border-color: $semantic-color-on-primary;
    border-radius: $semantic-border-radius-sm;
    font-weight: $semantic-typography-font-weight-semibold;
  }
}

.viewport-info {
  margin: $semantic-spacing-layout-section-sm 0;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  
  .demo-content {
    font-weight: $semantic-typography-font-weight-bold;
    font-size: map-get($semantic-typography-heading-h4, font-size);
    padding: $semantic-spacing-component-lg;
    margin: 0;
  }
}

ul {
  font-family: map-get($semantic-typography-body-medium, font-family);
  font-size: map-get($semantic-typography-body-medium, font-size);
  line-height: map-get($semantic-typography-body-medium, line-height);
  color: $semantic-color-text-secondary;
  padding-left: $semantic-spacing-component-lg;
  
  li {
    margin-bottom: $semantic-spacing-content-list-item;
  }
}