/* mobile-bottom-nav.blade.php icinden 25.11.2026'da harici dosyaya alindi.
   Isaret: .tps-tati-fab
   Blade'e geri tasima: her sayfada tekrar eder ve onbellege girmez. */
/* FAB — ortak stiller (mobil + web) */
.tps-tati-fab{position:fixed;z-index:2147483400;display:flex;flex-direction:column;align-items:center;gap:3px;
    border:0;background:none;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;padding:0;outline:none;-webkit-appearance:none}
.tps-tati-fab:focus,.tps-tati-fab:focus-visible,.tps-tati-fab:active{outline:none;box-shadow:none}
.tps-tati-fab-ic{width:58px;height:58px;border-radius:50%;display:flex;align-items:center;justify-content:center;
    background:linear-gradient(145deg,#0057b8,#003580);box-shadow:0 10px 24px rgba(0,53,128,.5);
    border:3px solid #fff;position:relative;transition:transform .16s ease}
.tps-tati-fab-ic svg{width:32px;height:32px}
/* dikkat çeken nabız halkası */
.tps-tati-fab-ic::before{content:"";position:absolute;inset:-3px;border-radius:50%;
    box-shadow:0 0 0 0 rgba(0,87,184,.45);animation:tatiPulse 2.2s ease-out infinite}
.tps-tati-fab-lbl{font-size:10px;font-weight:800;color:#003580;background:#fff;
    padding:1px 8px;border-radius:999px;box-shadow:0 2px 6px rgba(0,53,128,.18)}
.tps-tati-fab:hover .tps-tati-fab-ic{transform:scale(1.06)}
.tps-tati-fab:active .tps-tati-fab-ic{transform:scale(.9)}
@keyframes tatiPulse{0%{box-shadow:0 0 0 0 rgba(0,87,184,.45)}70%{box-shadow:0 0 0 14px rgba(0,87,184,0)}100%{box-shadow:0 0 0 0 rgba(0,87,184,0)}}
/* FAB artık SADECE masaüstü (mobilde alt-bar ortasındaki yükseltilmiş buton kullanılıyor). */
.tps-tati-fab{display:none}
@media (min-width: 768px){
    .tps-tati-fab{display:flex;right:26px;bottom:26px}
    .tps-tati-fab-ic{width:64px;height:64px}
    .tps-tati-fab-ic svg{width:35px;height:35px}
}
body.tps-mm-open .tps-tati-fab{display:none !important}
/* 26.10 Tati tam ekran açıkken launcher FAB'ı gizle (üstte durmasın) */
body.tati-open .tps-tati-fab{display:none !important}

/* === MOBİL: TATİ — alt bar ORTASINDA yükseltilmiş buton (yüzmez, bara gömülü) === */
.tps-tati-tab{position:relative;flex:0 0 auto;width:66px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;
    background:none;border:0;cursor:pointer;padding:0 0 2px;margin:0;-webkit-tap-highlight-color:transparent;touch-action:manipulation;
    outline:none;-webkit-appearance:none;animation:tatiTabIn .5s cubic-bezier(.34,1.56,.64,1) both}
.tps-tati-tab:focus,.tps-tati-tab:focus-visible,.tps-tati-tab:active{outline:none;box-shadow:none}
@keyframes tatiTabIn{0%{opacity:0;transform:translateY(10px)}100%{opacity:1;transform:translateY(0)}}
.tps-tati-tab-ic{position:relative;width:54px;height:54px;border-radius:50%;margin-top:-26px;margin-bottom:3px;
    display:flex;align-items:center;justify-content:center;
    background:linear-gradient(145deg,#0057b8,#003580);box-shadow:0 10px 22px rgba(0,53,128,.5);
    border:3px solid #fff;transition:transform .16s ease}
.tps-tati-tab-ic svg{width:30px;height:30px;position:relative;z-index:1}
.tps-tati-tab:active .tps-tati-tab-ic{transform:scale(.9)}
/* nabız halkası — sürekli, dikkat çeken şık animasyon (tatiPulse yukarıda tanımlı) */
.tps-tati-tab-glow{position:absolute;inset:-3px;border-radius:50%;pointer-events:none;
    box-shadow:0 0 0 0 rgba(0,87,184,.5);animation:tatiPulse 2.2s ease-out infinite}
.tps-tati-tab-lbl{font-size:10px;font-weight:800;color:#003580;line-height:1}

/* Teaser ekranı (bottom-sheet) */
.tps-tati-sheet{position:fixed;inset:0;z-index:2147483300;display:none}
.tps-tati-sheet.open{display:block}
.tps-tati-back{position:absolute;inset:0;background:rgba(6,17,34,.55);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
.tps-tati-panel{position:absolute;left:0;right:0;bottom:0;background:#fff;border-radius:24px 24px 0 0;
    padding:10px 18px calc(24px + env(safe-area-inset-bottom,0px));box-shadow:0 -18px 50px rgba(6,17,34,.3);
    max-width:640px;margin:0 auto;transform:translateY(102%);transition:transform .34s cubic-bezier(.2,.9,.25,1.05);
    max-height:86vh;overflow-y:auto;-webkit-overflow-scrolling:touch}
.tps-tati-sheet.open .tps-tati-panel{transform:translateY(0)}
.tps-tati-grip{width:42px;height:5px;border-radius:999px;background:#e2e8f0;margin:2px auto 12px}
.tps-tati-head{display:flex;align-items:center;gap:11px;padding-bottom:14px;border-bottom:1px solid #eef2f7;margin-bottom:14px}
.tps-tati-ava{flex:0 0 auto;width:44px;height:44px;border-radius:14px;display:flex;align-items:center;justify-content:center;
    background:linear-gradient(145deg,#0057b8,#003580);box-shadow:0 6px 16px rgba(0,53,128,.3)}
.tps-tati-ava svg{width:27px;height:27px}
.tps-tati-htxt{flex:1 1 auto;display:flex;flex-direction:column;line-height:1.2}
.tps-tati-htxt b{font-size:18px;color:#0f223e;font-weight:800}
.tps-tati-htxt small{font-size:12.5px;color:#7a8aa0}
.tps-tati-x{flex:0 0 auto;width:34px;height:34px;border-radius:50%;border:0;background:#f1f5f9;color:#5b6b82;font-size:15px;cursor:pointer}
.tps-tati-x:active{background:#e2e8f0}
.tps-tati-feats{display:flex;gap:12px;margin:4px 0 2px}
.tps-tati-feat{flex:1;background:#f8fafc;border:1.5px solid #e6ecf4;border-radius:15px;padding:15px 10px;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}
.tps-tati-feat .fi{width:44px;height:44px;border-radius:13px;display:flex;align-items:center;justify-content:center;background:linear-gradient(145deg,#0057b8,#003580);color:#fff;font-size:18px;box-shadow:0 6px 14px rgba(0,53,128,.28)}
.tps-tati-feat b{font-size:14px;color:#12233f}
.tps-tati-badge{font-size:10px;font-weight:800;color:#8a6d00;background:#fef0c3;border:1px solid #fcdf8a;padding:2px 9px;border-radius:999px}
.tps-tati-soon{text-align:center;padding:14px 6px 6px}
.tps-tati-soon-logo{width:172px;max-width:72%;height:auto;margin:2px auto 14px;display:block}
.tps-tati-soon h4{font-size:17px;font-weight:800;color:#0f223e;margin:0 0 8px}
.tps-tati-soon p{font-size:14px;color:#64748b;line-height:1.55;margin:0 auto;max-width:340px}
.tps-tati-ghost{display:block;width:100%;background:#f1f5f9;border:0;color:#33465f;font-weight:700;font-size:14px;
    padding:13px;border-radius:13px;cursor:pointer;margin-top:18px}
.tps-tati-ghost:active{background:#e2e8f0}

/* === Faz 1B: Tati SOHBET arayüzü === */
.tps-tati-chat{display:flex;flex-direction:column;min-height:0}
.tps-tati-msgs{flex:1 1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch;max-height:64vh;min-height:250px;
    padding:4px 2px 8px;display:flex;flex-direction:column;gap:12px}
.tps-tati-msg{display:flex;gap:8px;align-items:flex-end;max-width:100%}
.tps-tati-msg.user{flex-direction:row-reverse}
.tps-tati-msg-ava{flex:0 0 auto;width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;
    background:linear-gradient(145deg,#0057b8,#003580);color:#fff;font-size:13px}
.tps-tati-msg.user .tps-tati-msg-ava{display:none}
.tps-tati-bubble{padding:12px 15px;border-radius:16px;font-size:15.5px;line-height:1.5;max-width:82%;word-wrap:break-word}
.tps-tati-msg.bot .tps-tati-bubble{background:#f1f5f9;color:#17324f;border-bottom-left-radius:5px}
.tps-tati-msg.user .tps-tati-bubble{background:linear-gradient(135deg,#0057b8,#003580);color:#fff;border-bottom-right-radius:5px}
.tps-tati-bubble b{font-weight:800}
/* 12.10: Tati cevabında madde listesi + satır blokları (düzenli/listeli görünüm) */
.tps-tati-bubble ul.tps-tati-ul{margin:7px 0 2px;padding-left:4px;list-style:none}
.tps-tati-bubble ul.tps-tati-ul li{position:relative;padding:4px 0 4px 16px;line-height:1.45}
.tps-tati-bubble ul.tps-tati-ul li::before{content:"•";position:absolute;left:2px;top:4px;color:#0057b8;font-weight:800}
.tps-tati-bubble>div+div{margin-top:5px}
.tps-tati-typing{display:inline-flex;gap:4px;align-items:center;padding:2px 0}
.tps-tati-typing i{width:7px;height:7px;border-radius:50%;background:#9db2cc;display:inline-block;animation:tatiType 1s infinite}
.tps-tati-typing i:nth-child(2){animation-delay:.15s}.tps-tati-typing i:nth-child(3){animation-delay:.3s}
@keyframes tatiType{0%,60%,100%{transform:translateY(0);opacity:.5}30%{transform:translateY(-4px);opacity:1}}
.tps-tati-cards{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.tps-tati-card{display:flex;gap:10px;align-items:center;background:#fff;border:1px solid #e6ecf4;border-radius:13px;
    padding:8px;text-decoration:none;box-shadow:0 2px 8px rgba(16,32,64,.05);transition:transform .12s}
.tps-tati-card:active{transform:scale(.99)}
.tps-tati-card-img{flex:0 0 auto;width:56px;height:56px;border-radius:10px;object-fit:cover;background:#eef2f7}
.tps-tati-card-noimg{flex:0 0 auto;width:56px;height:56px;border-radius:10px;background:linear-gradient(145deg,#e8f0fb,#dbe9ff);
    display:flex;align-items:center;justify-content:center;color:#0057b8;font-size:20px}
.tps-tati-card-b{flex:1 1 auto;min-width:0}
.tps-tati-card-t{font-size:13px;font-weight:700;color:#17324f;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tps-tati-card-p{font-size:12.5px;font-weight:800;color:#0057b8;margin-top:2px}
.tps-tati-card-go{flex:0 0 auto;color:#b6c2d4;font-size:12px}
.tps-tati-fav{flex:0 0 auto;width:34px;height:34px;border-radius:50%;border:0;background:#f4f7fb;cursor:pointer;
    display:flex;align-items:center;justify-content:center;font-size:15px;-webkit-tap-highlight-color:transparent;transition:transform .12s}
.tps-tati-fav .fa-regular{color:#9db2cc}
.tps-tati-fav.on{background:#fdeef2}
.tps-tati-fav.on .fa-solid{color:#e0245e}
.tps-tati-fav:active{transform:scale(.86)}
.tps-tati-quick{display:flex;gap:7px;flex-wrap:wrap;padding:8px 2px 4px}
.tps-tati-chip{background:#fff7e6;border:1px solid #ffe1a1;color:#8a6400;font-size:13px;font-weight:700;
    padding:8px 14px;border-radius:999px;cursor:pointer;-webkit-tap-highlight-color:transparent;white-space:nowrap}
.tps-tati-chip:active{background:#ffedc2}
.tps-tati-input{display:flex;gap:8px;align-items:center;padding:8px 0 2px;border-top:1px solid #eef2f7;margin-top:6px}
.tps-tati-input input{flex:1 1 auto;min-width:0;border:1.5px solid #e0e7f1;border-radius:999px;padding:12px 18px;
    font-size:15px;outline:none;background:#f8fafc;transition:border-color .15s,background .15s}
.tps-tati-input input:focus{border-color:#0057b8;background:#fff}
.tps-tati-send{flex:0 0 auto;width:48px;height:48px;border-radius:50%;border:0;cursor:pointer;
    background:linear-gradient(145deg,#ffc835,#feba02);color:#003580;font-size:16px;display:flex;align-items:center;justify-content:center;
    box-shadow:0 6px 16px rgba(254,186,2,.45);transition:transform .12s}
.tps-tati-send:active{transform:scale(.9)}
.tps-tati-send:disabled{opacity:.5;cursor:default}
/* 09.10: sesle konuşma */
.tps-tati-mic{flex:0 0 auto;width:48px;height:48px;border-radius:50%;border:1.5px solid #e0e7f1;background:#f5f8fc;color:#0057b8;cursor:pointer;font-size:16px;display:flex;align-items:center;justify-content:center;transition:transform .12s,background .15s,color .15s,border-color .15s}
.tps-tati-mic:active{transform:scale(.9)}
.tps-tati-mic.rec{background:#e11d48;border-color:#e11d48;color:#fff;animation:tatiMicPulse 1.1s infinite}
@keyframes tatiMicPulse{0%{box-shadow:0 0 0 0 rgba(225,29,72,.45)}70%{box-shadow:0 0 0 9px rgba(225,29,72,0)}100%{box-shadow:0 0 0 0 rgba(225,29,72,0)}}
.tps-tati-hbtn.on{color:#0057b8;background:#e8f0fb}
/* MOBİL: dün büyütülen ölçüleri küçük ekranda normale çek (masaüstü büyük kalır) */
@media (max-width:767px){
    .tps-tati-bubble{font-size:14px;padding:10px 13px}
    .tps-tati-msgs{max-height:54vh;min-height:180px}
    .tps-tati-input input{font-size:16px;padding:11px 16px} /* 15.09 iOS <16px input'a odaklanınca sayfayı auto-zoom yapıyor → 16px ile durur */
    .tps-tati-chip{font-size:12px;padding:7px 12px}
    .tps-tati-send{width:44px;height:44px;font-size:15px}
    .tps-tati-mic{width:44px;height:44px;font-size:15px}
    .tps-tati-htxt b{font-size:16px}
    .tps-tati-htxt small{font-size:11.5px}
    .tps-tati-msg-ava{width:28px;height:28px;font-size:12px}

    /* === 15.09 MOBİL KLAVYE FIX ===
       Sohbet modunda panel GÖRÜNÜR viewport'a sabitlenir (--tati-vh JS ile visualViewport'tan
       gelir; klavye açılınca küçülür). Panel flex-sütun: baş sabit, MESAJLAR kayar, input hep
       klavyenin üstünde görünür. Böylece gönder butonu kaybolmaz, yazı yukarı kayıp gitmez. */
    .tps-tati-sheet.tati-chat-mode .tps-tati-panel{
        display:flex; flex-direction:column;
        height:var(--tati-vh, 86vh); max-height:var(--tati-vh, 86vh);
        overflow:hidden; padding-bottom:calc(10px + env(safe-area-inset-bottom,0px));
        transition:transform .34s cubic-bezier(.2,.9,.25,1.05); /* height'a transition YOK (klavye ile zıplamasın) */
    }
    .tps-tati-sheet.tati-chat-mode .tps-tati-chat{flex:1 1 auto; min-height:0}
    .tps-tati-sheet.tati-chat-mode .tps-tati-msgs{flex:1 1 auto; max-height:none; min-height:0}
    .tps-tati-sheet.tati-chat-mode .tps-tati-quick{flex:0 0 auto}
    .tps-tati-sheet.tati-chat-mode .tps-tati-input{flex:0 0 auto; position:sticky; bottom:0; background:#fff; margin-top:auto}
}

/* === 26.10 TATI MASAÜSTÜ TAM EKRAN (Gemini tarzı) + sabit composer ===
   Masaüstünde (>=768px) Tati sohbet modu TÜM EKRANI kaplar:
     • SOL kalıcı sidebar = geçmiş sohbetler (#tatiHist artık çekmece değil)
     • SAĞ ana sütun = başlık (sağ üstte X) + sohbet
   Composer flex ile dipte sabit kalır (kısa ekranda da kesilmez — eski MASAÜSTÜ COMPOSER fix bunun içinde).
   Mobil (<=767px) alttan-sheet + çekmece düzeni AYNEN korunur (ayrı media query). */
@media (min-width:768px){
    .tps-tati-sheet.tati-chat-mode .tps-tati-panel{
        position:fixed; inset:0; width:100vw; max-width:none; height:100vh; max-height:none;
        margin:0; border-radius:0; padding:0; transform:none; opacity:0;
        transition:opacity .2s ease; box-shadow:none; overflow:hidden;
        display:grid; grid-template-columns:300px minmax(0,1fr); grid-template-rows:auto minmax(0,1fr);
        grid-template-areas:"hist head" "hist chat";
    }
    .tps-tati-sheet.tati-chat-mode.open .tps-tati-panel{ opacity:1; }
    .tps-tati-sheet.tati-chat-mode .tps-tati-grip{ display:none; }

    /* SOL SIDEBAR — geçmiş sohbetler (kalıcı; çekmece/overlay değil) */
    .tps-tati-sheet.tati-chat-mode #tatiHist{
        grid-area:hist; position:static; display:flex !important;
        border-right:1px solid #eef2f7; border-radius:0; background:#f8fafc;
    }
    .tps-tati-sheet.tati-chat-mode #tatiHistClose{ display:none; }  /* kalıcı sidebar → kapat gereksiz */
    .tps-tati-sheet.tati-chat-mode #tatiHistBtn{ display:none; }    /* başlıktaki geçmiş-aç gereksiz */

    /* BAŞLIK (sağ üst) — X burada, ekranın sağ üstünde */
    .tps-tati-sheet.tati-chat-mode .tps-tati-head{
        grid-area:head; margin:0; padding:16px 24px; border-bottom:1px solid #eef2f7; background:#fff;
    }
    /* SOHBET ALANI (sağ) — ortalı; composer dipten biraz yukarıda, mesajlar kayar */
    .tps-tati-sheet.tati-chat-mode .tps-tati-chat{
        grid-area:chat; display:flex; flex-direction:column; min-height:0;
        width:100%; max-width:860px; margin:0 auto; padding:14px 24px 52px; /* alttan 52px → composer yukarıda */
    }
    .tps-tati-sheet.tati-chat-mode .tps-tati-msgs{ flex:1 1 auto; max-height:none; min-height:0; }
    .tps-tati-sheet.tati-chat-mode .tps-tati-quick{ flex:0 0 auto; }
    /* Composer: büyük, kart görünümlü (Gemini tarzı); üst çizgi yerine ince kenarlık+gölge */
    .tps-tati-sheet.tati-chat-mode .tps-tati-input{
        flex:0 0 auto; position:sticky; bottom:0; margin-top:auto; gap:10px;
        border-top:0; padding:8px; background:#fff; border:1px solid #e2e8f2; border-radius:999px;
        box-shadow:0 8px 28px -14px rgba(16,42,80,.28);
    }
    .tps-tati-sheet.tati-chat-mode .tps-tati-input input{ padding:17px 22px; font-size:16.5px; background:transparent; border:0; }
    .tps-tati-sheet.tati-chat-mode .tps-tati-send,
    .tps-tati-sheet.tati-chat-mode .tps-tati-mic{ width:52px; height:52px; font-size:17px; }
}

/* === Tati KARŞILAMA BALONU ( 09.09) === */
.tps-tati-greet{position:fixed;z-index:2147483350;display:none}
.tps-tati-greet.show{display:block}
.tps-tati-greet-inner{position:relative;display:flex;align-items:center;gap:9px;background:#fff;
    border:1px solid #e6ecf4;border-radius:16px;padding:8px 14px 8px 8px;cursor:pointer;max-width:250px;
    box-shadow:0 12px 32px rgba(0,53,128,.24);animation:tatiGreetIn .42s cubic-bezier(.34,1.56,.64,1) both}
.tps-tati-greet-ava{flex:0 0 auto;width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;
    background:linear-gradient(145deg,#0057b8,#003580);box-shadow:0 4px 10px rgba(0,53,128,.3)}
.tps-tati-greet-ava svg{width:22px;height:22px}
.tps-tati-greet-txt{font-size:12.5px;color:#12233f;line-height:1.28;font-weight:600}
.tps-tati-greet-txt b{display:block;font-weight:800;color:#003580;font-size:12.5px;margin-bottom:1px}
/* balon kuyruğu (aşağı, butona doğru) */
.tps-tati-greet-inner::after{content:"";position:absolute;bottom:-6px;width:13px;height:13px;background:#fff;
    border-right:1px solid #e6ecf4;border-bottom:1px solid #e6ecf4;transform:rotate(45deg)}
@keyframes tatiGreetIn{0%{opacity:0;transform:translateY(10px) scale(.82)}100%{opacity:1;transform:none}}
/* 15.09 balon ~6 sn sonra kendiliğinden kaybolur (yumuşak çıkış) */
.tps-tati-greet.leaving .tps-tati-greet-inner{animation:tatiGreetOut .3s ease forwards}
@keyframes tatiGreetOut{0%{opacity:1;transform:none}100%{opacity:0;transform:translateY(8px) scale(.9)}}
/* MOBİL: alt bar ortasındaki yükseltilmiş butonun ÜSTÜNDE, ortalı */
@media (max-width:767px){
    .tps-tati-greet{left:50%;transform:translateX(-50%);bottom:calc(116px + env(safe-area-inset-bottom,0px))}
    .tps-tati-greet-inner::after{left:50%;margin-left:-6.5px}
}
/* MASAÜSTÜ: sağ-alttaki FAB'ın üstünde */
@media (min-width:768px){
    .tps-tati-greet{right:20px;bottom:104px}
    .tps-tati-greet-inner::after{right:26px}
}
/* teaser açıkken / hamburger açıkken balon görünmesin */
body.tati-open .tps-tati-greet,
body.tps-mm-open .tps-tati-greet{display:none !important}
