﻿:root {
    --bg: #0b1020;
    --card: #121933;
    --text: #e9eefb;
    --muted: #b9c4e6;
    --accent: #5aa0ff;
    --accent-2: #8cf0ff;
    --ok: #35d49a;
    --warn: #ffd166;
    /* chat colors */
    /*--bubble-a: #1f2a4d;*/ /* darker blue */
    /*--bubble-b: #213b2f;*/ /* greenish for middle */
    /*--bubble-c: #2a2749;*/ /* purple-ish for last */
    /*--bubble-text: #eaf0ff;*/

    --bubble-a: #ffffff; /* sol (gelen) balon */
    --bubble-b: #d9fdd3; /* sağ (giden) balon - WhatsApp yeşili */
    --bubble-c: #d9fdd3; /* tamamlanan adımda aynı tonu koru */
    --bubble-text: #111b21; /* WhatsApp koyu metin rengi */
}
/*
body {
    background: radial-gradient(1200px 800px at 20% 10%, #121933 0, #0b1020 55%, #070b16 100%) fixed;
    color: var(--text)
}*/

.title-gradient {
    background: linear-gradient(90deg,var(--accent),var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

/* Flow layout */
.run-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; /* dar ekranda alta geçmeye izin ver */
    gap: 1.25rem;
    width: 100%;
}

.run-step {
    background: #fff;/* linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));*/
    border-radius: 1.25rem;
    border: 1px solid #e2e2e2;
    width: min(260px, 100%);
    max-width: 92vw;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    position: relative;
    overflow: hidden;
    /*box-shadow: 0 10px 24px rgba(0,0,0,.25);*/
}

    .run-step:hover {
        transform: translateY(-4px)
    }

    .run-step .card-body {
        padding: 1.25rem 1.15rem
    }

    .run-step h5 {
        color: var(--text);
        margin-bottom: .5rem;
        letter-spacing: .2px
    }

/* Icon bubble */
.icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto .65rem;
    background: radial-gradient(120% 120% at 30% 20%, var(--accent-2), var(--accent));
    box-shadow: 0 8px 24px rgba(90,160,255,.35), inset 0 0 12px rgba(255,255,255,.25);
    color: #05122b;
    font-size: 26px;
}

/* Active & completed states */
.run-step.active {
    border-color: color-mix(in srgb, var(--accent) 60%, #fff 0%);
    box-shadow: 0 10px 24px rgba(90,160,255,.45);
    animation: pulse 1.8s ease-in-out infinite;
}

.run-step.completed .icon-wrap {
    background: radial-gradient(120% 120% at 30% 20%, #b6ffe8, var(--ok));
}

.run-step.completed h5::after {
    content: "";
    display: inline-block;
    width: .6rem;
    height: .6rem;
    margin-left: .35rem;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 4px rgba(53,212,154,.15);
    vertical-align: middle;
}

@keyframes pulse {
    0%,100% {
        box-shadow: 0 10px 24px rgba(90,160,255,.45), 0 0 0 0 rgba(90,160,255,.45)
    }

    50% {
        box-shadow: 0 10px 24px rgba(90,160,255,.7), 0 0 0 14px rgba(90,160,255,0)
    }
}

/* Connectors */
.connector {
    position: relative;
    width: 92px;
    height: 16px;
    flex: 0 0 auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,.35));
}

    .connector::before {
        content: "";
        position: absolute;
        inset: 6px 16px 6px 2px;
        height: 4px;
        background: repeating-linear-gradient(90deg, var(--accent) 0 12px, transparent 12px 20px);
        border-radius: 2px;
        animation: move 1.2s linear infinite;
        opacity: .85;
    }

@keyframes move {
    to {
        background-position-x: -32px
    }
}

.connector::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    border-left: 16px solid var(--accent);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    filter: drop-shadow(0 0 10px rgba(90,160,255,.6));
}

.connector.active::before {
    background: repeating-linear-gradient(90deg, var(--ok) 0 12px, transparent 12px 20px)
}

.connector.active::after {
    border-left-color: var(--ok)
}

/* Responsive stacking */
@media (max-width: 768px) {
    .run-flow {
        flex-direction: column;
        align-items: stretch
    }

    .connector {
        width: 16px;
        height: 76px;
        align-self: center
    }

        .connector::before {
            inset: 2px 6px 18px 6px;
            width: 4px;
            height: auto;
            background: repeating-linear-gradient(0deg, var(--accent) 0 12px, transparent 12px 20px)
        }

        .connector::after {
            right: 50%;
            top: auto;
            bottom: 0;
            transform: translateX(50%);
            border-left: 8px solid transparent;
            border-right: 8px solid transparent;
            border-top: 16px solid var(--accent);
        }

        .connector.active::after {
            border-top-color: var(--ok)
        }
}

.badge-step {
    position: absolute;
    top: .6rem;
    left: .6rem;
    background: rgba(255,255,255,.08);
    color: var(--muted);
    border: 1px solid #e2e2e2;
    font-weight: 600;
    font-size: .75rem;
    padding: .25rem .45rem;
    border-radius: .5rem;
}

.shine {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 0 35%, rgba(255,255,255,.06) 50%, transparent 65% 100%);
    transform: translateX(-120%);
    animation: shine 3.2s ease-in-out infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-120%)
    }

    55% {
        transform: translateX(120%)
    }

    100% {
        transform: translateX(120%)
    }
}

/* ===== Chat bubble styles (2. sürümle aynı, sadece typing eklendi) ===== */
.bubble {
    position: relative;
    display: inline-block;
    max-width: 100%;
    padding: .7rem .9rem;
    border-radius: 1rem;
    line-height: 1.35;
    font-size: .975rem;
    color: var(--bubble-text);
    /*box-shadow: 0 6px 18px rgba(0,0,0,.25), inset 0 0 0 1px rgba(255,255,255,.05);*/
    margin-top: .25rem;
    transition: transform .2s ease, box-shadow .2s ease;
    word-wrap: break-word;
}

.bubble {
    box-shadow: 0 1px 1px rgba(0,0,0,.08);
    border: 1px solid rgba(0,0,0,.06);
}

    .bubble:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 22px rgba(0,0,0,.32)
    }

    .bubble.left {
        background: var(--bubble-a);
        margin-right: auto;
    }

        .bubble.left::after {
            content: "";
            position: absolute;
            left: -7px;
            bottom: 10px;
            border-width: 8px;
            border-style: solid;
            border-color: transparent var(--bubble-a) transparent transparent;
            filter: drop-shadow(-1px 2px 0 rgba(0,0,0,.2));
        }

    .bubble.right {
        background: var(--bubble-b);
        margin-left: auto;
    }

        .bubble.right::after {
            content: "";
            position: absolute;
            right: -7px;
            bottom: 10px;
            border-width: 8px;
            border-style: solid;
            border-color: transparent transparent transparent var(--bubble-b);
            filter: drop-shadow(1px 2px 0 rgba(0,0,0,.2));
        }

.run-step.completed .bubble {
    background: var(--bubble-c)
}

    .run-step.completed .bubble.right {
        background: var(--bubble-c)
    }

/* ==== Typing dots (YENİ) ==== */
.typing {
    display: none;
    margin-left: .35rem;
    letter-spacing: .25em;
}

    .typing span {
        animation: typingBlink 1.2s infinite;
    }

        .typing span:nth-child(2) {
            animation-delay: .15s
        }

        .typing span:nth-child(3) {
            animation-delay: .3s
        }

.run-step.active .typing {
    display: inline-block;
}

@keyframes typingBlink {
    0%,80% {
        opacity: .25
    }

    40% {
        opacity: 1
    }
}
