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

.demo-container {
  padding: $semantic-spacing-layout-section-sm;
  max-width: 1200px;
  margin: 0 auto;
  
  h1 {
    color: $semantic-color-text-primary;
    margin-bottom: $semantic-spacing-layout-section-sm;
    border-bottom: 2px solid $semantic-color-border-primary;
    padding-bottom: $semantic-spacing-component-md;
  }
}

.demo-section {
  margin-bottom: $semantic-spacing-layout-section-md;
  
  h2 {
    color: $semantic-color-text-primary;
    margin-bottom: $semantic-spacing-component-lg;
    font-size: $base-typography-font-size-xl;
  }
  
  h3 {
    color: $semantic-color-text-secondary;
    margin: $semantic-spacing-component-lg 0 $semantic-spacing-component-md 0;
    font-size: $base-typography-font-size-lg;
  }
  
  p {
    margin-bottom: $semantic-spacing-component-md;
    line-height: $base-typography-line-height-relaxed;
    color: $semantic-color-text-primary;
  }
}

.theme-controls {
  display: flex;
  gap: $semantic-spacing-component-sm;
  margin-bottom: $semantic-spacing-component-lg;
  flex-wrap: wrap;
}

.theme-btn {
  padding: $semantic-spacing-component-sm $semantic-spacing-component-md;
  border: $semantic-border-button-width $semantic-border-button-style $semantic-color-border-primary;
  border-radius: $semantic-border-button-radius;
  background: $semantic-color-surface-primary;
  color: $semantic-color-text-primary;
  cursor: pointer;
  font-size: $base-typography-font-size-sm;
  text-transform: capitalize;
  transition: all $semantic-duration-fast $semantic-easing-standard;
  
  &:hover {
    background: $semantic-color-surface-elevated;
    border-color: $semantic-color-brand-primary;
  }
  
  &.active {
    background: $semantic-color-brand-primary;
    color: $semantic-color-on-brand-primary;
    border-color: $semantic-color-brand-primary;
  }
  
  &:focus-visible {
    outline: $semantic-border-focus-width solid $semantic-color-focus;
    outline-offset: 2px;
  }
}