/* ==========================================================================
   /cozumler/oto-galeri — sektöre özel kahraman (cozumler/kahraman/oto-galeri.php)
   Taban: css/gorev-tanitim.css belirteçleri (.gv). Önek: otg-.
   Sahne kökteki a1..a6 sınıflarıyla ilerler (js/oto-galeri-kahraman.js), etkin adım data-adim'de:
     a1 DM yazılıyor · a2 DM geldi · a3 müşteri kartı + etiket · a4 test sürüşü takvime iner
     a5 teklif bağlantısı · a6 müşteri açtı + imzaladı
   Alttaki yol şeridinde dolu çizgi ve araç simgesi etkin adımın sonuna doğru ilerler (--otg-y, --otg-sure).
   ========================================================================== */

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

.otg-ust { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; margin-top: 40px; }
.gv .otg-giris { color: var(--ink-2); font-size: 18px; line-height: 1.58; max-width: 560px; }
.otg-cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Sahne: geniş fotoğraf + dört köşede cam kartlar ---------- */
.otg-sahne { position: relative; margin: 40px 0 0; }
.otg-foto {
    position: relative; aspect-ratio: 1000 / 540; border-radius: 28px; overflow: hidden;
    background: linear-gradient(160deg, #3a2a1a, #c98b45 70%, #f3cf8f); /* fotoğraf gelmezse gün batımı zemini */
}
.otg-foto picture, .otg-foto img { display: block; width: 100%; height: 100%; }
.otg-foto img { object-fit: cover; object-position: 50% 56%; }
.otg-foto::after { /* kartların okunurluğu için köşelerde yumuşak karartma */
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(16, 10, 4, .34), rgba(16, 10, 4, 0) 55%),
        radial-gradient(120% 80% at 100% 100%, rgba(16, 10, 4, .34), rgba(16, 10, 4, 0) 55%);
}
.otg-katman { position: absolute; inset: 0; pointer-events: none; }

.otg-kat {
    position: absolute; width: 306px; padding: 12px 14px 13px; border-radius: 18px;
    background: rgba(255, 255, 255, .8); -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 -20px rgba(16, 10, 4, .55);
    color: var(--ink); opacity: 0; transform: translateY(10px) scale(.98);
    transition: opacity .45s ease, transform .45s ease, box-shadow .3s ease;
}
.otg-dm     { top: 24px; left: 24px; border-bottom-left-radius: 6px; }
.otg-kart   { bottom: 24px; left: 24px; }
.otg-rdv    { top: 24px; right: 24px; width: 290px; }
.otg-teklif { bottom: 24px; right: 24px; }
.otg.a1 .otg-dm, .otg.a3 .otg-kart, .otg.a4 .otg-rdv, .otg.a5 .otg-teklif { opacity: 1; transform: none; }
/* etkin adımın kartı öne çıkar, öncekiler bir tık geri çekilir */
.otg[data-adim] .otg-kat { transform: translateY(0) scale(.97); }
.otg[data-adim="1"] .otg-dm, .otg[data-adim="2"] .otg-kart, .otg[data-adim="3"] .otg-rdv, .otg[data-adim="4"] .otg-teklif {
    transform: none; box-shadow: 0 0 0 1.5px rgba(232, 96, 76, .5), 0 22px 44px -18px rgba(16, 10, 4, .6);
}
.otg:not(.a1) .otg-dm, .otg:not(.a3) .otg-kart, .otg:not(.a4) .otg-rdv, .otg:not(.a5) .otg-teklif { transform: translateY(10px) scale(.98); }

