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

.ui-lp-team-grid {
  padding: $semantic-spacing-layout-section-lg 0;
  
  &__header {
    text-align: center;
    margin-bottom: $semantic-spacing-layout-section-md;
  }
  
  &__title {
    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);
    color: $semantic-color-text-primary;
    margin-bottom: $semantic-spacing-content-heading;
  }
  
  &__subtitle {
    font-family: map-get($semantic-typography-body-large, font-family);
    font-size: map-get($semantic-typography-body-large, font-size);
    font-weight: map-get($semantic-typography-body-large, font-weight);
    line-height: map-get($semantic-typography-body-large, line-height);
    color: $semantic-color-text-secondary;
    max-width: 600px;
    margin: 0 auto;
  }
  
  &__grid {
    display: grid;
    gap: $semantic-spacing-grid-gap-lg;
    
    &--cols-2 {
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      max-width: 800px;
      margin: 0 auto;
    }
    
    &--cols-3 {
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    &--cols-4 {
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
  }
  
  &__member {
    background: $semantic-color-surface-elevated;
    border-radius: $semantic-border-card-radius;
    padding: $semantic-spacing-component-xl;
    text-align: center;
    box-shadow: $semantic-shadow-card-rest;
    transition: all $semantic-motion-duration-fast $semantic-motion-easing-ease;
    
    &:hover {
      box-shadow: $semantic-shadow-card-hover;
      transform: translateY(-2px);
    }
  }
  
  &__avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto $semantic-spacing-component-lg auto;
    overflow: hidden;
    border-radius: 50%;
    border: 3px solid $semantic-color-surface-primary;
    box-shadow: $semantic-shadow-card-rest;
  }
  
  &__info {
    display: flex;
    flex-direction: column;
    gap: $semantic-spacing-component-sm;
  }
  
  &__name {
    font-family: map-get($semantic-typography-heading-h4, font-family);
    font-size: map-get($semantic-typography-heading-h4, font-size);
    font-weight: map-get($semantic-typography-heading-h4, font-weight);
    line-height: map-get($semantic-typography-heading-h4, line-height);
    color: $semantic-color-text-primary;
    margin: 0;
  }
  
  &__role {
    font-family: map-get($semantic-typography-body-medium, font-family);
    font-size: map-get($semantic-typography-body-medium, font-size);
    font-weight: 600;
    line-height: map-get($semantic-typography-body-medium, line-height);
    color: $semantic-color-primary;
    margin: 0;
  }
  
  &__bio {
    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-secondary;
    margin: $semantic-spacing-component-sm 0 0 0;
  }
  
  &__social {
    display: flex;
    justify-content: center;
    gap: $semantic-spacing-component-sm;
    margin-top: $semantic-spacing-component-md;
  }
  
  &__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: $semantic-color-surface-primary;
    color: $semantic-color-text-secondary;
    text-decoration: none;
    transition: all $semantic-motion-duration-fast $semantic-motion-easing-ease;
    border: 1px solid $semantic-color-border-subtle;
    
    &:hover {
      background: $semantic-color-primary;
      color: $semantic-color-on-primary;
      border-color: $semantic-color-primary;
      transform: translateY(-1px);
    }
    
    &:focus-visible {
      outline: 2px solid $semantic-color-focus-ring;
      outline-offset: 2px;
    }
    
    svg {
      width: 20px;
      height: 20px;
    }
  }
  
  &__empty {
    text-align: center;
    padding: $semantic-spacing-layout-section-sm 0;
    
    p {
      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);
      color: $semantic-color-text-secondary;
      margin: 0;
    }
  }
  
  // Responsive Design
  @media (max-width: $semantic-breakpoint-lg - 1) {
    &__grid {
      &--cols-4 {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      }
    }
  }
  
  @media (max-width: $semantic-breakpoint-md - 1) {
    &__title {
      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);
    }
    
    &__grid {
      gap: $semantic-spacing-grid-gap-md;
      
      &--cols-2,
      &--cols-3,
      &--cols-4 {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      }
    }
    
    &__member {
      padding: $semantic-spacing-component-lg;
    }
    
    &__avatar {
      width: 100px;
      height: 100px;
      margin-bottom: $semantic-spacing-component-md;
    }
  }
  
  @media (max-width: $semantic-breakpoint-sm - 1) {
    &__grid {
      &--cols-2,
      &--cols-3,
      &--cols-4 {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
      }
    }
    
    &__avatar {
      width: 80px;
      height: 80px;
    }
    
    &__name {
      font-family: map-get($semantic-typography-heading-h5, font-family);
      font-size: map-get($semantic-typography-heading-h5, font-size);
      font-weight: map-get($semantic-typography-heading-h5, font-weight);
      line-height: map-get($semantic-typography-heading-h5, line-height);
    }
  }
}