/* Ask Adam widget — orb + chat panel */
.ask-adam-widget { font-family: system-ui, -apple-system, sans-serif; font-size: 14px; box-sizing: border-box; }
.ask-adam-widget *, .ask-adam-widget *::before, .ask-adam-widget *::after { box-sizing: border-box; }

/* Orb */
.ask-adam-orb {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6610f2, #e21e80);
  box-shadow: 0 0 16px rgba(102, 16, 242, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9998;
  border: none;
  color: #fff;
  animation: ask-adam-glow 2.5s ease-in-out infinite, ask-adam-bounce 3s ease-in-out 0s infinite;
  transition: transform 0.2s ease;
}
.ask-adam-orb:hover { transform: scale(1.05); }
.ask-adam-orb.ask-adam-active { animation: ask-adam-glow-fast 1.5s ease-in-out infinite, ask-adam-bounce 3s ease-in-out 0s infinite; }
@keyframes ask-adam-glow {
  0%, 100% { box-shadow: 0 0 16px rgba(102, 16, 242, 0.6); }
  50% { box-shadow: 0 0 32px rgba(226, 30, 128, 0.8); }
}
@keyframes ask-adam-glow-fast {
  0%, 100% { box-shadow: 0 0 20px rgba(102, 16, 242, 0.7); }
  50% { box-shadow: 0 0 36px rgba(226, 30, 128, 0.9); }
}
@keyframes ask-adam-bounce {
  0%, 3.75%, 7.5%, 100% { transform: translateY(0); }
  1.875%, 5.625% { transform: translateY(-8px); }
}
.ask-adam-orb-icon { font-size: 24px; line-height: 1; user-select: none; }

/* Tooltip */
.ask-adam-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  background: #1b2040;
  color: #e9eefc;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateY(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.ask-adam-orb:hover .ask-adam-tooltip { opacity: 1; transform: translateY(0); }

/* Panel */
.ask-adam-panel {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 380px;
  height: 520px;
  background: #0f1327;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  z-index: 9999;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.96);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}
.ask-adam-panel.ask-adam-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Header */
.ask-adam-header {
  background: linear-gradient(135deg, #6610f2, #e21e80);
  color: #fff;
  padding: 12px 16px;
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.ask-adam-header-title { font-weight: 600; font-size: 15px; }
.ask-adam-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  opacity: 0.9;
}
.ask-adam-close:hover { opacity: 1; }

/* Suggestions */
.ask-adam-suggestions {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.ask-adam-suggestions.ask-adam-hidden { display: none; }
.ask-adam-suggestions-label { color: #cdd7ff; font-size: 12px; margin-bottom: 8px; opacity: 0.9; }
.ask-adam-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.ask-adam-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cfe3ff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.ask-adam-pill:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.2); }

/* Messages */
.ask-adam-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ask-adam-msg { max-width: 85%; }
.ask-adam-msg-user {
  align-self: flex-end;
  background: linear-gradient(135deg, #6610f2, #e21e80);
  color: #fff;
  padding: 10px 14px;
  border-radius: 16px 16px 4px 16px;
  font-size: 13px;
}
.ask-adam-msg-adam {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e9eefc;
  padding: 10px 14px;
  border-radius: 16px 16px 16px 4px;
  font-size: 13px;
  line-height: 1.5;
}
.ask-adam-typing {
  align-self: flex-start;
  padding: 10px 14px;
  color: #cdd7ff;
  font-size: 13px;
}
.ask-adam-typing span {
  animation: ask-adam-dots 1.4s ease-in-out infinite both;
}
.ask-adam-typing span:nth-child(2) { animation-delay: 0.2s; }
.ask-adam-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes ask-adam-dots {
  0%, 80%, 100% { opacity: 0.3; }
  40% { opacity: 1; }
}

/* Input */
.ask-adam-input-wrap {
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.ask-adam-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  color: #e9eefc;
  padding: 10px 16px;
  font-size: 14px;
  outline: none;
}
.ask-adam-input::placeholder { color: #8b9dc7; }
.ask-adam-input:focus { border-color: rgba(102, 16, 242, 0.5); }
.ask-adam-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6610f2, #e21e80);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.2s, transform 0.2s;
}
.ask-adam-send:hover { opacity: 0.95; transform: scale(1.05); }
.ask-adam-send:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.ask-adam-send svg { width: 18px; height: 18px; }

/* Mobile */
@media (max-width: 768px) {
  .ask-adam-orb { width: 52px; height: 52px; bottom: 16px; right: 16px; }
  .ask-adam-orb-icon { font-size: 20px; }
  .ask-adam-panel {
    bottom: 0;
    right: 0;
    width: 100vw;
    height: 60vh;
    border-radius: 20px 20px 0 0;
  }
}
