/* ============================================================
   VALIRIS — Inline "Try the AI" demo chat (landing page)
   Liquid-glass panel embedded between the stats band and the
   mission section. Uses the same CSS variables as style.css.
   ============================================================ */

/* ── Fake booking banner, sits above the chat panel ──────────── */
.booking-banner {
  max-width: 720px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.015) 100%),
    var(--surface-2, #1a1a1a);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    0 10px 30px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.10);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.booking-banner__photo {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
}

.booking-banner__body { flex: 1; min-width: 0; }

.booking-banner__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.booking-banner__title {
  font-family: var(--font, 'Inter', sans-serif);
  font-weight: 700;
  font-size: 15px;
  color: var(--text, #ffffff);
}

.booking-banner__badge {
  font-family: var(--font, 'Inter', sans-serif);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(0, 201, 107, 0.14);
  color: var(--green, #00C96B);
  border: 1px solid rgba(0, 201, 107, 0.3);
  white-space: nowrap;
}

.booking-banner__meta {
  font-family: var(--font, 'Inter', sans-serif);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2, #a0a0a0);
  margin-top: 4px;
}

.booking-banner__price { font-weight: 700; color: var(--text, #ffffff); }

.booking-banner__source {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-family: var(--font, 'Inter', sans-serif);
  font-size: 11px;
  color: var(--text-3, #666666);
  flex-shrink: 0;
  white-space: nowrap;
}

.booking-banner__source-logo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

@media (max-width: 560px) {
  .booking-banner { flex-wrap: wrap; }
  .booking-banner__source {
    flex-direction: row;
    width: 100%;
    justify-content: center;
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .booking-banner__source-logo { width: 20px; height: 20px; }
}

@media (max-width: 380px) {
  .booking-banner__photo { width: 56px; height: 56px; }
  .booking-banner__title { font-size: 13.5px; }
  .booking-banner__meta { font-size: 12px; }
}

.demo-chat {
  max-width: 720px;
  margin: 0 auto;
  height: 520px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-xl, 28px);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 100%),
    var(--surface-2, #1a1a1a);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.45),
    0 2px 12px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.14),
    inset 0 0 40px rgba(255,255,255,0.02);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

/* Soft sheen across the top edge, the "liquid" highlight */
.demo-chat::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 480px 140px at 20% 0%, rgba(255,255,255,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 320px 200px at 100% 100%, rgba(0,201,107,0.10) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Messages ─────────────────────────────────────────────── */
.demo-chat__messages {
  position: relative;
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.14) transparent;
}

.demo-chat__messages::-webkit-scrollbar { width: 4px; }
.demo-chat__messages::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.14);
  border-radius: 2px;
}

.dc-message {
  display: flex;
  animation: dc-fadein 0.22s ease-out;
}

.dc-message--bot  { justify-content: flex-start; }
.dc-message--user { justify-content: flex-end; }
.dc-message--error { justify-content: flex-start; }

@keyframes dc-fadein {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dc-bubble {
  max-width: 78%;
  padding: 12px 16px;
  border-radius: 16px;
  font-family: var(--font, 'Inter', sans-serif);
  font-size: 14px;
  line-height: 1.55;
}

/* Bot messages: from the left, glassy neutral bubble */
.dc-message--bot .dc-bubble {
  background: rgba(255,255,255,0.06);
  color: var(--text, #ffffff);
  border: 1px solid rgba(255,255,255,0.10);
  border-bottom-left-radius: 4px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* User messages: from the right, brand green */
.dc-message--user .dc-bubble {
  background: var(--green, #00C96B);
  color: #05130c;
  border-bottom-right-radius: 4px;
  font-weight: 500;
}

.dc-message--error .dc-bubble {
  background: rgba(255, 68, 68, 0.12);
  color: #ff6b6b;
  border: 1px solid rgba(255, 68, 68, 0.2);
  border-bottom-left-radius: 4px;
  font-size: 13px;
}

/* ── Typing indicator ─────────────────────────────────────── */
.dc-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 13px 16px;
  min-width: 54px;
}

.dc-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-3, #666666);
  animation: dc-bounce 1.2s ease-in-out infinite;
}

.dc-typing span:nth-child(2) { animation-delay: 0.15s; }
.dc-typing span:nth-child(3) { animation-delay: 0.30s; }

@keyframes dc-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30%           { transform: translateY(-6px); }
}

/* ── Suggestion chips ─────────────────────────────────────── */
.dc-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  animation: dc-fadein 0.25s ease-out;
}

.dc-suggestion {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  color: var(--text-2, #a0a0a0);
  font-family: var(--font, 'Inter', sans-serif);
  font-size: 13px;
  padding: 10px 16px;
  min-height: 40px;
  display: flex;
  align-items: center;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1.4;
}

.dc-suggestion:hover {
  background: rgba(0, 201, 107, 0.10);
  color: var(--text, #ffffff);
  border-color: rgba(0, 201, 107, 0.35);
}

/* ── CTA bar (after 2nd bot response) ─────────────────────── */
.demo-chat__cta {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-top: 1px solid rgba(255,255,255,0.10);
  background: rgba(0, 201, 107, 0.07);
  animation: dc-fadein 0.3s ease-out;
}

.demo-chat__cta-text {
  font-family: var(--font, 'Inter', sans-serif);
  font-size: 12.5px;
  color: var(--text-2, #a0a0a0);
  line-height: 1.4;
}

.demo-chat__cta-btn {
  background: var(--green, #00C96B);
  border: none;
  border-radius: 8px;
  color: #05130c;
  font-family: var(--font, 'Inter', sans-serif);
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s, transform 0.15s;
  flex-shrink: 0;
}

.demo-chat__cta-btn:hover {
  opacity: 0.88;
  transform: scale(1.02);
}

/* ── Footer / input row ───────────────────────────────────── */
.demo-chat__footer {
  position: relative;
  flex-shrink: 0;
  border-top: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.02);
}

.demo-chat__input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
}

.demo-chat__input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  color: var(--text, #ffffff);
  font-family: var(--font, 'Inter', sans-serif);
  font-size: 15px;
  padding: 12px 18px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  min-width: 0;
}

.demo-chat__input::placeholder { color: var(--text-3, #666666); }

.demo-chat__input:focus {
  border-color: rgba(0, 201, 107, 0.45);
  background: rgba(255,255,255,0.07);
}

.demo-chat__input:disabled { opacity: 0.5; cursor: not-allowed; }

.demo-chat__send {
  background: var(--green, #00C96B);
  border: none;
  border-radius: 50%;
  color: #05130c;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 201, 107, 0.35);
  transition: opacity 0.15s, transform 0.15s;
}

.demo-chat__send:hover:not(:disabled) {
  opacity: 0.9;
  transform: scale(1.06);
}

.demo-chat__send:disabled { opacity: 0.35; cursor: not-allowed; }

/* ── Mobile ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .demo-chat { height: 460px; }
  .demo-chat__messages { padding: 18px; }
}

@media (max-width: 480px) {
  .demo-chat { height: 420px; border-radius: 20px; }
  .demo-chat__messages { padding: 16px; }
  .dc-bubble { max-width: 86%; font-size: 13.5px; }
  .demo-chat__input-row { padding: 12px; }
}
