/* wa-lint: skip */
/* ============================================================
   stand-hero-samtalebutler.css — hero partial: AI-samtalebutler.
   Conversation card with user + AI bubbles, role-aware overlays.
   ============================================================ */

.stand-hero-bot {
  position: relative;
  width: min(100%, 760px);
  aspect-ratio: 600/380;
  background: rgb(255, 255, 255);
  border-radius: 24px;
  box-shadow:
    0 1px 0 rgba(49, 79, 89, 0.04),
    0 30px 60px -20px rgba(49, 79, 89, 0.25);
  overflow: hidden;
  isolation: isolate;
}
[data-theme="dark"] .stand-hero-bot { background: var(--surface); }

.stand-hero-bot__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* === Chat card === */
.stand-hero-bot__chat {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 22px 28px 24px;
  gap: 14px;
}

.stand-hero-bot__head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.stand-hero-bot__avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--accent);
  color: rgb(255, 255, 255);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-shadow: 0 6px 14px -4px rgba(184, 90, 58, 0.5);
}
.stand-hero-bot__avatar svg { width: 22px; height: 22px; }

.stand-hero-bot__title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stand-hero-bot__title span {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
}
.stand-hero-bot__title em {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.stand-hero-bot__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(184, 90, 58, 0.6);
  animation: bot-pulse 1.6s ease-out infinite;
}
@keyframes bot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(184, 90, 58, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(184, 90, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(184, 90, 58, 0); }
}

/* === Message stream === */
.stand-hero-bot__stream {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 0;
}
.stand-hero-bot__msg {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--primary);
  background: var(--surface, rgb(245, 241, 236));
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px -10px rgba(49, 79, 89, 0.18);
}
.stand-hero-bot__msg--user {
  align-self: flex-end;
  background: var(--accent);
  color: rgb(255, 255, 255);
  border-color: transparent;
  border-bottom-right-radius: 4px;
}
.stand-hero-bot__msg--ai {
  align-self: flex-start;
  background: rgb(255, 255, 255);
  border-bottom-left-radius: 4px;
}
[data-theme="dark"] .stand-hero-bot__msg--ai { background: var(--surface); }

.stand-hero-bot__suggestions {
  list-style: none;
  padding: 8px 0 0;
  margin: 8px 0 0;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.stand-hero-bot__suggestions li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--brand-30);
  font-weight: 600;
}
.stand-hero-bot .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-70, rgb(197, 211, 214));
  flex: 0 0 auto;
}
.stand-hero-bot .dot--accent { background: var(--accent); }

.stand-hero-bot__hint {
  display: block;
  margin-top: 8px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Typing indicator */
.stand-hero-bot__msg--typing {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 12px 14px;
  background: rgb(255, 255, 255);
  border-bottom-left-radius: 4px;
  width: auto;
  max-width: max-content;
}
[data-theme="dark"] .stand-hero-bot__msg--typing { background: var(--surface); }
.stand-hero-bot__msg--typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-70, rgb(197, 211, 214));
  animation: bot-typing 1.2s ease-in-out infinite;
}
.stand-hero-bot__msg--typing span:nth-child(2) { animation-delay: 0.18s; }
.stand-hero-bot__msg--typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes bot-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%           { transform: translateY(-3px); opacity: 1; }
}

/* === Role-aware highlight === */
.stand[data-role="arrangoer"] .stand-hero-bot__avatar {
  box-shadow:
    0 0 0 3px rgba(184, 90, 58, 0.22),
    0 6px 14px -4px rgba(184, 90, 58, 0.55);
}
.stand[data-role="udstiller"] .stand-hero-bot__suggestions li:first-child {
  color: var(--accent);
  font-weight: 700;
}
.stand[data-role="besoegende"] .stand-hero-bot__msg--user {
  box-shadow:
    0 0 0 3px rgba(184, 90, 58, 0.18),
    0 8px 18px -10px rgba(184, 90, 58, 0.45);
}

/* === Overlays === */
.stand-hero-bot__overlay {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgb(29, 35, 39);
  color: rgb(255, 255, 255);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity .35s, transform .35s;
  pointer-events: none;
  display: none;
  white-space: nowrap;
  z-index: 5;
}
.stand-hero-bot__overlay strong {
  display: block;
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.stand[data-role="arrangoer"]  .stand-hero-bot__overlay--arrangoer,
.stand[data-role="udstiller"]  .stand-hero-bot__overlay--udstiller,
.stand[data-role="besoegende"] .stand-hero-bot__overlay--besoegende {
  display: block;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 640px) {
  .stand-hero-bot { aspect-ratio: 4/5; }
  .stand-hero-bot__chat { padding: 16px 18px 20px; gap: 10px; }
  .stand-hero-bot__msg { font-size: 12px; max-width: 88%; }
  .stand-hero-bot__suggestions li { font-size: 11px; }
  .stand-hero-bot__overlay { font-size: 10px; padding: 7px 10px; bottom: 8px; }
}
