/* Mockup AI Chatbot Icon */
.chatbot-trigger {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: var(--charcoal);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 999;
  transition: all 0.3s ease;
  border: 2px solid var(--gold);
}

.chatbot-trigger:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 30px rgba(197, 160, 89, 0.3);
}

.chatbot-trigger svg {
  fill: var(--gold);
  width: 28px;
  height: 28px;
}

.tooltip {
  position: absolute;
  right: 80px;
  background: white;
  color: var(--charcoal);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  white-space: nowrap;
}

.chatbot-trigger:hover .tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Chat Window Styles */
.chat-window {
  position: fixed;
  bottom: 90px;
  right: 2rem;
  width: 350px;
  height: 500px;
  max-height: calc(100vh - 120px);
  background: white;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(20px) scale(0.95) translateZ(0);
  transform-origin: bottom right;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1000;
}

.chat-window.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1) translateZ(0);
}

.chat-header {
  background: var(--charcoal);
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--gold);
}

.chat-title {
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chat-title .online-indicator {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.chat-close {
  background: transparent;
  border: none;
  color: var(--gold);
  cursor: pointer;
  padding: 0.25rem;
  transition: transform 0.2s;
}

.chat-close:hover {
  transform: scale(1.1);
}

.chat-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #fbf9f6;
}

.msg {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.4;
  animation: fadeInMsg 0.3s ease;
}

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

.msg.bot {
  background: white;
  color: var(--charcoal);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.msg.user {
  background: var(--charcoal);
  color: var(--gold);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chat-input-area {
  padding: 1rem;
  background: white;
  border-top: 1px solid rgba(0,0,0,0.1);
  display: flex;
  gap: 0.5rem;
}

.chat-input {
  flex: 1;
  background: #f4f4f4;
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 0.75rem 1rem;
  color: var(--charcoal);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
}

.chat-input:focus {
  outline: none;
  background: white;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(197, 160, 89, 0.2);
}

.chat-send {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.chat-send:hover {
  background: #b58a43;
  transform: scale(1.05);
}

@media (max-width: 640px) {
  .chat-window {
    width: calc(100vw - 2rem);
    right: 1rem;
    bottom: 80px;
    height: 450px;
  }
}
