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


// ==========================================================================
// VIDEO PLAYER DEMO COMPONENT
// ==========================================================================
// Demonstration component showcasing all video player variants and capabilities
// ==========================================================================

.video-player-demo {
  padding: $semantic-spacing-layout-lg;
  max-width: 1200px;
  margin: 0 auto;
  
  h2 {
    color: $semantic-color-text-primary;
    font-family: map-get($semantic-typography-heading-h1, font-family);
    font-size: map-get($semantic-typography-heading-h1, font-size);
    font-weight: map-get($semantic-typography-heading-h1, font-weight);
    line-height: map-get($semantic-typography-heading-h1, line-height);
    margin-bottom: $semantic-spacing-layout-section-sm;
    border-bottom: 2px solid $semantic-color-primary;
    padding-bottom: $semantic-spacing-component-xs;
  }
  
  h3 {
    color: $semantic-color-text-secondary;
    font-family: map-get($semantic-typography-heading-h2, font-family);
    font-size: map-get($semantic-typography-heading-h2, font-size);
    font-weight: map-get($semantic-typography-heading-h2, font-weight);
    line-height: map-get($semantic-typography-heading-h2, line-height);
    margin-bottom: $semantic-spacing-content-heading;
  }
  
  h4 {
    color: $semantic-color-text-tertiary;
    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);
    margin-bottom: $semantic-spacing-content-paragraph;
  }
  
  .demo-section {
    border: 1px solid $semantic-color-border-primary;
    border-radius: $semantic-border-radius-lg;
    padding: $semantic-spacing-component-xl;
    background: $semantic-color-surface-secondary;
    margin-bottom: $semantic-spacing-layout-md;
    
    &:last-child {
      margin-bottom: 0;
    }
  }
  
  .variant-demo {
    margin-bottom: $semantic-spacing-component-lg;
    
    &:last-child {
      margin-bottom: 0;
    }
  }
  
  .player-container {
    border: 1px solid $semantic-color-border-secondary;
    border-radius: $semantic-border-radius-md;
    overflow: hidden;
    margin-bottom: $semantic-spacing-component-md;
    background: $semantic-color-surface-primary;
  }
  
  .demo-description {
    margin-bottom: $semantic-spacing-content-heading;
    color: $semantic-color-text-tertiary;
    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);
  }
  
  .controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: $semantic-spacing-component-md;
    margin-bottom: $semantic-spacing-component-lg;
    padding: $semantic-spacing-component-md;
    background: $semantic-color-surface-container;
    border-radius: $semantic-border-radius-md;
  }
  
  .control-label {
    display: flex;
    align-items: center;
    gap: $semantic-spacing-component-xs;
    cursor: pointer;
    font-family: map-get($semantic-typography-body-small, font-family);
    font-size: map-get($semantic-typography-body-small, font-size);
    font-weight: map-get($semantic-typography-body-small, font-weight);
    line-height: map-get($semantic-typography-body-small, line-height);
    user-select: none;
    color: $semantic-color-text-primary;
    
    input[type="checkbox"] {
      margin: 0;
      accent-color: $semantic-color-primary;
    }
  }
  
  .select-controls {
    display: flex;
    gap: $semantic-spacing-component-lg;
    margin-bottom: $semantic-spacing-component-lg;
    flex-wrap: wrap;
  }
  
  .select-label {
    display: flex;
    align-items: center;
    gap: $semantic-spacing-component-xs;
    font-family: map-get($semantic-typography-body-small, font-family);
    font-size: map-get($semantic-typography-body-small, font-size);
    font-weight: map-get($semantic-typography-body-small, font-weight);
    line-height: map-get($semantic-typography-body-small, line-height);
    color: $semantic-color-text-primary;
  }
  
  .demo-select {
    padding: $semantic-spacing-component-xs $semantic-spacing-component-sm;
    border: 1px solid $semantic-color-border-primary;
    border-radius: $semantic-border-radius-sm;
    background: $semantic-color-surface-primary;
    color: $semantic-color-text-primary;
    font-family: map-get($semantic-typography-body-small, font-family);
    font-size: map-get($semantic-typography-body-small, font-size);
    
    &:focus {
      outline: 2px solid $semantic-color-primary;
      outline-offset: 2px;
    }
  }
  
  .event-display {
    margin-top: $semantic-spacing-component-md;
    padding: $semantic-spacing-component-md;
    background: $semantic-color-primary-container;
    border: 1px solid $semantic-color-primary;
    border-radius: $semantic-border-radius-sm;
    color: $semantic-color-text-primary;
    font-family: map-get($semantic-typography-body-small, font-family);
    font-size: map-get($semantic-typography-body-small, font-size);
    font-weight: map-get($semantic-typography-body-small, font-weight);
    line-height: map-get($semantic-typography-body-small, line-height);
  }
  
  .code-examples {
    background: $semantic-color-surface-container;
    padding: $semantic-spacing-component-xl;
    border-radius: $semantic-border-radius-md;
    border-left: 4px solid $semantic-color-primary;
  }
  
  .code-example {
    margin-bottom: $semantic-spacing-component-lg;
    
    &:last-child {
      margin-bottom: 0;
    }
    
    h4 {
      margin-bottom: $semantic-spacing-component-sm;
    }
    
    pre {
      background: $semantic-color-surface-primary;
      padding: $semantic-spacing-component-md;
      border-radius: $semantic-border-radius-sm;
      overflow-x: auto;
      border: 1px solid $semantic-color-border-secondary;
      
      code {
        font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
        font-size: map-get($semantic-typography-code-block, font-size);
        line-height: map-get($semantic-typography-code-block, line-height);
        color: $semantic-color-text-primary;
      }
    }
  }
}

// Responsive adjustments
@media (max-width: 768px) {
  .video-player-demo {
    padding: $semantic-spacing-layout-md;
    
    .controls-grid {
      grid-template-columns: 1fr;
    }
    
    .select-controls {
      flex-direction: column;
      gap: $semantic-spacing-component-md;
    }
  }
}