/* 1 · Instagram DM */
.otg-dm-ust { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.otg-dm-ust .sx-lg { width: 22px; height: 22px; border-radius: 7px; font-size: 12px; }
.otg-dm-zaman { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }
.otg-dm-govde { position: relative; margin-top: 7px; min-height: 42px; }
.gv .otg-dm-govde p { font-size: 14px; line-height: 1.45; color: var(--ink); opacity: 0; transition: opacity .35s ease; }
.otg.a2 .otg-dm-govde p { opacity: 1; }
.otg-yaziyor { position: absolute; left: 0; top: 6px; display: inline-flex; gap: 4px; transition: opacity .2s; }
.otg-yaziyor i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: otg-nokta 1s infinite ease-in-out; }
.otg-yaziyor i:nth-child(2) { animation-delay: .15s; }
.otg-yaziyor i:nth-child(3) { animation-delay: .3s; }
.otg.a2 .otg-yaziyor { opacity: 0; }
@keyframes otg-nokta { 0%, 80%, 100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-3px); opacity: 1; } }

/* 2 · Müşteri kartı */
.otg-kisi { display: flex; align-items: center; gap: 10px; }
.otg-av {
    width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    background: var(--b-sand-bg); color: var(--b-sand-t); font-size: 12px; font-weight: 600; letter-spacing: .02em;
}
.otg-kisi-ad { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.otg-kisi-ad b { font-size: 14px; font-weight: 600; }
.otg-kisi-ad small { font-size: 11.5px; color: var(--ink-3); }
.otg-etiketler { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.otg-etiket {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; white-space: nowrap;
    font-size: 12px; font-weight: 500; background: var(--b-peach-bg); color: var(--b-peach-t);
    opacity: 0; transform: scale(.86); transition: opacity .3s ease, transform .4s cubic-bezier(.2, .9, .3, 1.3);
}
.otg-etiket i { font-size: 10px; }
.otg-etiket.e2 { background: var(--soft); color: var(--ink-2); }
.otg.a3 .otg-etiket { opacity: 1; transform: none; }
.otg.a3 .otg-etiket.e1 { transition-delay: .45s; }
.otg.a3 .otg-etiket.e2 { transition-delay: .8s; }
.otg-esles {
    display: flex; align-items: center; gap: 7px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line);
    font-family: var(--mono); font-size: 11px; color: var(--ink-2); opacity: 0; transition: opacity .35s ease 1.3s;
}
.otg-esles i { font-size: 10px; color: var(--coral); }
.otg.a3 .otg-esles { opacity: 1; }

/* 3 · Test sürüşü takvimi */
.otg-rdv-bas { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.otg-rdv-bas b { font-size: 14px; font-weight: 600; }
.otg-rdv-kisi { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }
.otg-gun { display: grid; grid-template-columns: 40px minmax(0, 1fr); }
.otg-saat { display: grid; grid-template-rows: repeat(3, 1fr); }
.otg-saat span { font-family: var(--mono); font-size: 10px; color: var(--ink-3); line-height: 1; }
.otg-kolon {
    position: relative; height: 108px; overflow: hidden; border-radius: 6px;
    background: repeating-linear-gradient(180deg, var(--line) 0 1px, transparent 1px 33.333%);
}
.otg-blok {
    position: absolute; left: 0; right: 0; border-radius: 6px; padding: 3px 8px 0 10px; overflow: hidden;
    display: flex; flex-direction: column; justify-content: center; line-height: 1.15; white-space: nowrap;
}
.otg-blok::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }
.otg-blok b { font-size: 11.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.otg-blok small { font-size: 10.5px; opacity: .8; overflow: hidden; text-overflow: ellipsis; }
.otg-blok.b-dolu { background: var(--b-blue-bg); color: var(--b-blue-t); }
.otg-blok.b-dolu::before { background: var(--b-blue-r); }
.otg-blok.b-yeni {
    background: var(--b-peach-bg); color: var(--b-peach-t);
    opacity: 0; transform: translateX(46%); transition: opacity .35s ease .35s, transform .7s cubic-bezier(.2, .8, .25, 1) .35s;
}
.otg-blok.b-yeni::before { background: var(--b-peach-r); }
.otg.a4 .otg-blok.b-yeni { opacity: 1; transform: none; }
.otg-hatir {
    display: inline-flex; align-items: center; gap: 7px; margin-top: 9px; padding: 4px 10px 4px 4px; border-radius: 999px;
    background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 500; white-space: nowrap;
    opacity: 0; transform: translateY(4px); transition: opacity .35s ease 1.3s, transform .35s ease 1.3s;
}
.otg-hatir .sx-lg { width: 18px; height: 18px; border-radius: 50%; font-size: 10px; color: #fff; }
.otg.a4 .otg-hatir { opacity: 1; transform: none; }

/* 4 · Teklif ve geçmişi */
.otg-tk-ust { display: flex; align-items: center; gap: 10px; }
.otg-tk-ikon {
    width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    background: var(--b-lav-bg); color: var(--b-lav-t); font-size: 13px;
}
.otg-tk-ad { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.otg-tk-ad b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.otg-tk-ad small { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); }
.otg-rozet {
    margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; flex-shrink: 0;
    background: var(--b-mint-bg); color: var(--b-mint-t); font-size: 11px; font-weight: 600;
    opacity: 0; transform: scale(.8); transition: opacity .3s ease 1.6s, transform .45s cubic-bezier(.2, .9, .3, 1.4) 1.6s;
}
.otg-rozet i { font-size: 9px; }
.otg.a6 .otg-rozet { opacity: 1; transform: none; }
.otg-gecmis { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid var(--line); }
.otg-gecmis li {
    position: relative; display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: center; gap: 6px;
    padding-top: 7px; font-size: 12px; color: var(--ink-2);
    opacity: 0; transform: translateY(4px); transition: opacity .3s ease, transform .3s ease;
}
.otg-gecmis li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.otg-gecmis li small { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.otg-gecmis li i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); justify-self: center; }
.otg-gecmis li.g2 i { background: var(--b-blue-r); }
.otg-gecmis li.g3 i { background: var(--b-mint-r); }
.otg-gecmis li.g3 span { color: var(--b-mint-t); font-weight: 600; }
.otg.a5 .otg-gecmis li.g1 { opacity: 1; transform: none; transition-delay: .35s; }
.otg.a6 .otg-gecmis li.g2 { opacity: 1; transform: none; transition-delay: .2s; }
.otg.a6 .otg-gecmis li.g3 { opacity: 1; transform: none; transition-delay: 1.5s; }

/* ---------- Yol şeridi: dört adım ---------- */
.otg-rota { position: relative; margin-top: 30px; }
.otg-yol {
    position: relative; height: 2px; margin: 0 0 0; border-radius: 2px;
    background: repeating-linear-gradient(90deg, var(--line-2) 0 12px, transparent 12px 22px); /* şerit çizgisi */
}
.otg-yol-dolu {
    position: absolute; left: 0; top: 0; height: 2px; width: var(--otg-y, 0%); border-radius: 2px; background: var(--ink);
    transition: width var(--otg-sure, 0ms) linear, height var(--otg-sure, 0ms) linear;
}
.otg-yol.anisiz .otg-yol-dolu { transition: none; }
.otg-arac {
    position: absolute; right: -15px; top: 50%; transform: translateY(-50%);
    width: 30px; height: 22px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--ink); color: #fff; font-size: 11px; box-shadow: 0 0 0 3px #fff;
}
.otg-adimlar { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.otg-adimlar li { min-width: 0; }
.otg-adimlar li + li { border-left: 1px solid var(--line); }
.otg-adimlar button {
    display: flex; flex-direction: column; gap: 4px; width: 100%; height: 100%; padding: 22px 20px 4px;
    background: none; border: 0; text-align: left; cursor: pointer; color: var(--ink);
}
.otg-adimlar li:first-child button { padding-left: 0; }
.otg-adimlar li:last-child button { padding-right: 0; }
.otg-no { font-family: var(--mono); font-size: 12px; color: var(--ink-3); transition: color .3s; }
.otg-adimlar b { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.otg-adimlar button > span:not(.otg-no) { font-size: 14px; line-height: 1.5; color: var(--ink-3); transition: color .3s; }
.otg-adimlar li.etkin .otg-no { color: var(--coral); }
.otg-adimlar li.etkin button > span:not(.otg-no) { color: var(--ink-2); }
.otg-adimlar button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }

/* ---------- Duyarlı ---------- */
@media (max-width: 1080px) {
    .gv .otg { padding-left: 32px; padding-right: 32px; }
    .otg-foto { aspect-ratio: 1000 / 600; }
    .otg-kat { width: calc(50% - 30px); max-width: 306px; }
    .otg-dm, .otg-kart { left: 18px; }
    .otg-rdv, .otg-teklif { right: 18px; }
    .otg-dm, .otg-rdv { top: 18px; }
    .otg-kart, .otg-teklif { bottom: 18px; }
}
@media (max-width: 900px) {
    .otg-ust { grid-template-columns: 1fr; gap: 22px; margin-top: 28px; }
    .otg-cta { justify-content: flex-start; }
    .otg-foto { aspect-ratio: 704 / 560; }
    .otg-adimlar button { padding: 20px 14px 4px; }
    .otg-adimlar b { font-size: 15px; }
    .otg-adimlar button > span:not(.otg-no) { font-size: 13px; }
}
@media (max-width: 760px) {
    .gv .otg { padding: 40px 16px 56px; }
    .gv .otg h1 { font-size: clamp(34px, 10vw, 46px); letter-spacing: -.045em; }
    .gv .otg-giris { font-size: 16px; }
    .otg-cta .gv-btn { flex: 1 1 100%; }
    .otg-sahne { margin-top: 32px; }
    /* telefonda dikey kırpım; kartlar fotoğrafın üstünde alt alta */
    .otg-foto { aspect-ratio: auto; height: 600px; border-radius: 22px; }
    .otg-foto img { object-position: 50% 50%; }
    .otg-foto::after { background: linear-gradient(180deg, rgba(16, 10, 4, .3), rgba(16, 10, 4, .12) 40%, rgba(16, 10, 4, .4)); }
    .otg-katman { display: flex; flex-direction: column; gap: 8px; padding: 12px; }
    .otg-kat, .otg-rdv { position: relative; inset: auto; width: auto; max-width: none; padding: 10px 12px 11px; border-radius: 16px; }
    .otg-dm { border-bottom-left-radius: 6px; }
    .otg-teklif { margin-top: auto; }
    .gv .otg-dm-govde p { font-size: 13.5px; }
    .otg-dm-govde { min-height: 38px; }
    .otg-etiketler { margin-top: 8px; }
    .otg-esles { margin-top: 8px; padding-top: 7px; }
    .otg-kolon { height: 100px; }
    .otg-hatir { margin-top: 7px; }
    .otg-gecmis { margin-top: 8px; }
    .otg-gecmis li { padding-top: 5px; }
    /* yol dikey: adımların solunda, araç aşağı doğru iner */
    .otg-rota { margin-top: 28px; padding-left: 34px; }
    .otg-yol {
        position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; height: auto;
        background: repeating-linear-gradient(180deg, var(--line-2) 0 12px, transparent 12px 22px);
    }
    .otg-yol-dolu { width: 2px; height: var(--otg-y, 0%); }
    .otg-arac { right: auto; top: auto; left: 50%; bottom: -12px; width: 24px; height: 24px; transform: translateX(-50%) rotate(90deg); font-size: 10px; }
    .otg-adimlar { grid-template-columns: 1fr; }
    .otg-adimlar li + li { border-left: 0; border-top: 1px solid var(--line); }
    .otg-adimlar button, .otg-adimlar li:first-child button, .otg-adimlar li:last-child button { padding: 14px 0 15px; }
}
@media (prefers-reduced-motion: reduce) {
    .otg *, .otg *::before { transition: none !important; animation: none !important; }
}
