/*
 * This file is part of the UX SDC Bundle
 *
 * (c) Jozef Môstka <https://github.com/tito10047/ux-sdc>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

/* Styles for Process component */


@layer components {
  .process {
    padding-block: var(--space-3xl);
    background: #0A0A0A;

    & .process__header {
      margin-bottom: var(--space-3xl);
    }

    & .process__subtitle {
      font-family: var(--font-mono);
      font-size: var(--size-step--2);
      color: var(--color-accent-blue);
      text-transform: uppercase;
      letter-spacing: 0.15em;
      font-weight: 700;
    }

    & .process__title {
      font-size: var(--size-step-3);
      color: var(--color-text-main);
      font-weight: 700;
      letter-spacing: -0.02em;
      margin-top: var(--space-xs);
    }

    & .process__steps {
      display: flex;
      flex-direction: column;
      max-width: 800px;
    }

    & .process__step {
      display: flex;
      gap: var(--space-xl);
    }

    & .process__step-meta {
      display: flex;
      flex-direction: column;
      align-items: center;
      flex-shrink: 0;
    }

    & .process__step-number {
      font-family: var(--font-mono);
      font-size: var(--size-step-1);
      color: var(--color-text-main);
      background: var(--color-surface);
      border: var(--border-thin);
      width: 48px;
      height: 48px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      font-weight: 700;
      position: relative;
      z-index: 1;
    }

    & .process__step-line {
      width: 1px;
      flex-grow: 1;
      background: linear-gradient(to bottom, var(--color-border), transparent);
      margin-block: var(--space-xs);
    }

    & .process__step-content {
      padding-bottom: var(--space-3xl);
      --stack-space: var(--space-xs);
    }

    & .process__step-title {
      font-size: var(--size-step-1);
      color: var(--color-text-main);
      font-weight: 600;
    }

    & .process__step-text {
      font-size: var(--size-step-0);
      color: var(--color-text-muted);
      line-height: 1.6;
      max-width: 50ch;
    }

    & .process__step-details {
      padding: var(--space-xs) var(--space-s);
      background: rgba(255, 255, 255, 0.02);
      border-left: 2px solid var(--color-accent-blue);
      display: inline-block;
      margin-top: var(--space-s);
    }

    & .process__step-details code {
      font-family: var(--font-mono);
      font-size: var(--size-step--2);
      color: var(--color-text-muted);
    }

    & .process__step:last-child .process__step-content {
      padding-bottom: 0;
    }
  }
}
