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

.ui-lp-hero-split {
  position: relative;
  width: 100%;
  
  // Min Height Variants
  &--full {
    min-height: 100vh;
  }
  
  &--large {
    min-height: 80vh;
  }
  
  &--medium {
    min-height: 60vh;
  }
  
  // Background Variants
  &--solid {
    background: $semantic-color-surface-primary;
  }
  
  &--gradient {
    background: linear-gradient(
      135deg,
      $semantic-color-primary,
      $semantic-color-secondary
    );
  }
  
  // Main Wrapper
  &__wrapper {
    display: flex;
    height: 100%;
    min-height: inherit;
  }
  
  // Split Ratio Variants
  &--50-50 &__left,
  &--50-50 &__right {
    flex: 1;
  }
  
  &--60-40 &__left {
    flex: 0 0 60%;
  }
  
  &--60-40 &__right {
    flex: 0 0 40%;
  }
  
  &--40-60 &__left {
    flex: 0 0 40%;
  }
  
  &--40-60 &__right {
    flex: 0 0 60%;
  }
  
  &--70-30 &__left {
    flex: 0 0 70%;
  }
  
  &--70-30 &__right {
    flex: 0 0 30%;
  }
  
  &--30-70 &__left {
    flex: 0 0 30%;
  }
  
  &--30-70 &__right {
    flex: 0 0 70%;
  }
  
  // Left and Right Sections
  &__left,
  &__right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: $semantic-spacing-layout-section-lg;
    position: relative;
  }
  
  &__left {
    background: $semantic-color-surface-primary;
    
    .ui-lp-hero-split--gradient & {
      background: linear-gradient(
        135deg,
        $semantic-color-primary,
        rgba($semantic-color-primary, 0.8)
      );
    }
  }
  
  &__right {
    background: $semantic-color-surface-secondary;
    
    .ui-lp-hero-split--gradient & {
      background: linear-gradient(
        135deg,
        rgba($semantic-color-secondary, 0.8),
        $semantic-color-secondary
      );
    }
  }
  
  // Content Types
  &__default-content {
    width: 100%;
    max-width: 500px;
  }
  
  &__text-content {
    width: 100%;
    max-width: 500px;
    
    h1, h2, h3, h4, h5, h6 {
      color: $semantic-color-text-primary;
      margin-bottom: $semantic-spacing-content-heading;
    }
    
    p {
      color: $semantic-color-text-secondary;
      margin-bottom: $semantic-spacing-content-paragraph;
    }
    
    .ui-lp-hero-split--gradient & {
      h1, h2, h3, h4, h5, h6 {
        color: $semantic-color-on-primary;
      }
      
      p {
        color: $semantic-color-on-primary;
        opacity: $semantic-opacity-subtle;
      }
    }
  }
  
  &__image-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  &__img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: cover;
    border-radius: $semantic-border-card-radius;
  }
  
  &__video-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  &__video {
    max-width: 100%;
    max-height: 100%;
    border-radius: $semantic-border-card-radius;
  }
  
  // Placeholder
  &__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: $semantic-opacity-subtle;
  }
  
  &__placeholder-icon {
    font-size: $semantic-sizing-icon-navigation * 2;
    margin-bottom: $semantic-spacing-component-md;
  }
  
  &__placeholder-text {
    font-family: map-get($semantic-typography-body-medium, font-family);
    font-size: map-get($semantic-typography-body-medium, font-size);
    color: $semantic-color-text-secondary;
  }
  
  // Typography
  &__title {
    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);
    color: $semantic-color-text-primary;
    margin-bottom: $semantic-spacing-content-heading;
    
    .ui-lp-hero-split--gradient & {
      color: $semantic-color-on-primary;
    }
  }
  
  &__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;
    margin-bottom: $semantic-spacing-content-paragraph;
    
    .ui-lp-hero-split--gradient & {
      color: $semantic-color-on-primary;
      opacity: $semantic-opacity-subtle;
    }
  }
  
  &__actions {
    display: flex;
    gap: $semantic-spacing-component-md;
    margin-top: $semantic-spacing-layout-section-sm;
    
    .ui-lp-hero-split--center & {
      justify-content: center;
    }
    
    .ui-lp-hero-split--right & {
      justify-content: flex-end;
    }
  }
  
  // Responsive Design
  @media (max-width: $semantic-breakpoint-lg - 1) {
    &__left,
    &__right {
      padding: $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);
    }
  }
  
  @media (max-width: $semantic-breakpoint-md - 1) {
    &--full {
      min-height: 100svh;
    }
    
    &__wrapper {
      flex-direction: column;
    }
    
    // Reset flex ratios for mobile
    &__left,
    &__right {
      flex: 1 !important;
      min-height: 50vh;
      padding: $semantic-spacing-layout-section-sm;
    }
    
    &__actions {
      flex-direction: column;
      align-items: stretch;
    }
  }
  
  @media (max-width: $semantic-breakpoint-sm - 1) {
    &__left,
    &__right {
      min-height: 40vh;
    }
    
    &__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);
    }
    
    &__subtitle {
      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);
    }
  }
}