/* ==========================================================================
   /cozumler/e-ticaret — sektöre özel kahraman (cozumler/kahraman/e-ticaret.php)
   Taban: css/gorev-tanitim.css belirteçleri (.gv). Önek: etc-.
   Kompozisyon: tam genişlik fotoğraf bandı; üstünde soldan sağa iş akışı (DM → stok kartı → sipariş listesi),
   altında aynı sırada üç adım. Telefonda (≤900) pencereler fotoğrafın altındaki tek yuvada sırayla değişir.
   Sahne durumu kökteki a1..a5 sınıflarıyla ilerler (js/e-ticaret-kahraman.js):
     a1 DM yazılıyor · a2 soru geldi · a3 stoğa bakıldı + yanıt · a4 sipariş listeye düştü · a5 "Siparişim nerede?"
   ========================================================================== */

.gv .etc { padding: 72px 40px 0; }
.gv .etc h1 {
    font-size: clamp(40px, 6vw, 66px); line-height: 1.04; letter-spacing: -.05em; font-weight: 600; max-width: 1000px;
}
.gv .etc .sx-alt { margin-top: 18px; }

/* ---------- Giriş + düğmeler ---------- */
.etc-ust { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-top: 34px; }
.gv .etc-giris { max-width: 560px; color: var(--ink-2); font-size: 18px; line-height: 1.58; }
.etc-cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Fotoğraf bandı ---------- */
.etc-gorsel { position: relative; margin: 44px 0 0; }
.etc-foto {
    position: relative; aspect-ratio: 1000 / 540; border-radius: 28px; overflow: hidden;
    background: linear-gradient(160deg, #f1e7da, #e4d3bf); /* fotoğraf gelmezse sıcak zemin */
}
.etc-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block; }
.etc-foto::after { /* kenarlarda okunurluk için yumuşak karartma */
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(24, 16, 8, .18) 0%, rgba(24, 16, 8, 0) 30%, rgba(24, 16, 8, 0) 66%, rgba(24, 16, 8, .16) 100%),
                linear-gradient(180deg, rgba(24, 16, 8, 0) 62%, rgba(24, 16, 8, .22) 100%);
}
.etc-katman { position: absolute; inset: 0; pointer-events: none; }

/* 1 · Instagram DM (cam pencere) */
.etc-dm {
    position: absolute; top: 7%; left: 3.5%; width: min(310px, 31%);
    padding: 12px 14px 14px; border-radius: 18px 18px 18px 6px;
    background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 18px 40px -18px rgba(24, 16, 8, .45);
    opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .45s ease, transform .45s ease;
}
.etc.a1 .etc-dm { opacity: 1; transform: none; }
.etc-dm-ust { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.etc-dm-ust .sx-lg { width: 22px; height: 22px; border-radius: 7px; font-size: 12px; }
.etc-dm-ust > span:last-child { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }
.etc-dm-govde { position: relative; margin-top: 7px; min-height: 40px; }
.gv .etc-gelen { font-size: 14px; line-height: 1.45; color: var(--ink); opacity: 0; transition: opacity .35s ease; }
.etc.a2 .etc-gelen { opacity: 1; }
.etc-yaziyor { position: absolute; left: 0; top: 6px; display: inline-flex; gap: 4px; transition: opacity .2s; }
.etc-yaziyor i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: etc-nokta 1s infinite ease-in-out; }
.etc-yaziyor i:nth-child(2) { animation-delay: .15s; }
.etc-yaziyor i:nth-child(3) { animation-delay: .3s; }
.etc.a2 .etc-yaziyor { opacity: 0; }
@keyframes etc-nokta { 0%, 80%, 100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-3px); opacity: 1; } }

