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

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

.demo-section {
  margin-bottom: $semantic-spacing-layout-lg;
  
  h3 {
    margin-bottom: $semantic-spacing-content-paragraph;
    color: $semantic-color-text-primary;
    font-size: $semantic-typography-font-size-lg;
  }
}

.demo-row {
  display: flex;
  gap: $semantic-spacing-component-lg;
  align-items: center;
  margin-bottom: $semantic-spacing-component-sm;
  flex-wrap: wrap;
}

.positions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: $semantic-spacing-component-xl;
  max-width: 400px;
  margin: $semantic-spacing-layout-md 0;
}

.demo-button {
  padding: $semantic-spacing-component-sm $semantic-spacing-component-md;
  background: $semantic-color-primary;
  color: $semantic-color-on-primary;
  border: none;
  border-radius: $semantic-border-radius-md;
  cursor: pointer;
  font-size: $semantic-typography-font-size-md;
  transition: background-color $semantic-motion-duration-fast $semantic-easing-standard;
  
  &:hover {
    background: $semantic-color-primary-hover;
  }
  
  &:focus-visible {
    outline: 2px solid $semantic-color-focus;
    outline-offset: 2px;
  }
}

.demo-text {
  color: $semantic-color-text-primary;
  font-size: $semantic-typography-font-size-md;
  text-decoration: underline;
  cursor: help;
  
  &:hover {
    color: $semantic-color-primary;
  }
}

.demo-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: $semantic-color-surface-secondary;
  border: 2px solid $semantic-color-border-primary;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: $semantic-typography-font-size-sm;
  font-weight: bold;
  cursor: help;
  color: $semantic-color-text-secondary;
  
  &:hover {
    background: $semantic-color-surface-secondary;
    color: $semantic-color-text-primary;
  }
}

p {
  margin: 0;
  color: $semantic-color-text-secondary;
  font-size: $semantic-typography-font-size-md;
}

// Responsive adjustments
@media (max-width: $semantic-breakpoint-md - 1) {
  .positions-grid {
    grid-template-columns: 1fr;
    gap: $semantic-spacing-component-md;
  }
  
  .demo-row {
    gap: $semantic-spacing-component-md;
  }
}

@media (max-width: $semantic-breakpoint-sm - 1) {
  .demo-container {
    padding: $semantic-spacing-layout-sm;
  }
  
  .demo-row {
    flex-direction: column;
    align-items: flex-start;
    gap: $semantic-spacing-component-sm;
  }
}