/* ==========================================================================
   /cozumler/estetik-cerrahi — sektöre özel kahraman (cozumler/kahraman/estetik-cerrahi.php)
   Taban: css/gorev-tanitim.css belirteçleri (.gv). Önek: est-.
   Sahne durumu kökteki a1..a4 sınıflarıyla ilerler (js/estetik-cerrahi-kahraman.js):
     a1 mesaj yazılıyor · a2 fotoğraflı mesaj geldi, fotoğraflar hasta kartında
     a3 konsültasyon + teklif imzalandı · a4 operasyon ve kontrol takvimi
   Hasta kartının sekmesi sahneyle değişir (Fotoğraflar → Anlaşmalar → Randevular).
   ========================================================================== */

.gv .est { padding: 72px 40px 0; }
.gv .est h1 {
    font-size: clamp(40px, 6vw, 64px); line-height: 1.04; letter-spacing: -.05em; font-weight: 600; max-width: 1000px;
}
.gv .est .sx-alt { margin-top: 18px; }
.est-nw-gen, .est-nw { white-space: nowrap; } /* çıkartma tek başına alt satıra düşmesin */
.est-izgara {
    display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
    gap: 84px; align-items: center; margin-top: 60px;
}
.est-gorsel { grid-column: 1; grid-row: 1; }
.est-metin { grid-column: 2; grid-row: 1; }

/* ---------- Metin sütunu ---------- */
.gv .est-giris { color: var(--ink-2); font-size: 18px; line-height: 1.58; }

/* Adımlar: dikey hasta yolculuğu (düğüm + bağlantı çizgisi) */
.est-adimlar { list-style: none; margin: 30px 0 0; padding: 0; }
.est-adimlar li { position: relative; }
.est-adimlar li::before, .est-adimlar li::after { /* düğümden sonrakine iz + dolgu */
    content: ''; position: absolute; left: 17px; top: 50px; bottom: -14px; width: 1.5px; border-radius: 2px;
}
.est-adimlar li::before { background: var(--line-2); }
.est-adimlar li::after { background: var(--coral); transform: scaleY(0); transform-origin: top; }
.est-adimlar li:last-child::before, .est-adimlar li:last-child::after { bottom: 6px; }
.est-adimlar li:last-child::before { background: linear-gradient(var(--line-2), transparent); }
.est-adimlar li.etkin::after { animation: est-dol var(--est-sure, 3s) linear forwards; }
.est-adimlar li.bitti::after { transform: none; background: var(--ink); }
@keyframes est-dol { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.est-adimlar button {
    position: relative; display: grid; row-gap: 3px; width: 100%; padding: 14px 0 16px 56px;
    background: none; border: 0; text-align: left; cursor: pointer; color: var(--ink);
}
.est-no {
    position: absolute; left: 0; top: 14px; width: 36px; height: 36px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--mono); font-size: 12px; color: var(--ink-3); background: #fff; border: 1.5px solid var(--line-2);
    transition: background .3s, color .3s, border-color .3s, box-shadow .3s;
}
.est-adimlar b { font-size: 16.5px; font-weight: 600; letter-spacing: -.012em; padding-top: 7px; }
.est-adimlar button > span:not(.est-no) { font-size: 14px; line-height: 1.52; color: var(--ink-3); transition: color .3s; }
.est-adimlar li.etkin .est-no { background: var(--coral); border-color: var(--coral); color: #fff; box-shadow: 0 0 0 5px rgba(232, 96, 76, .14); }
.est-adimlar li.bitti .est-no { background: var(--ink); border-color: var(--ink); color: #fff; }
.est-adimlar li.etkin button > span:not(.est-no) { color: var(--ink-2); }
.est-adimlar button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 8px; }

.est-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Görsel sütunu ---------- */
.est-gorsel { position: relative; margin: 0; }
.est-foto {
    position: relative; aspect-ratio: 1 / 1.14; border-radius: 28px; overflow: hidden;
    background: linear-gradient(170deg, #dfeeee, #b9d6d4); /* fotoğraf gelmezse ameliyathane yeşili */
}
.est-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; display: block; }
.est-foto::after { /* üstte ve altta okunurluk için yumuşak karartma */
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(10, 30, 32, .26) 0%, rgba(10, 30, 32, 0) 30%, rgba(10, 30, 32, 0) 56%, rgba(10, 30, 32, .34) 100%);
}
.est-katman { position: absolute; inset: 0; pointer-events: none; }

