/* ============================================================
   SCHULTZBOT (GUIDE BOT UPGRADE)
   ============================================================ */

.schultzbot {
  position: fixed;
  bottom: 80px;
  right: 1.5rem;
  z-index: 2000;
  pointer-events: none;
  font-family: var(--font-sans);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.schultzbot-avatar {
  pointer-events: auto;
  position: relative;
  width: auto;
  height: 140px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  overflow: visible;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.schultzbot-avatar:hover {
  transform: translateY(-4px);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
}

.schultzbot-avatar:active {
  transform: translateY(-2px);
}

.avatar-image {
  width: auto;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.avatar-pulse {
  display: none;
}

@keyframes idleBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.schultzbot-avatar.idle {
  animation: idleBounce 2.5s ease-in-out infinite;
}

.schultzbot-bubble-wrapper {
  position: absolute;
  bottom: 160px;
  right: -20px;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8) translateY(20px);
  transition: all var(--spring);
  pointer-events: none;
}

.schultzbot-bubble-wrapper.open {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.schultzbot-bubble {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  padding: 1.5rem;
  width: 320px;
  max-width: 90vw;
  max-height: 60vh;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bubble-pointer {
  position: absolute;
  bottom: -12px;
  right: 40px;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 0 solid transparent;
  border-top: 12px solid var(--bg-card);
  z-index: 1;
}

.bubble-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 50vh;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.bubble-content::-webkit-scrollbar {
  width: 6px;
}

.bubble-content::-webkit-scrollbar-track {
  background: transparent;
}

.bubble-content::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 3px;
}

.bubble-content::-webkit-scrollbar-thumb:hover {
  background: var(--text-subtle);
}

.bubble-message {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bubble-message-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  animation: messageSlideIn 0.4s ease-out;
}

@keyframes messageSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.typing-indicator {
  display: flex;
  gap: 4px;
  align-items: center;
  height: 20px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-subtle);
  animation: typingBounce 1.4s infinite;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.7; }
  30% { transform: translateY(-8px); opacity: 1; }
}

.bubble-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bubble-option {
  background: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
  animation: optionSlideIn 0.3s ease-out;
}

@keyframes optionSlideIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

.bubble-option:hover {
  background: var(--accent);
  color: white;
  transform: translateX(4px);
}

.bubble-option:active {
  transform: translateX(2px);
}

.bubble-input-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.bubble-input {
  flex: 1;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  transition: border-color var(--transition);
}

.bubble-input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-alt);
}

.bubble-send {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.bubble-send:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

.bubble-send:active {
  transform: scale(0.95);
}

.bubble-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 10;
}

.bubble-close:hover {
  background: var(--border-strong);
  color: var(--text);
}

@media (max-width: 480px) {
  .schultzbot {
    bottom: 80px;
    right: 0.75rem;
  }

  .schultzbot-avatar {
  pointer-events: auto;
    height: 100px;
  }

  .schultzbot-bubble {
    width: 260px;
    padding: 1rem;
  }

  .bubble-content {
    max-height: 35vh;
  }

  .schultzbot-bubble-wrapper {
    bottom: 120px;
    right: -10px;
  }
}
