﻿/* ====== Temel Değişkenler ====== */
:root {
    --bg: #0d1117;
    --card: rgba(16,20,28,.88);
    --stroke: #1f2937;
    --text: #e5e7eb;
    --muted: #a7b0be; /* biraz açtık: küçük yazılar daha okunur */
    --primary: #6366f1; /* indigo-500 */
    --primary-600: #5458e8; /* hover */
    --accent: #94a3b8;
    --radius: 16px;
    --shadow: 0 16px 40px rgba(0,0,0,.32);
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #f6f8fb;
        --card: rgba(255,255,255,.92);
        --stroke: #e6e8ef;
        --text: #0f1320;
        --muted: #5f6b86;
        --primary: #4058ff;
        --primary-600: #3046ff;
        --accent: #2b6cb0;
        --shadow: 0 16px 40px rgba(13,17,23,.12);
    }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* ====== Layout ====== */
html, body {
    overflow-x: hidden;
    direction: ltr;
    text-align: left;
}

* {
    box-sizing: border-box;
}

body.wiz-body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Inter,Helvetica,Arial,sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* arka plan öğeleri */
.bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.bg-blob {
    position: absolute;
    filter: blur(80px);
    opacity: .18; /* .24 -> .18 */
    border-radius: 50%;
    will-change: transform,opacity;
    transform: translate3d(0,0,0);
}

    .bg-blob.a {
        width: 520px;
        height: 520px;
        left: -120px;
        top: -80px;
        background: radial-gradient(ellipse at center,#6c7cff 0%,transparent 60%);
        animation: floatA 18s ease-in-out infinite;
    }

    .bg-blob.b {
        width: 520px;
        height: 520px;
        right: -160px;
        bottom: -160px; /* biraz aşağı/sağa */
        background: radial-gradient(ellipse at center,#ffd166 0%,transparent 62%);
        animation: floatB 22s ease-in-out infinite;
    }

@keyframes floatA {
    0%,100% {
        transform: translate3d(0,0,0)
    }

    50% {
        transform: translate3d(20px,30px,0)
    }
}

@keyframes floatB {
    0%,100% {
        transform: translate3d(0,0,0)
    }

    50% {
        transform: translate3d(-24px,-16px,0)
    }
}

.bg-grid:before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(transparent 0,transparent 98%,rgba(255,255,255,.04) 100%), linear-gradient(transparent 0,transparent calc(100% - 120px),rgba(0,0,0,.35) 100%);
}

/* ====== Header & Steps ====== */
.wiz-header {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 10px 0; /* 12 -> 10: mobilde daha kompakt */
    border-bottom: 1px solid rgba(255,255,255,.06);
    backdrop-filter: saturate(140%) blur(8px);
    background: linear-gradient(180deg,rgba(10,12,16,.86) 60%,rgba(10,12,16,0) 100%);
    backface-visibility: hidden;
}

    .wiz-header > * {
        width: 100%;
    }

    .wiz-header .brand, .wiz-header .steps {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
        display: flex;
        align-items: center;
    }

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    letter-spacing: .2px;
    color: var(--muted);
}

    .brand img {
        height: 22px;
        filter: drop-shadow(0 1px 0 rgba(0,0,0,.25));
    }

.steps {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

    .steps .divider {
        width: 28px;
        height: 2px;
        background: rgba(255,255,255,.05); /* .08 -> .05 */
    }

    .steps .step {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--muted);
        font-size: 13px;
        white-space: nowrap;
        transition: opacity .2s ease;
    }

        .steps .step span {
            width: 28px;
            height: 28px;
            display: grid;
            place-items: center;
            border-radius: 50%;
            background: rgba(255,255,255,.06);
            border: 1px solid rgba(255,255,255,.10);
            transition: transform .2s ease,background .2s ease,color .2s ease,border .2s ease;
        }

        .steps .step i {
            font-style: normal;
        }

@media (max-width:980px) {
    .steps .step i {
        display: none;
    }

    .steps .divider {
        width: 16px;
    }
}

@media (max-width:768px) {
    .steps {
        justify-content: center;
        padding-top: 24px !important;
    }
    /* 6 -> 4 */
}

/* aktif step (body[data-step] ile kontrol — 3 adım) */
body[data-step="1"] .steps .step:nth-of-type(1),
body[data-step="2"] .steps .step:nth-of-type(3),
body[data-step="3"] .steps .step:nth-of-type(5) {
    color: #fff;
}

    body[data-step="1"] .steps .step:nth-of-type(1) span,
    body[data-step="2"] .steps .step:nth-of-type(3) span,
    body[data-step="3"] .steps .step:nth-of-type(5) span {
        background: var(--primary);
        color: #fff;
        border-color: transparent;
        transform: translateY(-1px);
    }

/* ====== Main & Footer ====== */
.wiz-main {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    min-height: calc(100svh - 120px);
}

.center-max {
    max-width: auto;
    width: 100%;
}

.wiz-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom)); /* iOS home indicator güvenli alanı */
    color: var(--muted);
}

/* ====== Card / Glass ====== */
.card {
    width: min(880px,94vw);
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
    backdrop-filter: blur(12px) saturate(120%);
    margin-left: auto;
    margin-right: auto;
}

.glass {
    background: linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.02));
}

/* Başlıklar */
.h-title {
    margin: 0 0 8px;
    font-size: 28px;
    letter-spacing: .2px;
}

.h-sub {
    margin: 0 0 22px;
    color: var(--muted);
}

