/* ==========================================================================
   claude: Claude Code CLI demo inside the hero terminal (see js/claude.js)
   ========================================================================== */

:root {
  --cc: #d97757;
  --cc-soft: #eb9a7c;
  --cc-bg: #1a1816;
  --cc-dim: #8b857d;
  --cc-dimmer: #5f5a54;
  --cc-text: #ece7df;
  --cc-accept: #b99bff;
  --cc-plan: #4fb0a4;
  --cc-add: rgba(80, 200, 120, 0.16);
  --cc-del: rgba(255, 92, 87, 0.16);
}

.term.is-app .term__body,
.term.is-app .term__badge { display: none; }

.term.is-app {
  border-color: rgba(217, 119, 87, 0.45);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9), 0 0 80px -20px rgba(217, 119, 87, 0.35);
}

.term.is-app .term__title { color: var(--cc-soft); }

.cc {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 440px;
  background: var(--cc-bg);
  color: var(--cc-text);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
}

.term.is-max .cc { flex: 1; height: auto; }

.cc__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 22px 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(217, 119, 87, 0.35) transparent;
}

.cc__log > * + * { margin-top: 12px; }

.cc a { color: var(--cc-soft); text-decoration: underline; text-underline-offset: 3px; }
.cc code { color: var(--cc-soft); background: rgba(217, 119, 87, 0.1); padding: 0 4px; border-radius: 3px; }
.cc b { color: #fff; font-weight: 700; }
.cc i { color: var(--cc-soft); font-style: italic; }
.cc .cc-dim { color: var(--cc-dim); }
.cc .cc-dimmer { color: var(--cc-dimmer); }
.cc .cc-hl { color: var(--cc); }
.cc .cc-err { color: #ff7b72; }
.cc .cc-ok { color: #6fdc8c; }

/* welcome */
.cc-welcome {
  display: inline-block;
  max-width: 100%;
  border: 1px solid var(--cc);
  border-radius: 8px;
  padding: 10px 16px 10px 14px;
}

.cc-welcome__title { font-size: 14px; }
.cc-welcome__sub { color: var(--cc-dim); padding-left: 22px; font-style: italic; }
.cc-star { color: var(--cc); margin-right: 6px; text-shadow: 0 0 12px rgba(217, 119, 87, 0.7); }

.cc-badge {
  margin-left: 6px;
  padding: 1px 7px;
  border: 1px solid rgba(217, 119, 87, 0.5);
  border-radius: 20px;
  font-size: 10px;
  color: var(--cc-soft);
  vertical-align: 1px;
}

.cc-tips { margin-top: 14px; }
.cc-tips > div + div { margin-top: 2px; }

/* user prompt */
.cc-user {
  padding: 2px 0;
  color: var(--cc-dim);
  white-space: pre-wrap;
}

.cc-user--bash,
.cc-user--bash .cc-bang { color: #ff8fc7; }

/* bullets: text, tool calls */
.cc-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
}

.cc-item__body { min-width: 0; white-space: pre-wrap; word-break: break-word; }
.cc-arg { color: var(--cc-text); }

.cc-dot {
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--cc-text);
}

.cc-dot--ok { background: #6fdc8c; }
.cc-dot--err { background: #ff7b72; }
.cc-dot--run { background: var(--cc-dim); animation: blink 0.9s steps(1) infinite; }

.cc-li { color: var(--cc); }

.cc-result,
.cc-note {
  display: grid;
  grid-template-columns: 22px 1fr;
  margin-top: 2px;
  color: var(--cc-dim);
}

.cc-note { margin-left: 18px; }

.cc-elbow {
  width: 10px;
  height: 10px;
  margin: 2px 0 0 4px;
  border-left: 1px solid var(--cc-dimmer);
  border-bottom: 1px solid var(--cc-dimmer);
}

.cc-bash-out { color: var(--cc-text); white-space: pre-wrap; }

/* "welcome back" line from Claude's memory: plain flowing text, not the note grid */
.cc-memory { color: var(--cc-dim); }
.cc-memory .cc-star { margin-right: 8px; }
.cc-bash-out .nf { display: flex; gap: 16px; align-items: flex-start; }
.cc-bash-out .nf__logo { width: 80px; flex: none; }
.cc-bash-out .nf__rule { display: inline-block; width: 12ch; height: 1px; vertical-align: middle; background: var(--cc-dim); }
.cc-bash-out .nf__swatches { display: inline-flex; }
.cc-bash-out .nf__swatches i { width: 2ch; height: 1em; }
.cc-bash-out .dir { color: var(--cyan); font-weight: 700; }
.cc-bash-out .exe { color: var(--accent); }
.cc-bash-out .err { color: #ff7b72; }

/* spinner */
.cc-spinner,
.cc-verb { color: var(--cc); }

.cc-spin {
  display: inline-block;
  width: 1.2em;
  text-align: center;
  text-shadow: 0 0 10px rgba(217, 119, 87, 0.8);
}

/* thinking */
.cc-think__toggle {
  padding: 0 0 0 18px;
  border: 0;
  background: none;
  font-family: var(--mono);
  font-size: 13px;
  font-style: italic;
  color: var(--cc-dim);
}

.cc-think__toggle:hover .cc-dimmer { color: var(--cc-dim); }
.cc-think__body { padding: 4px 0 0 36px; color: var(--cc-dim); font-style: italic; }

/* todos */
.cc-todo { color: var(--cc-text); }
.cc-todo--done { color: var(--cc-dim); text-decoration: line-through; }
.cc-todo--doing { color: var(--cc); font-weight: 700; }

/* diff card */
.cc-diff {
  margin-top: 6px;
  overflow: hidden;
  border: 1px solid var(--cc-dimmer);
  border-radius: 6px;
  color: var(--cc-text);
}

.cc-diff__row {
  display: grid;
  grid-template-columns: 34px 18px 1fr;
  white-space: pre-wrap;
  word-break: break-word;
}

.cc-diff__row--add { background: var(--cc-add); }
.cc-diff__row--del { background: var(--cc-del); }
.cc-diff__row--add .cc-diff__t { color: #6fdc8c; }
.cc-diff__row--del .cc-diff__t { color: #ff7b72; }
.cc-diff__n { padding-right: 8px; text-align: right; color: var(--cc-dimmer); }

/* panels (/help, /cost, /status) */
.cc-panel {
  padding: 10px 14px;
  border: 1px solid var(--cc-dimmer);
  border-radius: 8px;
  white-space: pre-wrap;
}

/* bottom: input, menu, footer */
.cc__bottom { padding: 6px 22px 12px; }

.cc__inputbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--cc-dimmer);
  border-radius: 8px;
  transition: border-color 0.25s, opacity 0.25s;
}

.cc__inputbox[hidden] { display: none; }
.cc__inputbox:focus-within { border-color: var(--cc-dim); }
.cc__inputbox.is-bash { border-color: #ff8fc7; }
.cc__inputbox.is-bash .cc__gt { color: #ff8fc7; }
.cc.is-busy .cc__inputbox { opacity: 0.55; }

.cc__gt { line-height: 1.6; color: var(--cc-text); }

.cc__input {
  flex: 1;
  max-height: 140px;
  resize: none;
  border: 0;
  outline: 0;
  background: none;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--cc-text);
  caret-color: var(--cc);
  cursor: text;
}

.cc__input::placeholder { color: var(--cc-dimmer); }

.cc__footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 4px 0;
  font-size: 11px;
  color: var(--cc-dim);
}

.cc__right { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--cc-dimmer); }
.cc-mode-accept { color: var(--cc-accept); }
.cc-mode-plan { color: var(--cc-plan); }

.cc__menu,
.cc__panel { margin-bottom: 6px; }

.cc__menu { padding: 4px 0; }

.cc__panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 20px;
  padding: 6px 12px;
  color: var(--cc-dim);
}

.cc__panel[hidden],
.cc__menu[hidden] { display: none; }

.cc__menu-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  width: 100%;
  padding: 1px 12px;
  border: 0;
  background: none;
  text-align: left;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cc-text);
}

.cc__menu-item.is-active,
.cc__menu-item.is-active .cc-dim { color: var(--cc); }

/* permission prompt (replaces the input box) */
.cc__perm {
  margin-bottom: 6px;
  padding: 10px 14px;
  border: 1px solid var(--cc);
  border-radius: 8px;
  animation: fade-in 0.2s ease;
}

.cc__perm-title { font-weight: 700; color: var(--cc); }
.cc__perm-q { margin: 4px 0 8px; }

.cc__perm-opt {
  display: block;
  width: 100%;
  padding: 1px 0;
  border: 0;
  background: none;
  text-align: left;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--cc-text);
}

.cc__perm-opt.is-active { color: var(--cc); }
.cc__perm-caret { display: inline-block; width: 1em; }

/* the contact form while Claude types into it */
.madlib textarea.is-ai-typing { border-bottom-color: var(--cc); caret-color: var(--cc); }