.etc-giden { /* a3: AI asistanın stok bilgisiyle yanıtı */
    margin: 10px 0 0 22px; padding: 8px 12px 10px; border-radius: 14px 14px 4px 14px;
    background: var(--ink); color: #fff;
    opacity: 0; transform: translateY(6px); transition: opacity .4s ease .45s, transform .4s ease .45s;
}
.etc-giden small { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; color: rgba(255, 255, 255, .62); }
.etc-giden small i { font-size: 9.5px; color: #f6c9b8; }
.gv .etc-giden p { margin-top: 3px; font-size: 13.5px; line-height: 1.42; color: #fff; }
.etc.a3 .etc-giden { opacity: 1; transform: none; }

/* 2 · Renk × beden stok kartı */
.etc-stok {
    position: absolute; left: 35%; bottom: -30px; width: min(268px, 27%);
    padding: 12px 14px 13px; border-radius: 16px; background: #fff; border: 1px solid var(--line-2);
    box-shadow: 0 24px 50px -26px rgba(24, 16, 8, .55);
    opacity: 0; transform: translateY(12px); transition: opacity .4s ease, transform .4s ease;
}
.etc.a3 .etc-stok { opacity: 1; transform: none; }
.etc-stok-bas { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.etc-stok-bas b { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.etc-stok-bas span {
    margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px;
    background: var(--b-mint-bg); color: var(--b-mint-t); font-family: var(--mono); font-size: 9.5px; white-space: nowrap;
}
.etc-matris { display: grid; grid-template-columns: 58px repeat(3, minmax(0, 1fr)); gap: 4px; align-items: center; }
.etc-bd { font-family: var(--mono); font-size: 10px; color: var(--ink-3); text-align: center; }
.etc-renk { font-size: 12px; font-weight: 500; white-space: nowrap; }
.etc-hucre {
    font-size: 11px; font-weight: 500; text-align: center; padding: 5px 2px; border-radius: 7px; white-space: nowrap;
    transition: box-shadow .35s ease;
}
.etc-hucre.s-var { background: var(--b-mint-bg); color: var(--b-mint-t); }
.etc-hucre.s-az  { background: var(--b-sand-bg); color: var(--b-sand-t); }
.etc-hucre.s-yok { background: var(--soft); color: var(--ink-3); }
.etc.a3 .etc-sorulan.s-yok { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--coral); transition-delay: .15s; }
.etc.a3 .etc-sorulan.s-var { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--b-mint-r); transition-delay: .6s; }

/* 3 · Sipariş listesi */
.etc-siparis { position: absolute; top: 14%; right: -28px; width: min(336px, 34%); }
.etc-pencere {
    background: #fff; border: 1px solid var(--line-2); border-radius: 16px; padding: 12px 12px 4px;
    box-shadow: 0 28px 60px -30px rgba(24, 16, 8, .55);
}
.etc-pencere-bas { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.etc-pencere-bas b { font-size: 14px; font-weight: 600; }
.etc-sekme { margin-left: auto; display: inline-flex; padding: 2px; border-radius: 999px; background: var(--soft); font-size: 11px; }
.etc-sekme em, .etc-sekme span { font-style: normal; padding: 3px 9px; border-radius: 999px; color: var(--ink-3); white-space: nowrap; }
.etc-sekme em { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(20, 20, 20, .1); }

.etc-liste { list-style: none; margin: 0 -6px; padding: 0; }
.etc-liste li > div {
    display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; column-gap: 9px; align-items: center;
    padding: 7px 6px; border-top: 1px solid var(--line); border-radius: 8px; transition: background .4s ease;
}
.etc-liste .sx-lg { width: 26px; height: 26px; border-radius: 8px; font-size: 13px; }
.etc-pzy {
    width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    background: var(--soft); border: 1px solid var(--line-2); color: var(--ink-2);
    font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: -.02em;
}
.etc-ad { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.etc-ad b { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.etc-ad small { font-size: 11px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.etc-durum { font-style: normal; font-size: 10.5px; font-weight: 500; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.etc-durum.d-yeni { background: var(--b-blue-bg); color: var(--b-blue-t); }
.etc-durum.d-hzr  { background: var(--b-sand-bg); color: var(--b-sand-t); }
.etc-durum.d-krg  { background: var(--b-lav-bg);  color: var(--b-lav-t); }
.etc-durum.d-tsl  { background: var(--b-mint-bg); color: var(--b-mint-t); }

.etc-yeni { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s ease, opacity .4s ease .15s; }
.etc-yeni > div { border-top: 0 !important; }
.etc.a4 .etc-yeni { max-height: 60px; opacity: 1; }
.etc.a4 .etc-yeni > div { background: var(--peach); }
.etc.a5 .etc-yeni > div { background: transparent; }
.etc.a5 .etc-sorgu > div { background: var(--lav); }

.etc-nerede { /* a5: "Siparişim nerede?" sorusu gerçek durumla yanıtlandı */
    position: absolute; right: 28px; bottom: calc(100% + 10px); display: grid; gap: 2px;
    padding: 8px 12px 9px; border-radius: 14px 14px 4px 14px;
    background: rgba(20, 20, 20, .84); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff;
    box-shadow: 0 16px 30px -18px rgba(24, 16, 8, .6);
    opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .4s ease;
}
.etc-nerede b { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.etc-nerede b small { font-weight: 400; color: rgba(255, 255, 255, .6); font-size: 11px; margin-left: 4px; }
.etc-nerede span { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: rgba(255, 255, 255, .86); white-space: nowrap; }
.etc-nerede span i { font-size: 10.5px; color: #b9a9ef; }
.etc.a5 .etc-nerede { opacity: 1; transform: none; }

/* ---------- Üç adım (bandın altında, aynı sırada) ---------- */
.etc-adimlar { list-style: none; margin: 66px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.etc-adimlar button {
    position: relative; display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; row-gap: 4px;
    width: 100%; padding: 18px 0 2px; background: none; border: 0; border-top: 1px solid var(--line-2);
    text-align: left; cursor: pointer; color: var(--ink);
}
.etc-no { grid-row: span 2; font-family: var(--mono); font-size: 12px; color: var(--ink-3); padding-top: 3px; transition: color .3s; }
.etc-adimlar b { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.etc-adimlar button > span:not(.etc-no) { grid-column: 2; font-size: 14px; line-height: 1.5; color: var(--ink-3); transition: color .3s; }
.etc-adimlar li.etkin .etc-no { color: var(--coral); }
.etc-adimlar li.etkin button > span:not(.etc-no) { color: var(--ink-2); }
.etc-adimlar button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 6px; }
.etc-ilerleme { position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--ink); }
.etc-adimlar li.etkin .etc-ilerleme { animation: etc-ilerle var(--etc-sure, 3s) linear forwards; }
@keyframes etc-ilerle { from { width: 0; } to { width: 100%; } }

/* ---------- Aynı listede: kanallar + pazaryerleri ---------- */
.etc-kanallar {
    margin: 72px 0 0; padding: 20px 0 4px; border-top: 1px solid var(--line);
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 24px; align-items: center;
}
.etc-kanallar-bas { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.etc-kanallar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.etc-kanallar li { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.etc-kanallar li .sx-lg, .etc-kanallar li .etc-pzy { width: 22px; height: 22px; border-radius: 6px; font-size: 11px; }
.etc-ayrac { width: 1px; height: 18px; background: var(--line-2); }
.gv .etc-kanallar p { grid-column: 2; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.etc-kanallar p a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); white-space: nowrap; }
.etc-kanallar p a:hover { text-decoration-color: var(--ink); }

/* ---------- Duyarlı ---------- */
@media (max-width: 1080px) {
    .gv .etc { padding-left: 32px; padding-right: 32px; }
    .etc-siparis { right: -16px; }
    .etc-dm { left: 2.5%; }
}
@media (max-width: 900px) {
    /* Pencereler fotoğrafın altındaki tek yuvada sırayla: DM (+ stok kartı) → sipariş listesi. Yüz açık kalır. */
    .etc-foto { aspect-ratio: 4 / 3.3; }
    .etc-foto img { object-position: 46% 30%; }
    .etc-foto::after { background: linear-gradient(180deg, rgba(24, 16, 8, 0) 40%, rgba(24, 16, 8, .3) 100%); }
    .etc-katman {
        inset: auto auto 14px 14px; width: min(440px, calc(100% - 28px));
        display: grid; grid-template-columns: minmax(0, 1fr); align-items: end;
    }
    .etc-dm, .etc-stok, .etc-siparis { position: static; width: auto; grid-column: 1; }
    .etc-stok { grid-row: 1; margin-bottom: 8px; transform: translateY(8px); }
    .etc-dm { grid-row: 2; }
    .etc-siparis { grid-row: 1 / 3; align-self: end; opacity: 0; transform: translateY(12px); transition: opacity .45s ease, transform .45s ease; }
    .etc-nerede { position: static; justify-self: start; margin-bottom: 8px; }
    .etc-siparis { display: grid; }
    .etc.a4 .etc-siparis { opacity: 1; transform: none; transition-delay: .25s; }
    .etc.a4 .etc-dm, .etc.a4 .etc-stok { opacity: 0; transform: translateY(-8px); transition-delay: 0s; }
    .etc-adimlar { gap: 0 20px; margin-top: 40px; }
    .etc-kanallar { grid-template-columns: 1fr; margin-top: 52px; }
    .gv .etc-kanallar p { grid-column: auto; }
}
@media (max-width: 760px) {
    .gv .etc { padding: 40px 16px 0; }
    .gv .etc h1 { font-size: clamp(34px, 10vw, 46px); letter-spacing: -.045em; }
    .etc-ust { flex-direction: column; align-items: stretch; gap: 22px; margin-top: 26px; }
    .gv .etc-giris { font-size: 16px; }
    .etc-cta .gv-btn { flex: 1 1 100%; }
    .etc-gorsel { margin-top: 32px; }
    .etc-foto { aspect-ratio: auto; height: 600px; border-radius: 22px; }
    .etc-foto img { object-position: 50% 18%; }
    .etc-katman { left: 10px; bottom: 10px; width: calc(100% - 20px); }
    .etc-dm { padding: 11px 12px 12px; }
    .etc-giden { margin-left: 14px; }
    .etc-adimlar { grid-template-columns: 1fr; margin-top: 26px; }
    .etc-adimlar button { padding: 14px 0 15px; }
    .etc-adimlar li:last-child button { border-bottom: 1px solid var(--line-2); }
    .etc-kanallar { margin-top: 40px; }
    .etc-kanallar ul { gap: 10px 14px; }
    .etc-ayrac { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .etc *, .etc *::before { transition: none !important; animation: none !important; }
    .etc-adimlar li.etkin .etc-ilerleme { width: 100%; }
}
