/* ============================================
   🕉️ CHAMUNDA PUJA SERVICE — AI Pandit Chatbot CSS
   ============================================ */

/* Floating Launcher Button */
.ai-chat-launcher {
  position: fixed;
  bottom: 85px;
  right: 25px;
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #FF8C00, #E65100);
  color: #ffffff;
  border: 2px solid #FFD700;
  border-radius: 30px;
  box-shadow: 0 8px 25px rgba(255, 140, 0, 0.4);
  cursor: pointer;
  font-family: var(--font-primary, 'Poppins', sans-serif);
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  animation: pulseGlow 3s infinite;
}

.ai-chat-launcher:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 12px 35px rgba(255, 140, 0, 0.6);
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 8px 25px rgba(255, 140, 0, 0.4); }
  50% { box-shadow: 0 12px 35px rgba(255, 215, 0, 0.7); }
}

/* Chat Window Container */
.ai-chat-panel {
  position: fixed;
  bottom: 90px;
  right: 25px;
  width: 380px;
  max-width: calc(100vw - 30px);
  height: 540px;
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border: 2px solid #FFD700;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  z-index: 9995;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-chat-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Header */
.ai-chat-header {
  background: linear-gradient(135deg, #FF8C00, #D96B00);
  color: #ffffff;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-chat-title-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #FFD700;
  object-fit: cover;
  background: #ffffff;
}

.ai-chat-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.ai-chat-sub {
  margin: 2px 0 0;
  font-size: 0.75rem;
  opacity: 0.9;
}

.ai-chat-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Message List Body */
.ai-chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #FFF9F2;
  -webkit-overflow-scrolling: touch;
}

.ai-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  word-break: break-word;
}

.ai-msg.assistant {
  align-self: flex-start;
  background: #ffffff;
  color: #2C1810;
  border: 1px solid #FFD0A0;
  border-bottom-left-radius: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ai-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #FF8C00, #E65100);
  color: #ffffff;
  border-bottom-right-radius: 2px;
}

/* Quick Chips */
.ai-chat-chips {
  padding: 8px 12px;
  background: #FFF5EB;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  border-top: 1px solid #FFE4CC;
  white-space: nowrap;
}

.ai-chip {
  padding: 6px 12px;
  background: #ffffff;
  border: 1px solid #FF8C00;
  color: #D96B00;
  border-radius: 16px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-chip:hover {
  background: #FF8C00;
  color: #ffffff;
}

/* Footer Input */
.ai-chat-footer {
  padding: 12px;
  background: #ffffff;
  border-top: 1px solid #FFE4CC;
  display: flex;
  gap: 8px;
}

.ai-chat-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #FFD0A0;
  border-radius: 20px;
  font-size: 0.88rem;
  outline: none;
}

.ai-chat-send {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #FF8C00, #E65100);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* Typing Dots Animation */
.ai-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 8px 12px;
}

.ai-dot {
  width: 6px;
  height: 6px;
  background: #FF8C00;
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.ai-dot:nth-child(1) { animation-delay: -0.32s; }
.ai-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}
