/* /public_html/chatbot/chat.css – Ömür Erdem Akkaya teması (responsive + sticky) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

:root{
  --primary-dark:#004ca3;   /* koyu mavi */
  --primary-light:#00b2ff;  /* parlak camgöbeği */
  --bg-light:#ffffff;       /* kutu içi arka plan */
  --text-dark:#06356c;      /* metin rengi */
  --border:#e5effa;
}

*{box-sizing:border-box;margin:0;padding:0}
body,button,input{
  font-family:'Poppins',sans-serif;
  font-size:15px;
  line-height:1.45em;
  color:var(--text-dark);
}

/* ─────────  Sohbet Kutusu  ───────── */
.box{
  position:fixed;
  bottom:30px;
  right:100px;
  width:360px;
  background:var(--bg-light);
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 12px 40px rgba(0,38,101,.25);
  z-index:9999;
}

/* Başlık */
.box-header{
  background:linear-gradient(135deg,var(--primary-light),var(--primary-dark));
  color:#fff;
  padding:14px 18px;
  font-weight:600;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.box-header .close{
  background:transparent;
  border:none;
  font-size:22px;
  line-height:1;
  color:#fff;
  cursor:pointer;
  transition:opacity .2s;
}
.box-header .close:hover{opacity:.7}

/* Mesaj bölgesi */
#msgs{max-height:300px;overflow-y:auto;padding:18px 20px 10px}
#msgs p{margin:6px 0 12px;word-wrap:break-word}
#msgs b{font-weight:500}

/* “Yazıyor…” animasyonu */
.typing{font-style:italic;color:var(--text-dark)}
.typing span{
  display:inline-block;width:4px;height:4px;margin:0 2px;
  border-radius:50%;background:var(--primary-dark);
  animation:blink 1s infinite;
}
.typing span:nth-child(2){animation-delay:.2s}
.typing span:nth-child(3){animation-delay:.4s}
@keyframes blink{0%{opacity:.2}50%{opacity:1}100%{opacity:.2}}

/* Giriş alanı */
.input-row{display:flex;border-top:1px solid var(--border)}
#q{flex:1;padding:12px 14px;border:none;font-size:15px;outline:none}
#send{
  min-width:110px;padding:0 16px;
  background:linear-gradient(135deg,var(--primary-light),var(--primary-dark));
  border:none;color:#fff;font-weight:500;cursor:pointer;
  transition:opacity .25s;
}
#send:hover{opacity:.85}

/* ─────────  Sticky Launch Button (mobile)  ───────── */
.sticky-launch{
  position:fixed;
  bottom:70px;right:130px;
  display:flex;align-items:center;gap:10px;
  padding:12px 16px;
  background:linear-gradient(135deg,var(--primary-light),var(--primary-dark));
  color:#fff;font-weight:600;
  border:none;border-radius:50px;
  box-shadow:0 8px 30px rgba(0,38,101,.3);
  cursor:pointer;z-index:9998;
  animation:slideup .6s;
}
.sticky-launch svg{width:22px;height:22px;fill:#fff}
@keyframes slideup{0%{transform:translateY(60px);opacity:0}100%{transform:translateY(0);opacity:1}}

/*  >600 px: sohbet kutusu açık, sticky buton gizli */
@media(min-width:601px){
  .sticky-launch{display:none}
}
/* ≤600 px: kutu ilk etapta gizli, genişlik tam */
@media(max-width:600px){
  .box{width:100%;left:0;right:0;bottom:57px;border-radius:0;display:none}
  #msgs{max-height:45vh}
  .box-header{padding:12px}
}

/* Linkler */
#msgs a{color:var(--primary-dark);text-decoration:underline}
#msgs a:hover{text-decoration:none;opacity:.85}
