/* â”€â”€ PROCESS SECTION â”€â”€ */
.ys-process-section {
    padding: 4rem 1.5rem;
    margin: 2.5rem 0;
    border-radius: 28px;
    position: relative;
    overflow: hidden;
    background-color: var(--CoreV2-bg, #f8fafc);
    border: 1px solid rgba(var(--CoreV2-primary-rgb, 59,130,246), .1);
}
/* Üst gradient overlay */
.ys-process-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(var(--CoreV2-primary-rgb, 59,130,246), .05) 0%,
        transparent 55%,
        rgba(var(--CoreV2-primary-rgb, 59,130,246), .03) 100%
    );
    pointer-events: none;
    z-index: 0;
}
.ys-process-wrapper {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 1.25rem;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
/* â”€â”€ STEP CARD â”€â”€ */
.ys-process-step {
    flex: 1;
    max-width: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.25rem 1.75rem;
    border-radius: 22px;
    background: var(--CoreV2-card-bg, #ffffff);
    border: 1px solid rgba(var(--CoreV2-primary-rgb, 59,130,246), .1);
    opacity: 0;
    transform: translateY(28px);
    transition: all .5s cubic-bezier(.25,.46,.45,.94);
    position: relative;
    overflow: hidden;
}
/* Kart üst çizgisi (accent - kısa, ortalı) */
.ys-process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 2px;
    border-radius: 0 0 4px 4px;
    background: var(--CoreV2-primary, #3b82f6);
    opacity: 0;
    transition: opacity .4s ease;
}
.ys-process-step:hover {
    transform: translateY(-7px);
    border-color: rgba(var(--CoreV2-primary-rgb, 59,130,246), .25);
}
/* â”€â”€ ICON â”€â”€ */
.ys-process-icon {
    width: 76px;
    height: 76px;
    margin-bottom: 1.1rem;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        rgba(var(--CoreV2-primary-rgb, 59,130,246), .14),
        rgba(var(--CoreV2-primary-rgb, 59,130,246), .06)
    );
    display: grid;
    place-items: center;
    transition: all .4s ease;
    border: 2px solid rgba(var(--CoreV2-primary-rgb, 59,130,246), .2);
}
.ys-process-icon i {
    font-size: 30px;
    color: var(--CoreV2-primary, #3b82f6);
    transition: all .4s ease;
}
.ys-process-title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--CoreV2-text-primary, #1e293b);
    margin-top: .3rem;
    line-height: 1.4;
}
/* â”€â”€ CONNECTOR â”€â”€ */
.ys-process-connector {
    align-self: center;
    width: 100%;
    max-width: 56px;
    height: 2px;
    position: relative;
    background: rgba(var(--CoreV2-primary-rgb, 59,130,246), .12);
    border-radius: 2px;
    opacity: 0;
    transition: opacity .5s ease-in;
    z-index: 1;
}
.ys-process-connector::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg,
        var(--CoreV2-primary, #3b82f6),
        rgba(var(--CoreV2-primary-rgb, 59,130,246), .5)
    );
    border-radius: 2px;
    transition: width .7s cubic-bezier(.65,0,.35,1);
}
/* Connector ok ucu */
.ys-process-connector::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 0; height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 6px solid rgba(var(--CoreV2-primary-rgb, 59,130,246), .4);
    opacity: 0;
    transition: opacity .3s ease .5s;
}
/* â”€â”€ ACTIVE STATES â”€â”€ */
.ys-process-step.is-active {
    opacity: 1;
    transform: translateY(0);
}
.ys-process-step.is-active::before {
    opacity: 1;
}
.ys-process-step.is-active .ys-process-icon {
    background: linear-gradient(
        135deg,
        rgba(var(--CoreV2-primary-rgb, 59,130,246), .22),
        rgba(var(--CoreV2-primary-rgb, 59,130,246), .1)
    );
    border-color: var(--CoreV2-primary, #3b82f6);
}
.ys-process-step.is-active .ys-process-icon i {
    color: var(--CoreV2-primary, #3b82f6);
    transform: scale(1.12);
}
.ys-process-connector.is-active {
    opacity: 1;
}
.ys-process-connector.is-active::before {
    width: 100%;
}
.ys-process-connector.is-active::after {
    opacity: 1;
}
/* â”€â”€ DARK MODE â”€â”€ */
[data-theme="dark"] .ys-process-section {
    background-color: var(--CoreV2-bg, #0f172a);
    border-color: rgba(var(--CoreV2-primary-rgb, 59,130,246), .15);
}
[data-theme="dark"] .ys-process-step {
    background: var(--CoreV2-card-bg, #1e293b);
    border-color: rgba(var(--CoreV2-primary-rgb, 59,130,246), .15);
}
[data-theme="dark"] .ys-process-step:hover {
    border-color: rgba(var(--CoreV2-primary-rgb, 59,130,246), .35);
}
[data-theme="dark"] .ys-process-title {
    color: var(--CoreV2-text-primary, #f1f5f9);
}
[data-theme="dark"] .ys-process-connector {
    background: rgba(var(--CoreV2-primary-rgb, 59,130,246), .18);
}
/* â”€â”€ RESPONSIVE â”€â”€ */
@media (max-width: 992px) {
    .ys-process-wrapper {
        flex-wrap: wrap;
        gap: .75rem;
        justify-content: center;
    }
    .ys-process-step {
        flex: 1 1 140px;
        max-width: 180px;
        padding: 1.5rem .75rem 1.25rem;
    }
    .ys-process-connector {
        display: none;
    }
}
@media (max-width: 480px) {
    .ys-process-wrapper {
        gap: .5rem;
    }
    .ys-process-step {
        flex: 1 1 120px;
        max-width: 160px;
        padding: 1.25rem .6rem 1rem;
    }
    .ys-process-icon {
        width: 56px;
        height: 56px;
    }
    .ys-process-icon i {
        font-size: 22px;
    }
    .ys-process-title {
        font-size: .8rem;
    }
}
