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

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

  h2 {
    margin-bottom: $semantic-spacing-layout-lg;
    color: $semantic-color-text-primary;
    font-size: $base-typography-font-size-2xl;
    font-weight: $base-typography-font-weight-bold;
  }
}

.demo-section {
  margin-bottom: $semantic-spacing-layout-xl;

  h3 {
    margin-bottom: $semantic-spacing-layout-md;
    color: $semantic-color-text-primary;
    font-size: $base-typography-font-size-lg;
    font-weight: $base-typography-font-weight-semibold;
    border-bottom: 1px solid $semantic-color-border-subtle;
    padding-bottom: $semantic-spacing-content-line-normal;
  }
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: $semantic-spacing-layout-md;
  align-items: start;

  ui-empty-state {
    width: 100%;
    height: auto;
  }
}

.demo-label {
  margin: $semantic-spacing-content-line-normal 0 0 0;
  text-align: center;
  font-size: $base-typography-font-size-sm;
  color: $semantic-color-text-secondary;
  font-weight: $base-typography-font-weight-medium;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.demo-output {
  margin-top: $semantic-spacing-content-heading;
  padding: $semantic-spacing-component-md;
  background: $semantic-color-surface-secondary;
  border: 1px solid $semantic-color-border-subtle;
  border-radius: $semantic-border-radius-md;
  
  p {
    margin: 0 0 $semantic-spacing-content-line-tight 0;
    font-size: $base-typography-font-size-sm;
    color: $semantic-color-text-secondary;
    
    &:last-child {
      margin-bottom: 0;
    }
    
    strong {
      color: $semantic-color-text-primary;
    }
  }
}

// Responsive Design
@media (max-width: 1024px) {
  .demo-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: $semantic-spacing-layout-sm;
  }
}

@media (max-width: 768px) {
  .demo-container {
    padding: $semantic-spacing-layout-sm;
  }
  
  .demo-grid {
    grid-template-columns: 1fr;
  }
  
  .demo-section {
    margin-bottom: $semantic-spacing-layout-lg;
  }
}