/*
 * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.
 * This file is licensed to you under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License. You may obtain a copy
 * of the License at https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under
 * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
 * OF ANY KIND, either express or implied. See the License for the specific language
 * governing permissions and limitations under the License.
 */

@reference '@accelint/design-foundation/styles';

@layer components.l1 {
  .lines {
    @variant size-large {
      @apply h-xxl;
    }

    @variant size-medium {
      @apply min-h-xl;
    }

    @variant size-small {
      @apply min-h-l;
    }

    @variant not-visible {
      @apply invisible;
    }

    &.branch {
      background-image:
        repeating-linear-gradient(
          to bottom,
          var(--outline-static) 0,
          var(--outline-static) 1px,
          transparent 1px,
          transparent 4px
        ),
        repeating-linear-gradient(
          to right,
          var(--outline-static) 0,
          var(--outline-static) 1px,
          transparent 1px,
          transparent 4px
        );
      background-position:
        center,
        center right;
      background-repeat: repeat-y, no-repeat;
      background-size:
        1px 4px,
        50% 1px;
    }

    &.vert {
      @apply bg-center bg-repeat-y;
      background-size: 1px 4px;
      background-image: repeating-linear-gradient(
        to bottom,
        var(--outline-static) 0,
        var(--outline-static) 1px,
        transparent 1px,
        transparent 4px
      );
    }

    &.last {
      background-image:
        repeating-linear-gradient(
          to bottom,
          var(--outline-static) 0,
          var(--outline-static) 1px,
          transparent 1px,
          transparent 4px
        ),
        repeating-linear-gradient(
          to right,
          var(--outline-static) 0,
          var(--outline-static) 1px,
          transparent 1px,
          transparent 4px
        );
      background-position:
        center top,
        center right;
      background-repeat: no-repeat;
      background-size:
        1px 50%,
        50% 1px;
    }
  }
}
