/* ==========================
💬 NATASHA CHAT UI
========================== */

:root {
  --natasha-gold: #d4af37;
  --natasha-bg-dark: #0b0b0b;
  --natasha-text-light: #ffffff;
}

/* ==========================
💬 CHAT BUBBLE
========================== */
#chat-bubble {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: clamp(60px, 8vw, 78px);
  height: clamp(60px, 8vw, 78px);
  border-radius: 50%;
  cursor: pointer;
  z-index: 10000;
  border: 2px solid var(--natasha-gold);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 15px rgba(212, 175, 55, 0.4),
    0 0 30px rgba(212, 175, 55, 0.2);
}

#chat-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  z-index: 2;
}

#chat-minimize {
  display: none;
  font-size: 28px;
  color: #fff;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

/* ==========================
💬 POPUP
========================== */
#chat-popup {
  position: fixed;
  bottom: 110px;
  right: 20px;
  width: clamp(200px, 40vw, 260px);
  display: none;
  background: #111;
  color: #fff;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  z-index: 10001;
}

#chat-popup .popup-text {
  font-size: 14px;
  line-height: 1.4;
}

#chat-popup .popup-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

#chat-popup .popup-btn {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--natasha-gold);
  color: var(--natasha-gold);
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
}

#chat-popup .popup-btn:hover {
  background: var(--natasha-gold);
  color: #000;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

/* ==========================
💬 CHAT CONTAINER
========================== */
#chat-container {
  position: fixed;
  bottom: 110px;
  right: 20px;
  width: min(92vw, 360px);
  height: min(75vh, 520px);
  background: var(--natasha-bg-dark);
  border-radius: 18px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  border: 1px solid rgba(212, 175, 55, 0.25);
}

#chat-container.open {
  display: flex !important;
}

#chat-container .chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

#chat-container .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-image: url("img/natasha-glow-chat.svg");
  background-size: cover;
  background-position: center;
  border: 2px solid var(--natasha-gold);
  flex-shrink: 0;
}

#chat-container .name {
  font-size: 15px;
  color: var(--natasha-gold);
  line-height: 1.2;
}

#chat-container .role {
  font-size: 12px;
  color: #aaa;
}

/* ==========================
💬 MESSAGES
========================== */
#messages {
  flex: 1;
  padding: 16px;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  scroll-behavior: smooth;
}

#messages .user-msg {
  align-self: flex-end;
  background: #1a1a1a;
  color: var(--natasha-text-light);
  padding: 8px 12px;
  border-radius: 12px;
  max-width: 80%;
  font-size: 14px;
  line-height: 1.4;
}

#messages .bot-msg {
  align-self: flex-start;
  background: rgba(212, 175, 55, 0.08);
  color: var(--natasha-gold);
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  max-width: 80%;
  font-size: 14px;
  line-height: 1.4;
}

#messages .bot-msg.chat-goagent-cta {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--natasha-text-light);
}

#messages .chat-goagent-text {
  color: var(--natasha-text-light);
  line-height: 1.35;
  margin-bottom: 10px;
}

#messages .chat-goagent-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

#messages .chat-goagent-actions .popup-btn {
  flex: 1 1 140px;
  text-decoration: none;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid var(--natasha-gold);
  color: var(--natasha-gold);
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
}

#messages .chat-goagent-actions .popup-btn:hover {
  background: var(--natasha-gold);
  color: #000;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

#messages .chat-goagent-actions .popup-btn:focus-visible {
  outline: 2px solid rgba(212, 175, 55, 0.7);
  outline-offset: 3px;
}

/* ==========================
⌨️ INPUT
========================== */
#chat-input {
  padding: 14px 16px;
  background: #111;
  color: #fff;
  border: none;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  outline: none;
}

/* ==========================
⏳ TYPING ANIMATION
========================== */
#messages .typing-wrapper {
  align-self: flex-start;
}

#messages .typing-dots {
  display: flex;
  gap: 6px;
}

#messages .typing-dots span {
  width: 8px;
  height: 8px;
  background: var(--natasha-gold);
  border-radius: 50%;
  animation: natasha-bounce 1.2s infinite ease-in-out;
}

#messages .typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

#messages .typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes natasha-bounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.3;
  }
  40% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

/* ==========================
📱 MOBILE
========================== */
@media (max-width: 600px) {
  #chat-container {
    left: 4vw;
    right: 4vw;
    width: auto;
    height: 70vh;
    bottom: 100px;
  }

  #chat-popup {
    left: 4vw;
    right: 4vw;
    width: auto;
    bottom: 100px;
  }

  #chat-bubble {
    right: 4vw;
    bottom: 20px;
  }
}