/* 1 · Fotoğraflı mesaj (cam baloncuk) */
.est-mesaj {
    position: absolute; top: 24px; right: -36px; width: min(300px, 68%);
    padding: 12px 14px 13px; border-radius: 18px 18px 6px 18px;
    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(10, 30, 32, .5);
    opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .45s ease, transform .45s ease;
}
.est.a1 .est-mesaj { opacity: 1; transform: none; }
.est-mesaj-ust { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.est-mesaj-ust .sx-lg { width: 22px; height: 22px; border-radius: 7px; font-size: 12px; }
.est-mesaj-ust span { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }
.est-mesaj-govde { position: relative; margin-top: 7px; min-height: 40px; }
.gv .est-mesaj-govde p { font-size: 14px; line-height: 1.42; color: var(--ink); opacity: 0; transition: opacity .35s ease; }
.est.a2 .est-mesaj-govde p { opacity: 1; }
.est-yaziyor { position: absolute; left: 0; top: 6px; display: inline-flex; gap: 4px; transition: opacity .2s; }
.est-yaziyor i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: est-nokta 1s infinite ease-in-out; }
.est-yaziyor i:nth-child(2) { animation-delay: .15s; }
.est-yaziyor i:nth-child(3) { animation-delay: .3s; }
.est.a2 .est-yaziyor { opacity: 0; animation: none; }
@keyframes est-nokta { 0%, 80%, 100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-3px); opacity: 1; } }

