/* "Nasıl çalışır" adım kartları (assets/js/workflow-cards.js).
   Aktif kart genişler ve yükselir; alttaki çizgide numarası koyulaşır. */

.wf {
    margin-top: 28px;
    padding: 36px 36px 30px;
    border-radius: 16px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    background: linear-gradient(165deg, #f8fbff 0%, #ffffff 58%, #eef4ff 100%);
    box-shadow: 0 24px 52px rgba(37, 99, 235, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

    .wf h2 {
        margin: 0 0 6px;
        font-size: 24px;
        color: var(--text);
    }

.wf-lead {
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 14px;
}

.wf-track {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

    /* Numaraların üzerinde durduğu yatay çizgi */
    .wf-track::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 16px;
        height: 1px;
        background: var(--border-light);
        z-index: 0;
    }

.wf-col {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: flex-grow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

    .wf-col.is-active {
        flex-grow: 1.55;
    }

.wf-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 170px;
    padding: 18px;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
    transition: min-height 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

    .wf-card:hover {
        border-color: rgba(37, 99, 235, 0.35);
    }

.wf-col.is-active .wf-card {
    min-height: 210px;
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: var(--shadow-card-hover);
}

.wf-card h3 {
    margin: 0 0 6px;
    font-size: 15px;
    color: var(--text);
}

.wf-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wf-col.is-active .wf-card p {
    -webkit-line-clamp: 5;
}

.wf-ic {
    margin-top: auto;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    transition: background 0.3s ease, color 0.3s ease;
}

.wf-col.is-active .wf-ic {
    background: var(--primary);
    color: #fff;
}

.wf-num {
    position: relative;
    z-index: 1;
    align-self: flex-start;
    min-width: 46px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.wf-col.is-active .wf-num {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.wf-card:focus-visible,
.wf-num:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.wf-cta {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

[data-theme="dark"] .wf {
    background: linear-gradient(165deg, #1c2436 0%, #182032 100%);
    border-color: var(--border);
    box-shadow: none;
}

[data-theme="dark"] .wf-card,
[data-theme="dark"] .wf-num {
    border-color: var(--border);
}

[data-theme="dark"] .wf-ic {
    background: rgba(37, 99, 235, 0.18);
    color: #93c5fd;
}

/* Telefonda adımlar alt alta: numara solda, kart sağda; aktif kart açılır. */
@media (max-width: 720px) {
    .wf {
        padding: 24px 16px;
    }

    .wf-track {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

        .wf-track::after {
            left: 22px;
            right: auto;
            top: 0;
            bottom: 0;
            width: 1px;
            height: auto;
        }

    .wf-col,
    .wf-col.is-active {
        flex: none;
        flex-direction: row-reverse;
        align-items: flex-start;
        gap: 12px;
    }

    .wf-card,
    .wf-col.is-active .wf-card {
        flex: 1;
        min-height: 0;
    }

    .wf-card p {
        -webkit-line-clamp: 1;
    }

    .wf-ic {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wf-col,
    .wf-card,
    .wf-ic,
    .wf-num {
        transition: none;
    }
}