/* Form öğeleri (BS4 uyumlu) */
.form-control {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.14);
    color: var(--text);
    border-radius: 12px;
    padding: 12px 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

    .form-control::placeholder {
        color: rgba(229,231,235,.55);
    }

    .form-control:focus {
        background: rgba(255,255,255,.06);
        border-color: var(--primary-600); /* biraz daha belirgin */
        box-shadow: 0 0 0 3px rgba(99,102,241,.24); /* 4px -> 3px, yoğunluk arttı */
        color: #eef1f7;
    }

/* Buttons */
.btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: transform .12s ease,box-shadow .2s ease,background .2s ease,border .2s ease;
}

    .btn:active {
        transform: translateY(1px);
    }

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 24px rgba(108,124,255,.30);
}

    .btn-primary:hover {
        background: var(--primary-600);
        box-shadow: 0 12px 28px rgba(88,105,255,.35);
    }

.btn-outline-light {
    color: var(--text);
    border-color: rgba(255,255,255,.26);
    background: transparent;
}
    /* çizgi biraz açıldı */
    .btn-outline-light:hover {
        background: rgba(255,255,255,.06);
        border-color: rgba(255,255,255,.38);
        color: #eef1f7;
    }

.actions-row .btn {
    min-height: 48px;
}

@media (max-width:575.98px) {
    .actions-row {
        gap: 10px;
    }
}

/* List/Notes */
ul.list-unstyled li {
    display: flex;
    align-items: center;
}

    ul.list-unstyled li i.la {
        font-size: 1.06em;
        color: currentColor;
        line-height: 1; /* dikey hizalama düzeldi */
        margin-right: .5rem;
        transition: color .2s ease,transform .2s ease;
    }

        ul.list-unstyled li i.la:hover {
            color: var(--primary);
            transform: translateY(-1px);
        }

/* Animasyon yardımcıları */
.fade-in-up {
    animation: fadeInUp .5s ease both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Spacing ince ayarları */
.card .form-label {
    margin-bottom: 6px;
}

.card .form-text {
    margin-top: 6px;
}

.card .h4 {
    margin-bottom: 6px;
}

.card p.text-secondary.small {
    margin-bottom: 18px;
}
/* küçük ekran kart iç boşluğu */
@media (max-width:420px) {
    .card {
        padding: 20px;
    }

    .h-title {
        font-size: 24px;
    }
}

/* İnce scrollbar (pointer: fine) */
@media (pointer:fine) {
    ::-webkit-scrollbar {
        height: 10px;
        width: 10px;
    }

    ::-webkit-scrollbar-track {
        background: rgba(255,255,255,.03);
    }

    ::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,.12);
        border-radius: 10px;
        border: 2px solid transparent;
        background-clip: padding-box;
    }

        ::-webkit-scrollbar-thumb:hover {
            background: rgba(255,255,255,.22);
        }
}


/* =========================
   SELECT (DropDownList) düzeltmeleri
   - metin kesilmesi / altından sıkışma
   - ok (arrow) görünürlüğü
   - focus/hover tutarlılığı
   ========================= */

/* 1) Genel normalize + ok simgesi (SVG data-uri) */
select.form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* metin kesilmesin: satır yüksekliği + iç boşluk */
    line-height: 1.4;
    padding: 12px 2.25rem 12px 14px; /* sağa ok için ekstra boşluk */
    min-height: 48px;
    /* koyu temaya uygun arka plan/kenar */
    background-color: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.14);
    color: var(--text);
    /* ok simgesi */
    background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'>\
<path d='M5.23 7.21a.75.75 0 011.06.02L10 10.17l3.71-2.94a.75.75 0 111.04 1.08l-4.24 3.36a.75.75 0 01-.94 0L5.21 8.31a.75.75 0 01.02-1.1z'/>\
</svg>");
    background-repeat: no-repeat;
    background-position: right .8rem center;
    background-size: 14px 14px;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

    /* 2) Focus: input'larla aynı görünüm */
    select.form-control:focus {
        background-color: rgba(255,255,255,.06);
        border-color: var(--primary-600);
        box-shadow: 0 0 0 3px rgba(99,102,241,.24);
        outline: none;
    }

    /* 3) Hover: hafif vurgulu */
    select.form-control:hover {
        border-color: rgba(255,255,255,.24);
    }

    /* 4) Disabled state */
    select.form-control:disabled {
        opacity: .7;
        cursor: not-allowed;
    }

    /* 5) Windows/IE eski ok simgesini gizle (görünürse) */
    select.form-control::-ms-expand {
        display: none;
    }

    /* 6) Açılır listedeki seçeneklerin kontrastı (destekleyen tarayıcılar) */
    select.form-control option {
        color: var(--text);
        background-color: var(--card);
    }

/* 7) Input içinde yazı kontrastı (çok soluk görünmesin) */
.form-control {
    color: #eef1f7; /* var(--text) biraz soluk geldiyse bunu güçlendiriyoruz */
}

    /* 8) Placeholder biraz daha görünür olsun */
    .form-control::placeholder {
        color: rgba(238,241,247,.7); /* önceki griye göre daha belirgin */
    }

/* 9) Küçük ekranlarda select taşmasın, metin kırpılmasın */
@media (max-width: 420px) {
    select.form-control {
        padding-right: 2.1rem;
        min-height: 46px;
    }
}

/* 10) Input-group içinde select kullanımında hizalama sorunu yaşanırsa */
.input-group > .form-control,
.input-group > .custom-select {
    line-height: 1.4;
}