/* Ön değerlendirme kareleri (soyut çizim; gerçek hasta görseli yok) */
.est-kareler { display: flex; gap: 6px; margin-top: 8px; }
.est-kare {
    position: relative; width: 46px; height: 46px; border-radius: 10px; overflow: hidden; flex-shrink: 0;
    background: linear-gradient(160deg, #f6d9cc, #e8b9a6);
}
.est-kare:nth-child(2) { background: linear-gradient(160deg, #e3dcf6, #c3b5ea); }
.est-kare:nth-child(3) { background: linear-gradient(160deg, #d8e5f8, #aac2ea); }
.est-kare svg { position: absolute; inset: 4px 4px 0; width: calc(100% - 8px); height: calc(100% - 4px); }
.est-kare em {
    position: absolute; left: 4px; bottom: 3px; font-style: normal; font-family: var(--mono); font-size: 8.5px;
    color: rgba(20, 20, 20, .7); background: rgba(255, 255, 255, .78); padding: 0 4px; border-radius: 4px; line-height: 1.5;
}
.est-kareler .est-kare { opacity: 0; transform: scale(.85); transition: opacity .3s ease, transform .35s cubic-bezier(.2, .9, .3, 1.3); }
.est.a2 .est-kareler .est-kare { opacity: 1; transform: none; }
.est.a2 .est-kareler .est-kare:nth-child(2) { transition-delay: .12s; }
.est.a2 .est-kareler .est-kare:nth-child(3) { transition-delay: .24s; }

.est-ceviri {
    display: block; margin-top: 8px; padding-top: 7px; border-top: 1px dashed rgba(20, 20, 20, .14);
    font-size: 11.5px; line-height: 1.4; color: var(--ink-2); opacity: 0; transition: opacity .35s ease .45s;
}
.est-ceviri b { font-family: var(--mono); font-size: 9.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--coral); margin-right: 4px; }
.est.a2 .est-ceviri { opacity: 1; }

.est-kaydedildi {
    display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; padding: 6px 11px; border-radius: 999px;
    background: var(--ink); color: #fff; font-size: 12px; font-weight: 500; white-space: nowrap;
    opacity: 0; transform: translateY(4px); transition: opacity .35s ease, transform .35s ease;
}
.est-kaydedildi i { font-size: 10px; color: #9be0a8; }
.est.a2 .est-kaydedildi { opacity: 1; transform: none; transition-delay: .9s; }

/* 2 · Konsültasyon (doktorun takvimi) */
.est-kons {
    position: absolute; left: -30px; top: 33%; display: flex; align-items: center; gap: 9px;
    padding: 8px 14px 8px 8px; border-radius: 14px;
    background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 14px 30px -16px rgba(10, 30, 32, .55);
    opacity: 0; transform: translateX(-10px); transition: opacity .4s ease, transform .4s ease;
}
.est.a3 .est-kons { opacity: 1; transform: none; }
.est-kons-ic {
    width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--b-blue-bg); color: var(--b-blue-t); font-size: 13px; flex-shrink: 0;
}
.est-kons > span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.est-kons b { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.est-kons small { font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }

/* 3 · Hasta kartı */
.est-kart {
    position: absolute; left: -40px; right: 36px; bottom: -40px;
    background: #fff; border: 1px solid var(--line-2); border-radius: 18px; padding: 12px 14px 14px;
    box-shadow: 0 28px 60px -30px rgba(10, 30, 32, .6);
    opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .5s ease;
}
.est.a2 .est-kart { opacity: 1; transform: none; transition-delay: .9s; }
.est.a3 .est-kart { transition-delay: 0s; }
.est-kart-bas { display: flex; align-items: center; gap: 10px; }
.est-av {
    width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    background: var(--b-lav-bg); color: var(--b-lav-t); font-size: 11.5px; font-weight: 600;
}
.est-kimlik { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.est-kimlik b { font-size: 13.5px; font-weight: 600; }
.est-kimlik small { font-size: 10.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.est-etiket {
    margin-left: auto; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 500; white-space: nowrap;
    background: var(--b-peach-bg); color: var(--b-peach-t);
}

.est-sekmeler { display: flex; gap: 2px; margin-top: 11px; border-bottom: 1px solid var(--line); }
.est-sk {
    display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px 7px; font-size: 11.5px; color: var(--ink-3);
    white-space: nowrap; transition: color .3s, box-shadow .3s;
}
.est-sk em { font-style: normal; font-family: var(--mono); font-size: 9.5px; padding: 0 5px; border-radius: 5px; background: var(--soft); line-height: 1.6; }
.est.a2:not(.a3) .sk-foto, .est.a3:not(.a4) .sk-teklif, .est.a4 .sk-rdv { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }

.est-panolar { position: relative; height: 104px; margin-top: 12px; }
.est-pano { position: absolute; inset: 0; opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; }
.est.a2:not(.a3) .p-foto, .est.a3:not(.a4) .p-teklif, .est.a4 .p-rdv { opacity: 1; transform: none; transition-delay: .15s; }

/* Fotoğraflar sekmesi */
.est-pano-ust { display: flex; align-items: center; gap: 8px; }
.est-kat { padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 500; background: var(--b-lav-bg); color: var(--b-lav-t); white-space: nowrap; }
.est-pano-ust small { font-size: 10.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.est-galeri { display: flex; gap: 8px; margin-top: 10px; }
.est-kare-b { width: 64px; height: 64px; border-radius: 12px; }
.est-kare-b em { font-size: 9.5px; left: 5px; bottom: 4px; }
.est-kare-ekle {
    background: none !important; border: 1.5px dashed var(--line-2); color: var(--ink-3); font-size: 12px;
    display: inline-flex; align-items: center; justify-content: center;
}

/* Anlaşmalar sekmesi: teklif bağlantısı */
.est-teklif-ust { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.est-teklif-ust b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.est-teklif-ust strong { font-size: 16px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.est-plan { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.est-plan span { padding: 3px 8px; border-radius: 6px; background: var(--soft); font-size: 11px; color: var(--ink-2); white-space: nowrap; }
.est-plan b { color: var(--ink); font-weight: 600; }
.est-teklif-alt { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.est-gor { font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.est-gor i { margin-right: 3px; }
.est-imza { width: 92px; height: 24px; flex-shrink: 0; }
.est-imza path {
    fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 260; stroke-dashoffset: 260; transition: stroke-dashoffset 1.1s ease;
}
.est.a3 .est-imza path { stroke-dashoffset: 0; transition-delay: .9s; }
.est-onay {
    margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
    background: var(--b-mint-bg); color: var(--b-mint-t); font-size: 11.5px; font-weight: 600; white-space: nowrap;
    opacity: 0; transform: scale(.9); transition: opacity .3s ease, transform .35s cubic-bezier(.2, .9, .3, 1.3);
}
.est.a3 .est-onay { opacity: 1; transform: none; transition-delay: 2s; }

/* Randevular sekmesi: operasyon ve kontroller */
.est-takvim {
    list-style: none; margin: 0; padding: 0; position: relative;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px;
}
.est-takvim::before { /* günleri bağlayan yolculuk çizgisi */
    content: ''; position: absolute; left: 20px; right: 20px; top: 20px; height: 1.5px;
    background: repeating-linear-gradient(90deg, var(--line-2) 0 4px, transparent 4px 7px);
}
.est-takvim li {
    position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0;
    opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease;
}
.est.a4 .est-takvim li { opacity: 1; transform: none; transition-delay: calc(.2s + var(--i) * .16s); }
.est-gun {
    width: 40px; height: 40px; border-radius: 11px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    line-height: 1; background: var(--b-blue-bg); color: var(--b-blue-t); box-shadow: 0 0 0 3px #fff;
}
.est-gun b { font-size: 14px; font-weight: 600; }
.est-gun small { font-family: var(--mono); font-size: 8.5px; text-transform: uppercase; margin-top: 2px; }
.t-op .est-gun { background: var(--coral); color: #fff; }
.est-t-ad { font-size: 10.5px; line-height: 1.25; color: var(--ink-2); max-width: 100%; }
.t-op .est-t-ad { color: var(--ink); font-weight: 600; }
.est-hatir {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 11px; color: var(--ink-2); white-space: nowrap;
    opacity: 0; transition: opacity .35s ease;
}
.est-hatir .sx-lg { width: 16px; height: 16px; border-radius: 5px; font-size: 9px; }
.est.a4 .est-hatir { opacity: 1; transition-delay: 1.1s; }

/* ---------- Özellik şeridi ---------- */
.est-ozellikler {
    list-style: none; margin: 104px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.est-ozellikler li {
    display: grid; grid-template-columns: 32px 1fr; column-gap: 11px; align-items: center; min-width: 0;
    padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
}
.est-ozellikler i {
    grid-row: span 2; width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--sky); color: var(--b-blue-t); font-size: 13px;
}
.est-ozellikler li:nth-child(2) i { background: var(--mint); color: var(--b-mint-t); }
.est-ozellikler li:nth-child(3) i { background: var(--cream); color: var(--b-sand-t); }
.est-ozellikler li:nth-child(4) i { background: var(--lav); color: var(--b-lav-t); }
.est-ozellikler b { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.est-ozellikler span { font-size: 13px; color: var(--ink-3); line-height: 1.35; }

/* ---------- Duyarlı ---------- */
@media (max-width: 1080px) {
    .gv .est { padding-left: 32px; padding-right: 32px; }
    .est-izgara { gap: 64px; }
    .est-cta .gv-btn { padding: 0 18px; }
    .est-mesaj { right: -18px; }
    .est-kons { left: -16px; }
    .est-kart { left: -24px; right: 20px; }
    .est-ozellikler { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    /* tek sütun: giriş → düğmeler → görsel → adımlar (görsel ekranın altında kalmasın, adımlar eşlik ettiği görselin altında) */
    .est-izgara { grid-template-columns: 1fr; gap: 0; margin-top: 28px; }
    .est-metin { display: contents; }
    .est-gorsel, .est-metin { grid-column: auto; grid-row: auto; }
    .est-giris { order: 1; }
    .est-cta { order: 2; margin-top: 22px; }
    .est-gorsel { order: 3; margin-top: 36px; }
    .est-adimlar { order: 4; margin-top: 30px; }
    .est-foto { aspect-ratio: 4 / 4.2; }
    .est-foto img { object-position: 50% 52%; }
    .est-mesaj { right: 14px; top: 14px; }
    .est-kons { left: 14px; }
    .est-kart { left: 14px; right: 14px; bottom: 14px; }
    .est-ozellikler { margin-top: 48px; }
}
@media (max-width: 760px) {
    .gv .est { padding: 40px 16px 0; }
    .gv .est h1 { font-size: clamp(32px, 9.4vw, 44px); letter-spacing: -.045em; }
    .est-nw-gen { white-space: normal; }
    .gv .est-giris { font-size: 16px; }
    .est-cta .gv-btn { flex: 1 1 100%; }
    .est-foto { aspect-ratio: auto; height: 600px; border-radius: 22px; }
    .est-foto img { object-position: 50% 46%; }
    .est-mesaj { left: 10px; right: 10px; top: 10px; width: auto; padding: 10px 12px 11px; }
    .gv .est-mesaj-govde p { font-size: 13px; }
    .est-kare { width: 40px; height: 40px; }
    /* dar ekranda yüzler örtülmesin: a3'ten itibaren mesaj söner, konsültasyon onun yerine üste gelir */
    .est.a3 .est-mesaj { opacity: 0; transform: translateY(-8px) scale(.98); }
    .est-kons { left: 10px; top: 10px; transform: translateY(-8px); }
    .est.a3 .est-kons { transition-delay: .3s; }
    .est-kart { left: 8px; right: 8px; bottom: 8px; padding: 11px 11px 12px; }
    .est-sk { padding: 6px 6px 7px; font-size: 11px; }
    .est-kare-b { width: 56px; height: 56px; }
    .est-panolar { height: 100px; }
    .est-gun { width: 36px; height: 36px; }
    .est-takvim::before { top: 18px; }
    .est-adimlar button { padding-left: 50px; }
    .est-ozellikler { grid-template-columns: 1fr; gap: 8px; margin-top: 40px; }
}
@media (max-width: 380px) {
    .est-plan span:last-child { display: none; }
    .est-gor { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .est *, .est *::before, .est *::after { transition: none !important; animation: none !important; }
    .est-adimlar li::after { transform: none; }
}
