/* ============================================================
   AI SPEAKER CONCIERGE — Chat Widget
   ============================================================ */

/* ── FAB ──────────────────────────────────────────────────────── */
.concierge-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #E15726;
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(225,87,38,0.4);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.concierge-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(225,87,38,0.5);
}
.concierge-fab .material-symbols-outlined { font-size: 26px; transition: opacity 0.2s, transform 0.2s; }
.concierge-fab__close { position: absolute; opacity: 0; transform: rotate(-90deg); }
.concierge-fab.open .concierge-fab__icon { opacity: 0; transform: rotate(90deg); }
.concierge-fab.open .concierge-fab__close { opacity: 1; transform: rotate(0); }

/* Pulse indicator */
.concierge-fab__pulse {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22C55E;
  border: 2px solid #fff;
}
.concierge-fab__pulse::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(34,197,94,0.4);
  animation: concierge-pulse 2s infinite;
}
@keyframes concierge-pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ── Panel ────────────────────────────────────────────────────── */
.concierge-panel {
  position: fixed;
  bottom: 92px;
  right: 24px;
  z-index: 998;
  width: 380px;
  height: 540px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s;
  pointer-events: none;
}
.concierge-panel[hidden] { display: flex !important; } /* keep in DOM for animation */
.concierge-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

/* ── Header ───────────────────────────────────────────────────── */
.concierge-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #22293C;
  color: #fff;
  flex-shrink: 0;
}
.concierge-header__info { display: flex; align-items: center; gap: 12px; }
.concierge-header__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #E15726;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.concierge-header__avatar .material-symbols-outlined { font-size: 22px; color: #fff; }
.concierge-header__status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22C55E;
  border: 2px solid #22293C;
}
.concierge-header__title { font-family: 'Jost', sans-serif; font-weight: 700; font-size: 15px; }
.concierge-header__sub { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 1px; }
.concierge-header__close {
  background: none; border: none; color: rgba(255,255,255,0.5);
  cursor: pointer; transition: color 0.2s; padding: 4px;
}
.concierge-header__close:hover { color: #fff; }
.concierge-header__close .material-symbols-outlined { font-size: 22px; }

/* ── Messages ─────────────────────────────────────────────────── */
.concierge-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}
.concierge-messages::-webkit-scrollbar { width: 4px; }
.concierge-messages::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 2px; }

/* Message bubbles */
.concierge-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.65;
  animation: concierge-msg-in 0.25s ease;
}
@keyframes concierge-msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.concierge-msg--user {
  align-self: flex-end;
  background: #22293C;
  color: #fff;
  border-bottom-right-radius: 4px;
}
.concierge-msg--bot {
  align-self: flex-start;
  background: #F9FAFB;
  color: #374151;
  border-left: 3px solid #E15726;
  border-bottom-left-radius: 4px;
}
.concierge-msg--bot a {
  color: #E15726;
  font-weight: 600;
  text-decoration: none;
}
.concierge-msg--bot a:hover { text-decoration: underline; }

/* Typing indicator */
.concierge-typing {
  display: flex;
  gap: 5px;
  padding: 14px 18px;
  align-self: flex-start;
  background: #F9FAFB;
  border-radius: 12px;
  border-left: 3px solid #E15726;
}
.concierge-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9CA3AF;
  animation: concierge-bounce 1.2s infinite;
}
.concierge-typing span:nth-child(2) { animation-delay: 0.2s; }
.concierge-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes concierge-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

/* ── Quick Actions ────────────────────────────────────────────── */
.concierge-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 12px;
  flex-shrink: 0;
}
.concierge-quick__btn {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 9999px;
  border: 1px solid #E5E7EB;
  background: #fff;
  color: #374151;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.concierge-quick__btn:hover {
  border-color: #E15726;
  color: #E15726;
  background: rgba(225,87,38,0.04);
}

/* ── Input ─────────────────────────────────────────────────────── */
.concierge-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #F3F4F6;
  background: #fff;
  flex-shrink: 0;
}
.concierge-input input {
  flex: 1;
  border: 1px solid #E5E7EB;
  border-radius: 9999px;
  padding: 10px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #22293C;
  background: #F9FAFB;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.concierge-input input:focus {
  border-color: #E15726;
  box-shadow: 0 0 0 3px rgba(225,87,38,0.08);
}
.concierge-input input::placeholder { color: #9CA3AF; }
.concierge-input__send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: #E15726;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.concierge-input__send:hover { background: #C94B20; transform: scale(1.05); }
.concierge-input__send:disabled { background: #D1D5DB; cursor: not-allowed; transform: none; }
.concierge-input__send .material-symbols-outlined { font-size: 20px; }

/* ── Powered-by ───────────────────────────────────────────────── */
.concierge-powered {
  text-align: center;
  font-size: 11px;
  color: #9CA3AF;
  padding: 6px 0 10px;
  flex-shrink: 0;
}

/* ── Mobile ───────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .concierge-panel {
    width: 100%;
    height: 80vh;
    bottom: 0;
    right: 0;
    border-radius: 16px 16px 0 0;
  }
  .concierge-fab { bottom: 16px; right: 16px; }
}
