/* ============================================================
   Gamze portfolyo — sohbet asistanı (editoryal tema)
   Sıcak siyah + mercan (#E8602C), Inter gövde / Fraunces başlık
   ============================================================ */

#gb-chat-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #E8602C;
  color: #14110D;
  border: none;
  cursor: pointer;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(232, 96, 44, 0.45), 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform .25s ease, box-shadow .25s ease;
  font-size: 26px;
  line-height: 1;
}
#gb-chat-launcher:hover { transform: translateY(-3px) scale(1.05); }
#gb-chat-launcher:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
#gb-chat-launcher .gb-ic-close { display: none; }
#gb-chat-launcher.open .gb-ic-open { display: none; }
#gb-chat-launcher.open .gb-ic-close { display: block; }
/* gentle attention pulse */
#gb-chat-launcher::after {
  content: '';
  position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(232, 96, 44, 0.55);
  animation: gbPulse 2.6s ease-out infinite;
}
@keyframes gbPulse { 0% { box-shadow: 0 0 0 0 rgba(232,96,44,.5);} 70% { box-shadow: 0 0 0 16px rgba(232,96,44,0);} 100% { box-shadow: 0 0 0 0 rgba(232,96,44,0);} }

#gb-chat-panel {
  position: fixed;
  bottom: 98px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 130px);
  background: #14110D;
  border: 1px solid #2a241c;
  border-radius: 18px;
  z-index: 9001;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(16px) scale(.98);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  font-family: 'Inter', system-ui, sans-serif;
}
#gb-chat-panel.open { opacity: 1; transform: none; pointer-events: auto; }

.gb-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #1C1812, #14110D);
  border-bottom: 1px solid #2a241c;
}
.gb-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: #E8602C; color: #14110D;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; flex: 0 0 auto;
  overflow: hidden;
}
.gb-avatar img { width: 100%; height: 100%; object-fit: cover; }
.gb-head-txt { display: flex; flex-direction: column; line-height: 1.2; }
.gb-head-txt strong { font-family: 'Fraunces', Georgia, serif; color: #EAE4DA; font-size: 16px; font-weight: 600; }
.gb-head-txt span { color: #9a9186; font-size: 12px; display: flex; align-items: center; gap: 5px; }
.gb-dot { width: 7px; height: 7px; border-radius: 50%; background: #46c46a; display: inline-block; }
.gb-close { margin-left: auto; background: none; border: none; color: #9a9186; font-size: 22px; cursor: pointer; line-height: 1; padding: 4px; }
.gb-close:hover { color: #EAE4DA; }

.gb-body {
  flex: 1; overflow-y: auto; padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
  scroll-behavior: smooth;
}
.gb-msg { max-width: 82%; padding: 11px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; word-break: break-word; animation: gbMsgIn .28s ease both; }
@keyframes gbMsgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.gb-msg.bot { align-self: flex-start; background: #221D16; color: #EAE4DA; border-bottom-left-radius: 4px; }
.gb-msg.user { align-self: flex-end; background: #E8602C; color: #1a1206; border-bottom-right-radius: 4px; font-weight: 500; }

.gb-typing { align-self: flex-start; display: flex; gap: 4px; padding: 13px 16px; background: #221D16; border-radius: 14px; border-bottom-left-radius: 4px; }
.gb-typing span { width: 7px; height: 7px; border-radius: 50%; background: #9a9186; animation: gbBlink 1.3s infinite both; }
.gb-typing span:nth-child(2) { animation-delay: .2s; }
.gb-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes gbBlink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

.gb-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 4px; }
.gb-chip {
  background: transparent; color: #EAE4DA;
  border: 1px solid rgba(232, 96, 44, .5);
  border-radius: 999px; padding: 7px 13px; font-size: 12.5px;
  cursor: pointer; transition: background .2s, border-color .2s;
  font-family: inherit;
}
.gb-chip:hover { background: rgba(232, 96, 44, .15); border-color: #E8602C; }

.gb-input {
  display: flex; gap: 8px; padding: 14px;
  border-top: 1px solid #2a241c; background: #14110D;
}
.gb-input input {
  flex: 1; background: #221D16; border: 1px solid #2a241c; border-radius: 999px;
  padding: 11px 16px; color: #EAE4DA; font-size: 14px; font-family: inherit; outline: none;
}
.gb-input input::placeholder { color: #9a9186; }
.gb-input input:focus { border-color: #E8602C; }
.gb-send {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%;
  background: #E8602C; color: #14110D; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease;
}
.gb-send:hover { transform: scale(1.08); }
.gb-send:disabled { opacity: .5; cursor: default; transform: none; }

@media (max-width: 480px) {
  #gb-chat-panel { right: 12px; left: 12px; width: auto; bottom: 90px; }
  #gb-chat-launcher { bottom: 18px; right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  #gb-chat-launcher::after { animation: none; }
  .gb-msg { animation: none; }
}
