/* =========================================================
   Vitrin v4 — video hero, koyu cam yükleyici, animasyonlu bölümler
   ========================================================= */

/* ---------- Hero arka planı ---------- */
.hero-video { position: absolute; inset: 0; z-index: -3; overflow: hidden; background: var(--koyu); }
.hero-video video, .hero-video canvas, .hero-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video .ortu { position: absolute; inset: 0; background:
    linear-gradient(180deg, rgba(7,9,15,.25) 0%, rgba(7,9,15,.05) 45%, rgba(7,9,15,.9) 100%); }
.hero-koyu.gorsel-var::before, .hero-koyu.gorsel-var::after { display: none; }
.hero-koyu.video-var::before, .hero-koyu.video-var::after { opacity: .35; }

/* ---------- Koyu cam yükleyici (WeTransfer tarzı) ---------- */
.yk { color: #fff; background: rgba(13, 17, 30, .62); border: 1px solid rgba(255,255,255,.1); border-radius: 26px; padding: 1.4rem;
    backdrop-filter: saturate(140%) blur(24px); -webkit-backdrop-filter: saturate(140%) blur(24px);
    box-shadow: 0 40px 100px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.08); }
.yk .ust { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.yk .ust .b { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.yk .ust .k { font-size: .72rem; color: rgba(255,255,255,.5); margin-top: .15rem; }
.yk .rozet-paket { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .35rem .6rem; border-radius: 999px; background: rgba(47,99,255,.18); color: #9db8ff; border: 1px solid rgba(47,99,255,.35); }

.yk .ekle { display: flex; align-items: center; gap: .9rem; padding: .9rem; border-radius: 18px; cursor: pointer;
    border: 1px dashed rgba(255,255,255,.22); background: rgba(255,255,255,.03); transition: all .2s; }
.yk .ekle:hover, .yk .ekle.surukleniyor { border-color: #7da3ff; background: rgba(47,99,255,.12); }
.yk .ekle .arti { width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--koyu); display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 10px 30px -10px rgba(255,255,255,.5); transition: transform .2s; }
.yk .ekle:hover .arti { transform: scale(1.06); }
.yk .ekle .m { font-weight: 600; font-size: .95rem; }
.yk .ekle .a { font-size: .74rem; color: rgba(255,255,255,.5); margin-top: .1rem; }

.yk .liste { margin-top: .5rem; display: flex; flex-direction: column; gap: .35rem; }
.yk .dosya-satir { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.08); color: #fff; padding: .45rem .55rem; }
.yk .dosya-satir .text-slate-500 { color: rgba(255,255,255,.5) !important; }
.yk .dosya-satir button { color: rgba(255,255,255,.4); }
.yk .dosya-satir button:hover { color: #fb7185; background: rgba(251,113,133,.12); }
.yk [data-ozet] { font-size: .72rem; color: rgba(255,255,255,.5); margin: .45rem 0 0; min-height: 1rem; }

.yk .mod { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.06); margin: .9rem 0 .35rem; }
.yk .mod label { cursor: pointer; }
.yk .mod input { position: absolute; opacity: 0; pointer-events: none; }
.yk .mod span { display: block; text-align: center; font-size: .82rem; font-weight: 600; padding: .5rem; border-radius: 9px; color: rgba(255,255,255,.6); transition: all .15s; }
.yk .mod input:checked + span { background: #fff; color: var(--koyu); }
.yk .mod label.kapali { opacity: .35; pointer-events: none; }

.yk .alanlar { border-top: 1px solid rgba(255,255,255,.08); }
.yk .alan { display: flex; align-items: center; gap: .6rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.yk .alan svg { width: 16px; height: 16px; color: rgba(255,255,255,.4); flex-shrink: 0; }
.yk .alan input, .yk .alan textarea { flex: 1; background: transparent; border: 0; outline: 0; color: #fff; font-size: .9rem; padding: .7rem 0; min-width: 0; }
.yk .alan textarea { resize: none; height: 44px; line-height: 1.35; padding-top: .8rem; }
.yk .alan input::placeholder, .yk .alan textarea::placeholder { color: rgba(255,255,255,.4); }
.yk .alan:focus-within svg { color: #7da3ff; }

.yk .cipler { display: flex; flex-wrap: wrap; gap: .4rem; margin: .9rem 0; }
.yk .cip { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .7rem; border-radius: 999px; font-size: .76rem; font-weight: 600;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.85); cursor: pointer; transition: all .15s; position: relative; }
.yk .cip:hover { background: rgba(255,255,255,.1); }
.yk .cip.aktif { background: rgba(47,99,255,.22); border-color: rgba(125,163,255,.6); color: #cfdcff; }
.yk .cip.kapali { opacity: .35; pointer-events: none; }
.yk .cip svg { width: 13px; height: 13px; }
.yk .cip select { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; color-scheme: dark; color: #fff; background: #0f1424; }
.yk .cip select option { background: #0f1424; color: #fff; padding: .4rem; }
.yk .cip select option:checked { background: #2f63ff; color: #fff; }
.yk .cip input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.yk .sifre-kutu { display: none; margin-top: -.3rem; margin-bottom: .9rem; }
.yk .sifre-kutu.acik { display: block; }
.yk .sifre-kutu input { width: 100%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; color: #fff; padding: .6rem .8rem; font-size: .875rem; outline: 0; }
.yk .sifre-kutu input:focus { border-color: #7da3ff; }

.yk .gonder { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .95rem 1rem; border-radius: 14px; border: 0; cursor: pointer;
    font-weight: 700; font-size: .98rem; color: #fff; background: linear-gradient(135deg, #3b74ff, #1f4ef0 60%, #4f46e5); box-shadow: 0 16px 40px -12px rgba(59,116,255,.8); transition: transform .15s, box-shadow .15s; }
.yk .gonder:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 22px 50px -12px rgba(59,116,255,.95); }
.yk .gonder:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.yk .not { font-size: .7rem; color: rgba(255,255,255,.4); text-align: center; margin-top: .7rem; }
.yk .not a { color: #9db8ff; }
.yk .bayrak-hata { background: rgba(244,63,94,.12); border-color: rgba(244,63,94,.35); color: #fecdd3; margin-bottom: .75rem; }

/* yükleme + bitti adımları koyu zeminde */
.yk .halka { background: conic-gradient(#7da3ff calc(var(--yuzde) * 1%), rgba(255,255,255,.08) 0); }
.yk .halka::before { background: #0f1424; box-shadow: none; }
.yk [data-durum] { color: #fff; }
.yk [data-hiz], .yk [data-bitti-metin], .yk .text-slate-500, .yk .text-slate-400 { color: rgba(255,255,255,.55) !important; }
.yk .bitti-ikon { width: 72px; height: 72px; border-radius: 50%; background: rgba(16,185,129,.15); color: #34d399; display: grid; place-items: center; margin: 0 auto 1rem; }
.yk [data-baglanti] { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #fff; border-radius: 12px; padding: .65rem .8rem; font-size: .82rem; width: 100%; outline: 0; }
.yk .btn-beyaz { background: #fff; color: var(--koyu); border-color: transparent; }
.yk .btn-hayalet { color: rgba(255,255,255,.75); } .yk .btn-hayalet:hover { background: rgba(255,255,255,.08); }
.yk .btn-koyu { background: #fff; color: var(--koyu); }

/* ---------- Bölüm: hız ---------- */
.hiz-sahne { position: relative; border-radius: 28px; background: var(--koyu); color: #fff; padding: 2rem; overflow: hidden; min-height: 320px; }
.hiz-sahne::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 80% 20%, rgba(47,99,255,.35), transparent 60%); }
.parcalar { display: grid; grid-template-columns: repeat(16, 1fr); gap: 5px; margin-top: 1.25rem; }
.parcalar i { display: block; height: 34px; border-radius: 6px; background: rgba(255,255,255,.08); transform-origin: bottom; }
.goster .parcalar i { animation: parca-dol .5s ease forwards; background: linear-gradient(180deg, #7da3ff, #2f63ff); }
@keyframes parca-dol { from { opacity: .25; transform: scaleY(.3);} to { opacity: 1; transform: scaleY(1);} }
.hiz-deger { font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.hiz-cubuk { height: 8px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; margin-top: 1rem; }
.hiz-cubuk i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #7da3ff, #34d399); }
.goster .hiz-cubuk i { animation: cubuk-dol 2.2s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes cubuk-dol { to { width: 100%; } }

/* ---------- Bölüm: güvenlik ---------- */
.kilit-sahne { position: relative; aspect-ratio: 1; max-width: 380px; margin: 0 auto; display: grid; place-items: center; }
.kilit-sahne .halka-cizgi { position: absolute; border-radius: 50%; border: 1px solid rgba(47,99,255,.25); }
.kilit-sahne .h1 { inset: 0; animation: don 22s linear infinite; border-style: dashed; }
.kilit-sahne .h2 { inset: 14%; animation: don 16s linear infinite reverse; }
.kilit-sahne .h3 { inset: 28%; border-color: rgba(47,99,255,.4); }
.kilit-sahne .nokta { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--marka-500); box-shadow: 0 0 0 6px rgba(47,99,255,.18); top: -5px; left: calc(50% - 5px); }
.kilit-sahne .kilit { width: 120px; height: 120px; border-radius: 34px; background: linear-gradient(160deg, #142a6b, #0d1120); color: #fff; display: grid; place-items: center; box-shadow: 0 30px 60px -20px rgba(20,42,107,.7), inset 0 1px 0 rgba(255,255,255,.1); position: relative; z-index: 1; }
.kilit-sahne .kilit svg { width: 50px; height: 50px; }
.kilit-sahne .etiket-cam { position: absolute; z-index: 2; padding: .5rem .75rem; border-radius: 12px; background: #fff; border: 1px solid var(--cizgi); box-shadow: var(--golge-md); font-size: .75rem; font-weight: 600; display: flex; align-items: center; gap: .4rem; white-space: nowrap; }
.kilit-sahne .e1 { top: 12%; right: -4%; } .kilit-sahne .e2 { bottom: 14%; left: -6%; } .kilit-sahne .e3 { bottom: -2%; right: 8%; }
.yazici { font-family: ui-monospace, Menlo, monospace; font-size: .8rem; color: var(--marka-700); }
.yazici::after { content: "▍"; animation: yanip .9s steps(1) infinite; color: var(--marka-400); }
@keyframes yanip { 50% { opacity: 0; } }

/* ---------- Bölüm: kendini imha ---------- */
.imha-kart { position: relative; border-radius: 22px; background: #fff; border: 1px solid var(--cizgi); padding: 1.25rem; box-shadow: var(--golge-md); max-width: 360px; margin: 0 auto; overflow: hidden; }
.imha-kart .fitil { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, #fb7185, #f59e0b); transform-origin: left; }
.goster .imha-kart .fitil { animation: fitil 6s linear infinite; }
@keyframes fitil { 0% { transform: scaleX(1);} 85% { transform: scaleX(0); opacity: 1;} 90% { opacity: 0;} 100% { transform: scaleX(1); opacity: 0;} }
.goster .imha-kart .icerik { animation: yanma 6s ease-in-out infinite; }
@keyframes yanma { 0%, 80% { opacity: 1; filter: none; } 90% { opacity: 0; filter: blur(6px); transform: scale(.96);} 100% { opacity: 1; } }
.imha-kart .sayim { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

/* ---------- Bölüm: altyapı ---------- */
.dc-liste { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.dc { border-radius: 18px; background: #fff; border: 1px solid var(--cizgi); padding: 1rem; display: flex; align-items: center; gap: .75rem; }
.dc .nabiz-nokta { width: 12px; height: 12px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 0 rgba(16,185,129,.5); animation: nabiz-y 2.4s infinite; flex-shrink: 0; }
.dc:nth-child(2) .nabiz-nokta { animation-delay: .8s; } .dc:nth-child(3) .nabiz-nokta { animation-delay: 1.6s; }
@keyframes nabiz-y { 70% { box-shadow: 0 0 0 10px rgba(16,185,129,0);} 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0);} }
@media (max-width: 640px) { .dc-liste { grid-template-columns: 1fr; } }

/* ---------- Sayaç ---------- */
.sayim-deger { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) { .kilit-sahne .h1, .kilit-sahne .h2, .goster .imha-kart .fitil, .goster .imha-kart .icerik, .dc .nabiz-nokta { animation: none; } }
