/* ==========================================================================
   WyciekiPro — Process Section (Jak Szukamy)
   Animated timeline steps
   ========================================================================== */

.process {
  background: var(--color-bg-section-dark);
  color: var(--color-text-on-dark);
  position: relative;
  overflow: hidden;
}

/* Subtle background pattern */
.process::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 30% 0%, hsla(195, 80%, 50%, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 100%, hsla(210, 70%, 40%, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.process__timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-xl);
  position: relative;
  z-index: var(--z-base);
}

/* Connecting line */
.process__timeline::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), hsla(195, 85%, 48%, 0.3));
}

.process__step {
  text-align: center;
  position: relative;
}

.process__step-number {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  color: #fff;
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  margin: 0 auto var(--space-lg);
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 6px var(--color-bg-section-dark), 0 4px 15px hsla(195, 85%, 48%, 0.3);
}

.process__step-title {
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  color: var(--color-text-on-dark);
  margin-bottom: var(--space-sm);
}

.process__step-text {
  font-size: var(--text-base);
  color: var(--color-text-on-dark-muted);
  line-height: var(--lh-relaxed);
}

@media (max-width: 768px) {
  .process__timeline {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .process__timeline::before {
    top: 0;
    bottom: 0;
    left: 24px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .process__step:last-child::after {
    content: '';
    position: absolute;
    left: 0;
    top: 25px;
    width: 50px;
    height: calc(100% - 25px + var(--space-2xl));
    background: var(--color-bg-section-dark);
    z-index: 1;
  }

  .process__step {
    text-align: left;
    padding-left: calc(50px + var(--space-xl));
  }

  .process__step-number {
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
  }
}
