/* ==========================================================================
   /cozumler/guzellik-salonlari — sektöre özel kahraman (cozumler/kahraman/guzellik-salonlari.php)
   Taban: css/gorev-tanitim.css belirteçleri (.gv). Önek: gzl-.
   Sahne durumu kökteki a1..a6 sınıflarıyla ilerler (js/guzellik-salonlari-kahraman.js):
     a1 DM yazılıyor · a2 DM geldi + saat okundu + boş saat · a3 randevu uzmanın sütununa yerleşti
     a4 hatırlatma gitti · a5 "Geliyorum" + onay · a6 paket seansları
   ========================================================================== */

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

/* ---------- Giriş + CTA satırı ---------- */
.gzl-ust {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end;
    margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line);
}
.gv .gzl-giris { color: var(--ink-2); font-size: 18px; line-height: 1.58; max-width: 590px; }
.gzl-cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Sahne ---------- */
.gzl-sahne {
    position: relative; margin: 52px 0 0;
    display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); align-items: center;
}

/* Fotoğraf + üstündeki iki kart (kartlar akışta: birbirine binmez, aradan fotoğraf görünür) */
.gzl-foto {
    position: relative; min-height: 560px; padding: 24px 0;
    display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
.gzl-resim {
    position: absolute; inset: 0; border-radius: 28px; overflow: hidden; z-index: 0;
    background: linear-gradient(160deg, #f2e4dc, #e6d2c6); /* fotoğraf gelmezse sıcak zemin */
}
.gzl-resim img { width: 100%; height: 100%; object-fit: cover; object-position: 56% 50%; display: block; }
.gzl-resim::after { /* üst ve altta okunurluk için yumuşak karartma */
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(24, 14, 10, .24) 0%, rgba(24, 14, 10, 0) 30%, rgba(24, 14, 10, 0) 58%, rgba(24, 14, 10, .34) 100%);
}

.gzl-kart {
    position: relative; z-index: 4; width: min(318px, 90%); margin-left: -36px;
    padding: 12px 14px 13px; border-radius: 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, .72); box-shadow: 0 18px 40px -18px rgba(24, 14, 10, .5);
    opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .45s ease, transform .45s ease;
}
.gzl-kart-ust { display: flex; align-items: center; gap: 8px; font-size: 13px; min-width: 0; }
.gzl-kart-ust .sx-lg { width: 22px; height: 22px; border-radius: 7px; font-size: 12px; }
.gzl-kart-ust b { font-weight: 600; white-space: nowrap; }
.gzl-kart-ust span { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }

/* 1 · Instagram DM */
.gzl-dm { border-radius: 18px 18px 18px 6px; }
.gzl.a1 .gzl-dm { opacity: 1; transform: none; }
.gzl-dm-govde { position: relative; margin-top: 7px; min-height: 42px; }
.gv .gzl-dm-govde p { font-size: 14px; line-height: 1.45; color: var(--ink); opacity: 0; transition: opacity .35s ease; }
.gzl.a2 .gzl-dm-govde p { opacity: 1; }
.gzl-yaziyor { position: absolute; left: 0; top: 6px; display: inline-flex; gap: 4px; transition: opacity .2s; }
.gzl-yaziyor i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: gzl-nokta 1s infinite ease-in-out; }
.gzl-yaziyor i:nth-child(2) { animation-delay: .15s; }
.gzl-yaziyor i:nth-child(3) { animation-delay: .3s; }
.gzl.a2 .gzl-yaziyor { opacity: 0; }
@keyframes gzl-nokta { 0%, 80%, 100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-3px); opacity: 1; } }

