/* =============================================================
   ILLUSTRATION LITERALS — exempt from the --hv-* brand-token rule
   -------------------------------------------------------------
   Everything in this file is REPRESENTATIONAL ARTWORK: on-page
   mockups that depict OTHER products' chrome (macOS traffic-light
   dots, iMessage/Telegram/Slack conversation UIs). The non-token
   hex values below are those products' own brand colours and are
   intentionally literal — they are NOT heivol palette and must
   NOT be migrated to --hv-* tokens. A CI hex-linter should
   allowlist this file wholesale.

   See design-system/_index.md. Confined to assistant.html only
   (linked there after styles.css). Do not link elsewhere.
   ============================================================= */

/* =============================================================
   Showcase — conversation mockups
   ============================================================= */
.showcase {
  padding: var(--hv-space-3xl) 0;
  background: var(--hv-surface);
  border-top: 1px solid var(--hv-border);
  border-bottom: 1px solid var(--hv-border);
}
.mockup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--hv-space-xl);
  margin-bottom: var(--hv-space-3xl);
}

.mockup {
  margin: 0;
  background: var(--hv-bg);
  border: 1px solid var(--hv-border);
  border-radius: var(--hv-radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  min-height: 480px;
}
.mockup__header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--hv-surface);
  border-bottom: 1px solid var(--hv-border);
}
.mockup__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--hv-border);
  flex-shrink: 0;
}
.mockup__dot--red { background: #FF5F57; }
.mockup__dot--amber { background: #FFBD2E; }
.mockup__dot--green { background: #28C840; }
.mockup__title {
  font-size: var(--hv-text-sm);
  font-weight: 600;
  color: var(--hv-text-secondary);
  margin-left: var(--hv-space-sm);
}
.mockup__sub {
  font-size: var(--hv-text-xs);
  color: var(--hv-text-tertiary);
  margin-left: var(--hv-space-sm);
}
.mockup__body {
  padding: var(--hv-space-md);
  display: flex;
  flex-direction: column;
  gap: var(--hv-space-sm);
  flex: 1;
}

/* --- iMessage-style bubbles --- */
.bubble {
  max-width: 80%;
  padding: 8px 14px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.4;
  word-wrap: break-word;
}
.bubble--left {
  align-self: flex-start;
  background: var(--hv-surface);
  color: var(--hv-text-primary);
  border: 1px solid var(--hv-border);
  border-bottom-left-radius: 6px;
}
.bubble--right {
  align-self: flex-end;
  background: linear-gradient(180deg, #4aa7ff 0%, #1f7af0 100%);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.bubble--thin {
  max-width: 70%;
}
.bubble--voice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
}
.voice-play {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--hv-ai);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  padding-left: 2px;
}
.voice-wave {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 20px;
}
.voice-wave span {
  width: 2px;
  background: var(--hv-ai);
  opacity: 0.75;
  border-radius: 1px;
}
.voice-wave span:nth-child(1) { height: 30%; }
.voice-wave span:nth-child(2) { height: 55%; }
.voice-wave span:nth-child(3) { height: 80%; }
.voice-wave span:nth-child(4) { height: 45%; }
.voice-wave span:nth-child(5) { height: 70%; }
.voice-wave span:nth-child(6) { height: 90%; }
.voice-wave span:nth-child(7) { height: 60%; }
.voice-wave span:nth-child(8) { height: 40%; }
.voice-wave span:nth-child(9) { height: 75%; }
.voice-wave span:nth-child(10) { height: 55%; }
.voice-wave span:nth-child(11) { height: 35%; }
.voice-wave span:nth-child(12) { height: 50%; }
.voice-time {
  font-size: 11px;
  color: var(--hv-text-tertiary);
  font-variant-numeric: tabular-nums;
}
.bubble__transcript {
  font-size: 11px;
  color: var(--hv-text-tertiary);
  font-style: italic;
  margin: -4px 0 0 40px;
  max-width: 80%;
}
.bubble--list {
  padding: 10px 14px;
}
.bubble--list strong {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  opacity: 0.9;
}
.bubble--list ul {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
}
.bubble--list li {
  margin: 2px 0;
}
.bubble__meta {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  opacity: 0.75;
}

/* --- Telegram-style bubbles --- */
.mockup--telegram {
  background: linear-gradient(180deg, #e4edf5 0%, #d4e2ef 100%);
}
[data-theme="dark"] .mockup--telegram {
  background: linear-gradient(180deg, #17212B 0%, #0E1621 100%);
}
.mockup__header--telegram {
  background: #517da2;
  border-bottom: none;
  color: #fff;
  gap: 10px;
}
.mockup__header--telegram .mockup__title,
.mockup__header--telegram .mockup__sub {
  color: #fff;
  margin-left: 0;
}
.mockup__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--hv-ai);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}
.mockup__heading {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.mockup__body--telegram {
  background: transparent;
}
.tg-bubble {
  align-self: flex-start;
  background: #fff;
  color: #1a1a1a;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  max-width: 85%;
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
[data-theme="dark"] .tg-bubble {
  background: #182533;
  color: #e8e8e8;
}
.tg-bubble--me {
  align-self: flex-end;
  background: #effdde;
}
[data-theme="dark"] .tg-bubble--me {
  background: #2b5278;
  color: #fff;
}
.tg-bubble--alert {
  background: #fff6e5;
  border-left: 3px solid #f5a623;
}
[data-theme="dark"] .tg-bubble--alert {
  background: #3d2f14;
  color: #ffd180;
}
.tg-bubble--alert strong {
  display: block;
  margin-bottom: 6px;
}
.tg-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 2px 0;
}
.tg-row--meta {
  font-size: 11px;
  opacity: 0.65;
}
.tg-down {
  color: #d64040;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.tg-time {
  display: block;
  font-size: 10px;
  opacity: 0.55;
  margin-top: 4px;
  text-align: right;
}
.tg-time--me { color: #4a7a4a; }
[data-theme="dark"] .tg-time--me { color: #a0d4ff; }

/* --- Slack-style message --- */
.mockup--slack {
  background: #fff;
}
[data-theme="dark"] .mockup--slack {
  background: #1A1F2B;
}
.mockup__header--slack {
  gap: 6px;
  background: #fff;
  border-bottom: 1px solid var(--hv-border);
}
[data-theme="dark"] .mockup__header--slack {
  background: #1A1F2B;
}
.mockup__hash {
  color: var(--hv-text-tertiary);
  font-weight: 700;
  font-size: 16px;
  margin-left: var(--hv-space-sm);
}
.mockup__body--slack {
  padding: var(--hv-space-md) var(--hv-space-md) var(--hv-space-md) var(--hv-space-sm);
}
.slack-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.slack-avatar {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--hv-ai);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.slack-content {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--hv-text-primary);
}
.slack-content p { margin: 6px 0; }
.slack-content ul {
  margin: 4px 0 4px 0;
  padding-left: 18px;
  font-size: 12.5px;
}
.slack-content li { margin: 2px 0; }
.slack-meta {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 2px;
  font-size: 13px;
}
.slack-meta span:first-of-type {
  font-size: 9px;
  background: var(--hv-border);
  color: var(--hv-text-secondary);
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.slack-time {
  font-size: 12px;
  color: var(--hv-text-tertiary);
  font-weight: 400;
  background: transparent !important;
  padding: 0 !important;
}
.slack-footer {
  font-size: 12px !important;
  color: var(--hv-text-tertiary);
  border-top: 1px solid var(--hv-border);
  padding-top: 8px;
  margin-top: 10px !important;
}
