/* ================================================================
   Rush Technologies — AI Bot Widget Styles
   ================================================================ */

/* ── FAB Button ── */
.bot-fab {
  position: fixed; bottom: 28px; right: 28px;
  z-index: 400;
  display: flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  background: var(--blue); color: #fff;
  border: none; cursor: pointer;
  font-family: var(--mono); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase;
  box-shadow: 0 8px 32px rgba(42, 110, 245, 0.35);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.bot-fab:hover { background: #3a7ef8; transform: translateY(-2px); }
.bot-fab:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.bot-fab.hide { display: none; }

/* ── Panel ── */
.bot-panel {
  position: fixed; bottom: 90px; right: 28px;
  z-index: 400; width: 380px; max-height: 560px;
  background: var(--bg1); border: 1px solid var(--border);
  display: none; flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
.bot-panel.open { display: flex; }

/* ── Header ── */
.bot-head {
  padding: 16px 20px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.bot-head-l { display: flex; align-items: center; gap: 10px; }
.bot-av {
  width: 32px; height: 32px;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 9px;
  color: #fff; letter-spacing: 1px;
  flex-shrink: 0;
}
.bot-head-txt strong {
  font-family: var(--display); font-size: 14px;
  display: block; line-height: 1; font-weight: 700;
}
.bot-head-txt span {
  font-family: var(--mono); font-size: 9px; letter-spacing: 2px;
  color: var(--text3); text-transform: uppercase;
}
.bot-close {
  background: none; border: none;
  color: var(--text3); cursor: pointer;
  font-size: 20px; padding: 4px; line-height: 1;
  transition: color 0.2s;
}
.bot-close:hover { color: var(--text); }
.bot-close:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ── Messages ── */
.bot-msgs {
  flex: 1; overflow-y: auto;
  padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.bot-msgs::-webkit-scrollbar { width: 2px; }
.bot-msgs::-webkit-scrollbar-thumb { background: var(--border2); }
.bmsg { display: flex; align-items: flex-start; gap: 8px; }
.bmsg.user { flex-direction: row-reverse; }
.bmsg-av {
  width: 26px; height: 26px; flex-shrink: 0;
  background: var(--bg3); border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 7px; color: var(--blue);
}
.bmsg.user .bmsg-av { color: var(--copper); }
.bmsg-body {
  background: var(--bg3); border: 1px solid var(--border);
  padding: 8px 12px;
  font-size: 12px; line-height: 1.6; color: var(--text2);
  max-width: 82%;
}
.bmsg.user .bmsg-body {
  background: var(--blue-dim);
  border-color: rgba(42, 110, 245, 0.3);
}
.bmsg-body a { color: var(--blue); }
.bmsg-body strong { color: var(--text); }

/* ── Quick Replies ── */
.qreplies { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.qr {
  font-family: var(--mono); font-size: 9px; letter-spacing: 1px;
  padding: 5px 10px;
  background: var(--bg2); border: 1px solid var(--border2);
  color: var(--text2); cursor: pointer;
  transition: all 0.2s;
}
.qr:hover { border-color: var(--blue); color: var(--blue); }
.qr:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ── Typing Indicator ── */
.typing-dots { display: flex; gap: 4px; align-items: center; }
.typing-dots span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--text3);
  animation: dots 0.9s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dots {
  0%, 80%, 100% { transform: scale(0.6); }
  40%            { transform: scale(1); }
}

/* ── Input Bar ── */
.bot-input {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex; gap: 8px; align-items: center;
  background: var(--bg2);
}
.bot-input input {
  flex: 1;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); font-family: var(--body); font-size: 13px;
  padding: 8px 12px; outline: none;
  transition: border-color 0.2s;
}
.bot-input input::placeholder { color: var(--text3); }
.bot-input input:focus { border-color: var(--blue); }
.bot-input button {
  background: var(--blue); border: none; color: #fff;
  padding: 8px 12px; cursor: pointer;
  display: flex; align-items: center;
  transition: background 0.2s;
  flex-shrink: 0;
}
.bot-input button:hover { background: #3a7ef8; }
.bot-input button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .bot-panel { width: calc(100vw - 40px); right: 20px; }
  .bot-fab { right: 20px; bottom: 20px; }
}
