/* =====================================================
   IntelliAgent — Pipeline Steps Animation
   Shortcode: [intelliagent_pipeline]
   Matches Lovable reference animation exactly
   ===================================================== */

/* === Layout === */
.ia-pipeline {
    width: 100%;
    padding: 8px 0;
}

.ia-pipeline__inner {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 16px;
}

/* === Lines === */
.ia-pipeline__line-bg,
.ia-pipeline__line-progress {
    position: absolute;
    top: 48px; /* ~75% da altura do ícone (64px), linha no terço inferior */
    left: 16px;
    right: 19px;
    height: 3px;
    pointer-events: none;
}

.ia-pipeline__line-bg {
    background: rgba(255, 255, 255, 0.12);
    z-index: 0;
}

.ia-pipeline__line-progress {
    background: #1da6dd;
    z-index: 1;
    transform-origin: left center;
    transform: scaleX(0);
    /* transition added by JS after initial state is set */
}

/* === Steps row === */
.ia-pipeline__steps {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

/* === Individual step === */
.ia-pipeline__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(16px);
    /* transition added by JS per-step */
}

/* === Icon box === */
.ia-pipeline__icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #272E35; /* solid dark bg — tapar a linha por trás do ícone */
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.ia-pipeline__icon svg {
    width: 27px;
    height: 27px;
}

/* === Label === */
.ia-pipeline__label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
}

/* === Active step (Profit) === */
.ia-pipeline__step--active .ia-pipeline__icon {
    background: rgb(29, 166, 221);
    border-color: rgba(29, 166, 221, 0.5);
    color: #ffffff;
}

/* === Responsive === */
@media (max-width: 767px) {
    .ia-pipeline {
        display: none;
    }
}
