/* ==========================================================================
   theFlourish — Claude replica
   A Claude conversation mock, used where the visual is an answer engine
   citing the client rather than a Slack thread. Self-contained: it carries
   Claude's own palette and depends on no site tokens.
   ========================================================================== */

/* --------------------------------------------------------------------------
   CLAUDE REPLICA
   Used for the AEO pillar, where the visual is a Claude conversation rather
   than a Slack thread. Like the Slack mock, its palette is Claude's own and
   does not follow the site theme.
   -------------------------------------------------------------------------- */
.claude-ui {
  --cl-bg: #faf9f5;
  --cl-side: #f0eee6;
  --cl-line: #e3e0d6;
  --cl-text: #1f1e1d;
  --cl-text-2: #6b6862;
  --cl-accent: #d97757;

  container-type: inline-size;
  background: var(--cl-side);
  border: 1px solid var(--cl-line);
  border-radius: 10px;
  overflow: hidden;
  font-family: var(--sans, 'Geist', 'Inter', system-ui, sans-serif);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  user-select: none;
  /* Host sections may be centred; a chat client is always left-aligned. */
  text-align: left;
}

.claude-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-bottom: 1px solid var(--cl-line);
}

.claude-lights {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.claude-lights i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.claude-lights i:nth-child(1) { background: #ff5f57; }
.claude-lights i:nth-child(2) { background: #febc2e; }
.claude-lights i:nth-child(3) { background: #28c840; }

.claude-url {
  flex: 1;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.05);
  font-size: 11px;
  color: var(--cl-text-2);
}

.claude-shell {
  display: flex;
  min-height: 0;
}

/* --- sidebar --- */
.claude-side {
  width: 148px;
  flex-shrink: 0;
  background: var(--cl-side);
  border-right: 1px solid var(--cl-line);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.claude-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--cl-accent);
}

.claude-brand svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.claude-brand span {
  font-size: 13px;
  font-weight: 600;
  color: var(--cl-text);
  letter-spacing: -0.01em;
}

.claude-new {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--cl-accent);
}

.claude-new svg {
  width: 13px;
  height: 13px;
}

.claude-recents {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.claude-recents b {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cl-text-2);
  margin-bottom: 1px;
}

.claude-recents span {
  font-size: 11.5px;
  color: var(--cl-text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.claude-recents span.is-active {
  color: var(--cl-text);
  font-weight: 500;
}

/* --- conversation --- */
.claude-main {
  flex: 1;
  min-width: 0;
  background: var(--cl-bg);
  display: flex;
  flex-direction: column;
}

.claude-thread {
  padding: 16px 16px 6px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* The human turn: a bubble, pushed right. */
.claude-turn--user {
  align-self: flex-end;
  max-width: 88%;
  background: var(--cl-side);
  border: 1px solid var(--cl-line);
  border-radius: 12px;
  padding: 10px 13px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--cl-text);
}

/* The assistant turn: no bubble, just prose beside the mark. */
.claude-turn--bot {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
}

.claude-mark {
  width: 22px;
  height: 22px;
  color: var(--cl-accent);
  margin-top: 1px;
}

.claude-prose {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--cl-text);
}

.claude-prose strong {
  font-weight: 600;
}

.claude-cite {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  margin: 0 1px;
  border-radius: 3px;
  background: rgba(217, 119, 87, 0.16);
  color: #b4573a;
  font-size: 10px;
  font-weight: 600;
  vertical-align: 1px;
}

.claude-sources {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.claude-source {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--cl-line);
  background: #fff;
  color: var(--cl-text-2);
}

.claude-source b {
  font-weight: 600;
  color: var(--cl-text);
}

.claude-favicon {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--cl-text);
  color: var(--cl-bg);
  font-size: 8px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* --- composer --- */
.claude-composer {
  margin: 10px 16px 16px;
  background: #fff;
  border: 1px solid var(--cl-line);
  border-radius: 12px;
  padding: 10px 11px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.claude-composer-field {
  font-size: 12.5px;
  color: #9b978f;
}

.claude-composer-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.claude-model {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--cl-text-2);
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid var(--cl-line);
}

.claude-model svg {
  width: 10px;
  height: 10px;
}

.claude-send {
  margin-left: auto;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--cl-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.claude-send svg {
  width: 13px;
  height: 13px;
}

@container (max-width: 420px) {
  .claude-side { display: none; }
  .claude-thread { padding: 13px 12px 4px; }
  .claude-composer { margin: 8px 12px 12px; }
}
