/* ============================================================
   Jason Junior — chatbot widget for Jason's Crew
   ============================================================ */

#jjFab {
  position: fixed;
  right: 22px; bottom: 90px;        /* sits above the Install FAB */
  z-index: 92;
  background: #0a0a0a;
  color: #FCD700;
  border: 2px solid #0a0a0a;
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  text-transform: uppercase;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.22);
  animation: jjFabIn 0.6s ease 1.2s both;
}
#jjFab:hover { background: #1a1a1a; }
#jjFab .av {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: #FCD700; color: #0a0a0a;
  border-radius: 50%;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
}
@keyframes jjFabIn { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

#jjPanel {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 380px;
  max-width: calc(100vw - 24px);
  height: 560px;
  max-height: calc(100vh - 100px);
  z-index: 95;
  background: #0a0a0a;
  border: 2px solid #FCD700;
  border-radius: 8px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  font-family: 'Inter', sans-serif;
}
#jjPanel.open { display: flex; animation: jjOpen 0.3s ease both; }
@keyframes jjOpen { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

#jjPanel .head {
  background: #FCD700;
  color: #0a0a0a;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 4px solid #0a0a0a;
}
#jjPanel .head .av {
  width: 36px; height: 36px;
  background: #0a0a0a; color: #FCD700;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  flex-shrink: 0;
}
#jjPanel .head .who {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
  flex: 1;
}
#jjPanel .head .who small {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #555;
  margin-top: 2px;
}
#jjPanel .head .x {
  background: transparent; color: #0a0a0a;
  border: 0; font-size: 1.5rem; cursor: pointer;
  line-height: 1; padding: 4px 8px;
}

#jjBody {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #0a0a0a;
}
#jjBody .msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.92rem;
  line-height: 1.45;
  word-wrap: break-word;
}
#jjBody .msg.bot {
  align-self: flex-start;
  background: #1a1a1a;
  color: #f5f1e8;
  border-left: 3px solid #FCD700;
}
#jjBody .msg.you {
  align-self: flex-end;
  background: #FCD700;
  color: #0a0a0a;
}
#jjBody .msg.thinking {
  opacity: 0.6;
  font-style: italic;
}

#jjForm {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: #0a0a0a;
  border-top: 1px solid #2a2a2a;
}
#jjInput {
  flex: 1;
  padding: 10px 12px;
  background: #1a1a1a;
  color: #f5f1e8;
  border: 1px solid #333;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
}
#jjInput:focus { outline: none; border-color: #FCD700; }
#jjForm button {
  background: #FCD700;
  color: #0a0a0a;
  border: 0;
  padding: 10px 16px;
  border-radius: 4px;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  cursor: pointer;
}
#jjForm button:hover { background: #E6C200; }
#jjForm button:disabled { opacity: 0.5; cursor: default; }

#jjBody .quickrow {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px;
}
#jjBody .quick {
  background: transparent;
  color: #FCD700;
  border: 1px solid #FCD700;
  padding: 6px 10px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  cursor: pointer;
  letter-spacing: 0.04em;
}
#jjBody .quick:hover { background: #FCD700; color: #0a0a0a; }

@media (max-width: 600px) {
  #jjPanel { right: 8px; left: 8px; bottom: 8px; width: auto; height: 80vh; }
  #jjFab { right: 12px; bottom: 76px; font-size: 0.85rem; padding: 10px 14px 10px 12px; }
}