.gzl-dm-alt {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 10px;
    opacity: 0; transform: translateY(4px); transition: opacity .35s ease .15s, transform .35s ease .15s;
}
.gzl.a2 .gzl-dm-alt { opacity: 1; transform: none; }
.gzl-okunan {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px;
    background: var(--b-lav-bg); color: var(--b-lav-t); font-size: 11.5px; font-weight: 500; white-space: nowrap;
}
.gzl-okunan i { font-size: 10px; }
.gzl-dugme {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
    background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 500; white-space: nowrap; transition: background .3s ease;
}
.gzl-dugme i { font-size: 10px; }
.gzl-dugme em { font-style: normal; }
.gzl-dugme .d-son { display: none; }
.gzl.a3 .gzl-dugme { background: var(--b-mint-t); }
.gzl.a3 .gzl-dugme .d-ilk { display: none; }
.gzl.a3 .gzl-dugme .d-son { display: inline; }

/* 3 · WhatsApp hatırlatması */
.gzl-wa { border-radius: 18px 18px 6px 18px; }
.gzl.a4 .gzl-wa { opacity: 1; transform: none; }
.gv .gzl-wa p { margin-top: 7px; font-size: 13.5px; line-height: 1.45; color: var(--ink); }
.gzl-wa-dugmeler { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 10px; }
.gzl-wa-dugmeler span {
    display: flex; align-items: center; justify-content: center; height: 30px; padding: 0 4px; border-radius: 9px;
    background: rgba(255, 255, 255, .85); border: 1px solid var(--line-2); color: #128c4a;
    font-size: 11.5px; font-weight: 600; white-space: nowrap; transition: background .3s ease, color .3s ease, transform .2s ease;
}
.gzl.a5 .gzl-geliyorum { background: #128c4a; border-color: #128c4a; color: #fff; transform: scale(.97); }
.gzl-wa-yanit {
    display: inline-flex; align-items: center; gap: 7px; margin-top: 9px; padding: 5px 11px; 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 .25s, transform .35s ease .25s;
}
.gzl-wa-yanit i { font-size: 10px; color: #9be0a8; }
.gzl.a5 .gzl-wa-yanit { opacity: 1; transform: none; }

/* ---------- Sağ sütun: takvim + paket kartı ---------- */
.gzl-sag { position: relative; z-index: 2; display: flex; flex-direction: column; margin-left: -44px; }

/* 2 · Personel görünümü */
.gzl-takvim {
    background: #fff; border: 1px solid var(--line-2); border-radius: 18px; padding: 14px 16px 34px;
    box-shadow: 0 30px 64px -32px rgba(24, 14, 10, .5);
    --eksen: 44px; --satir: 62px;
}
.gzl-tk-bas { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.gzl-tk-bas b { font-size: 14px; font-weight: 600; }
.gzl-sekme { margin-left: auto; display: inline-flex; padding: 2px; border-radius: 999px; background: var(--soft); font-size: 11px; }
.gzl-sekme em, .gzl-sekme span { font-style: normal; padding: 3px 9px; border-radius: 999px; color: var(--ink-3); }
.gzl-sekme em { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(20, 20, 20, .1); }

.gzl-tk-kafa, .gzl-tk-govde { display: grid; grid-template-columns: var(--eksen) repeat(3, minmax(0, 1fr)); }
.gzl-tk-kafa { padding-bottom: 8px; }
.gzl-uzman { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 7px; align-items: center; padding: 0 6px; min-width: 0; }
.gzl-uzman i {
    grid-row: span 2; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    font-style: normal; font-size: 11px; font-weight: 600;
}
.gzl-uzman i.u-mint { background: var(--b-mint-bg); color: var(--b-mint-t); }
.gzl-uzman i.u-lav  { background: var(--b-lav-bg);  color: var(--b-lav-t); }
.gzl-uzman i.u-sand { background: var(--b-sand-bg); color: var(--b-sand-t); }
.gzl-uzman b { font-size: 12.5px; font-weight: 600; line-height: 1.15; }
.gzl-uzman small { font-size: 10.5px; color: var(--ink-3); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.gzl-tk-govde { position: relative; height: calc(var(--satir) * 4); border-top: 1px solid var(--line); }
.gzl-saatler { position: relative; }
.gzl-saatler span { position: absolute; left: 0; transform: translateY(4px); font-family: var(--mono); font-size: 10px; color: var(--ink-3); }
.gzl-sutun {
    position: relative; border-left: 1px solid var(--line);
    background: repeating-linear-gradient(180deg, transparent 0 calc(var(--satir) - 1px), var(--line) calc(var(--satir) - 1px) var(--satir));
}
.gzl-blok {
    position: absolute; left: 4px; right: 4px; border-radius: 6px; padding: 4px 6px 0 9px; overflow: hidden;
    display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap;
}
.gzl-blok::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }
.gzl-blok b { font-size: 11px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.gzl-blok small { font-size: 10px; opacity: .8; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.gzl-blok.b-lav   { background: var(--b-lav-bg);   color: var(--b-lav-t); }   .gzl-blok.b-lav::before   { background: var(--b-lav-r); }
.gzl-blok.b-sand  { background: var(--b-sand-bg);  color: var(--b-sand-t); }  .gzl-blok.b-sand::before  { background: var(--b-sand-r); }
.gzl-blok.b-mint  { background: var(--b-mint-bg);  color: var(--b-mint-t); }  .gzl-blok.b-mint::before  { background: var(--b-mint-r); }
.gzl-blok.b-peach { background: var(--b-peach-bg); color: var(--b-peach-t); } .gzl-blok.b-peach::before { background: var(--b-peach-r); }
.gzl-blok.b-hzr { /* hazırlık payı: taranmış, adsız */
    padding: 0; border-radius: 3px; left: 8px; right: 8px;
    background: repeating-linear-gradient(135deg, #e7e3ef 0 3px, #f5f3f9 3px 6px);
}
.gzl-blok.b-hzr::before { display: none; }
.gzl-blok.b-mola {
    background: repeating-linear-gradient(135deg, #ecebe8 0 4px, #f6f5f3 4px 8px); color: var(--ink-3); justify-content: center;
}
.gzl-blok.b-mola::before { display: none; }
.gzl-blok.b-mola b { font-weight: 500; font-size: 10.5px; }

.gzl-bos { /* a2: mesajdan okunan saat boş */
    position: absolute; left: 4px; right: 4px; border-radius: 6px; border: 1.5px dashed var(--b-peach-r);
    background: rgba(251, 227, 216, .35); opacity: 0; transition: opacity .3s ease;
    display: flex; align-items: center; justify-content: center;
}
.gzl-bos em { font-style: normal; font-family: var(--mono); font-size: 9.5px; color: var(--b-peach-t); white-space: nowrap; }
.gzl.a2 .gzl-bos { opacity: 1; animation: gzl-nabiz 1.2s ease-in-out infinite; }
.gzl.a3 .gzl-bos { opacity: 0; animation: none; }
@keyframes gzl-nabiz { 50% { background: rgba(251, 227, 216, .85); } }
.gzl-yeni, .gzl-yeni-hzr { opacity: 0; transform: translateY(-14px) scale(.96); transition: opacity .4s ease, transform .5s cubic-bezier(.2, .9, .3, 1.25); }
.gzl-yeni-hzr { transition-delay: .35s; }
.gzl.a3 .gzl-yeni, .gzl.a3 .gzl-yeni-hzr { opacity: 1; transform: none; }
.gzl.a3 .gzl-yeni { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--b-peach-r); }
.gzl-yeni { padding-right: 20px; }
.gzl-onay {
    position: absolute; top: 4px; right: 4px; width: 15px; height: 15px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center; font-size: 8px;
    background: #128c4a; color: #fff; opacity: 0; transform: scale(.4); transition: opacity .3s ease .3s, transform .35s cubic-bezier(.2, .9, .3, 1.4) .3s;
}
.gzl.a5 .gzl-onay { opacity: 1; transform: none; }

/* 4 · Paket kartı (takvimin alt boşluğuna hafifçe biner) */
.gzl-paket {
    align-self: flex-end; width: min(300px, 78%); margin: -24px -18px 0 0; position: relative; z-index: 3;
    padding: 12px 14px 13px; border-radius: 16px; background: #fff; border: 1px solid var(--line-2);
    box-shadow: 0 20px 44px -22px rgba(24, 14, 10, .55);
    opacity: 0; transform: translateY(12px); transition: opacity .45s ease, transform .45s ease;
}
.gzl.a6 .gzl-paket { opacity: 1; transform: none; }
.gzl-paket-ust { display: flex; align-items: center; gap: 9px; min-width: 0; }
.gzl-av {
    flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: var(--b-peach-bg); color: var(--b-peach-t); font-size: 11px; font-weight: 600;
}
.gzl-paket-ad { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.gzl-paket-ad b { font-size: 13px; font-weight: 600; }
.gzl-paket-ad small { font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gzl-seans {
    margin-left: auto; flex-shrink: 0; padding: 3px 9px; border-radius: 999px;
    background: #f3e8ff; color: #6d28d9; font-size: 11px; font-weight: 600; white-space: nowrap;
}
.gzl-noktalar { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin-top: 11px; }
.gzl-noktalar i {
    height: 6px; border-radius: 999px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line-2);
    transform-origin: left center; transition: background .3s ease;
}
.gzl-noktalar i.on { background: var(--b-lav-r); box-shadow: none; }
.gzl.a6 .gzl-noktalar i { animation: gzl-dol .5s ease both; }
.gzl.a6 .gzl-noktalar i:nth-child(2) { animation-delay: .1s; }
.gzl.a6 .gzl-noktalar i:nth-child(3) { animation-delay: .2s; }
.gzl.a6 .gzl-noktalar i:nth-child(4) { animation-delay: .3s; }
.gzl.a6 .gzl-noktalar i:nth-child(5) { animation-delay: .4s; }
.gzl.a6 .gzl-noktalar i:nth-child(6) { animation-delay: .5s; }
@keyframes gzl-dol { from { transform: scaleX(0); } to { transform: none; } }
.gv .gzl-paket p { margin-top: 9px; font-size: 11.5px; color: var(--ink-2); line-height: 1.4; }

/* ---------- Yatay 4 adım ---------- */
.gzl-adimlar {
    list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
}
.gzl-adimlar li { min-width: 0; }
.gzl-adimlar li + li { border-left: 1px solid var(--line); }
.gzl-adimlar button {
    position: relative; display: flex; flex-direction: column; gap: 6px; width: 100%; height: 100%;
    padding: 20px 20px 24px; background: none; border: 0; text-align: left; cursor: pointer; color: var(--ink);
}
.gzl-adimlar li:first-child button { padding-left: 0; }
.gzl-adimlar li:last-child button { padding-right: 0; }
.gzl-no { font-family: var(--mono); font-size: 12px; color: var(--ink-3); transition: color .3s; }
.gzl-adimlar b { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.gzl-adimlar button > span:not(.gzl-no) { font-size: 14px; line-height: 1.5; color: var(--ink-3); transition: color .3s; }
.gzl-adimlar li.etkin .gzl-no { color: var(--coral); }
.gzl-adimlar li.etkin button > span:not(.gzl-no) { color: var(--ink-2); }
.gzl-adimlar button:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; border-radius: 6px; }
.gzl-ilerleme { position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--ink); }
.gzl-adimlar li.etkin .gzl-ilerleme { animation: gzl-ilerle var(--gzl-sure, 3s) linear forwards; }
@keyframes gzl-ilerle { from { width: 0; } to { width: 100%; } }

/* ---------- Duyarlı ---------- */
@media (max-width: 1080px) {
    .gv .gzl { padding-left: 32px; padding-right: 32px; }
    .gzl-kart { margin-left: -20px; }
    .gzl-sag { margin-left: -36px; }
    .gzl-paket { margin-right: -10px; }
    .gzl-takvim { --eksen: 38px; padding-left: 12px; padding-right: 12px; }
    .gzl-uzman { grid-template-columns: minmax(0, 1fr); padding: 0 5px; }
    .gzl-uzman i { display: none; }
}
@media (max-width: 900px) {
    /* tek sütun: fotoğraf (kartlar üstünde) → takvim → paket */
    .gzl-ust { grid-template-columns: 1fr; gap: 22px; }
    .gzl-cta { justify-content: flex-start; }
    .gzl-sahne { grid-template-columns: 1fr; margin-top: 36px; }
    .gzl-foto { min-height: 520px; padding: 16px 16px 46px; } /* altta takvimin bindiği pay */
    .gzl-resim img { object-position: 56% 52%; }
    .gzl-kart { margin-left: 0; }
    .gzl-wa { align-self: flex-end; }
    .gzl-sag { margin: -28px 16px 0; }
    .gzl-uzman { grid-template-columns: 24px minmax(0, 1fr); }
    .gzl-uzman i { display: inline-flex; }
    .gzl-paket { margin-right: -6px; }
    .gzl-adimlar { grid-template-columns: 1fr 1fr; margin-top: 48px; }
    .gzl-adimlar li:nth-child(3) { border-left: 0; }
    .gzl-adimlar li:nth-child(n+3) { border-top: 1px solid var(--line); }
    .gzl-adimlar li:nth-child(odd) button { padding-left: 0; }
    .gzl-adimlar li:nth-child(even) button { padding-right: 0; }
}
@media (max-width: 760px) {
    .gv .gzl { padding: 40px 16px 0; }
    .gv .gzl h1 { font-size: clamp(32px, 9.3vw, 44px); letter-spacing: -.045em; }
    .gv .gzl-giris { font-size: 16px; }
    .gzl-ust { margin-top: 26px; padding-top: 22px; }
    .gzl-cta .gv-btn { flex: 1 1 100%; }
    .gzl-foto { min-height: 460px; padding: 12px 12px 32px; gap: 16px; }
    .gzl-resim { border-radius: 22px; }
    .gzl-kart { width: auto; padding: 11px 12px 12px; }
    .gzl-wa { align-self: stretch; }
    .gzl-sag { margin: -18px 8px 0; }
    .gzl-takvim { --eksen: 32px; --satir: 54px; padding: 12px 10px 30px; border-radius: 16px; }
    .gzl-tk-bas { margin-bottom: 10px; }
    .gzl-sekme span { display: none; }
    .gzl-uzman { grid-template-columns: minmax(0, 1fr); padding: 0 4px; }
    .gzl-uzman i { display: none; }
    .gzl-uzman b { font-size: 12px; }
    .gzl-uzman small { font-size: 9.5px; }
    .gzl-saatler span { font-size: 9px; }
    .gzl-blok { left: 2px; right: 2px; padding: 3px 3px 0 6px; }
    .gzl-blok b { font-size: 9.5px; letter-spacing: -.015em; text-overflow: clip; }
    .gzl-blok small { font-size: 8.5px; text-overflow: clip; }
    .gzl-bos { left: 2px; right: 2px; }
    .gzl-bos em { font-size: 8.5px; }
    .gzl-onay { top: auto; bottom: 3px; right: 3px; width: 13px; height: 13px; font-size: 7px; } /* başlığın önüne geçmesin */
    .gzl-yeni { padding-right: 3px; }
    .gzl-paket { width: min(300px, 92%); margin-right: -4px; }
    .gzl-adimlar { grid-template-columns: 1fr; margin-top: 36px; }
    .gzl-adimlar li + li { border-left: 0; border-top: 1px solid var(--line); }
    .gzl-adimlar li button, .gzl-adimlar li:nth-child(n) button { padding: 16px 0 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .gzl *, .gzl *::before { transition: none !important; animation: none !important; }
    .gzl-adimlar li.etkin .gzl-ilerleme { width: 100%; }
}
