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

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

.demo-section {
  margin-bottom: tokens.$semantic-spacing-layout-lg;
  
  h3 {
    margin-bottom: tokens.$semantic-spacing-component-md;
    color: tokens.$semantic-color-text-primary;
    font-size: 1.25rem;
    font-weight: 600;
  }
  
  h4 {
    margin-bottom: tokens.$semantic-spacing-component-sm;
    color: tokens.$semantic-color-text-secondary;
    font-size: 1.125rem;
    font-weight: 500;
  }
  
  p {
    color: tokens.$semantic-color-text-secondary;
    margin-bottom: tokens.$semantic-spacing-component-md;
  }
}

.demo-row {
  display: flex;
  flex-wrap: wrap;
  gap: tokens.$semantic-spacing-layout-md;
}

.demo-grid-container {
  flex: 1;
  min-width: 300px;
  margin-bottom: tokens.$semantic-spacing-layout-sm;
}

.demo-grid {
  border: 2px dashed tokens.$semantic-color-border-subtle;
  border-radius: tokens.$semantic-border-radius-md;
  padding: tokens.$semantic-spacing-component-md;
  
  &--fixed-height {
    min-height: 200px;
  }
}

.demo-grid-item {
  background: tokens.$semantic-color-container-primary;
  color: tokens.$semantic-color-on-container-primary;
  padding: tokens.$semantic-spacing-component-sm;
  border-radius: tokens.$semantic-border-radius-sm;
  text-align: center;
  font-weight: 500;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  
  &--small {
    width: 80px;
    height: 40px;
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .demo-row {
    flex-direction: column;
  }
  
  .demo-grid-container {
    min-width: auto;
  }
}