/* F&B Codex — /try chat UI styles
 * Builds on site.css (dark editorial palette + Geist typography).
 */

.try-hero {
  padding: 96px 0 48px;
  position: relative;
  overflow: hidden;
}
.try-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--aurora-cool);
  pointer-events: none;
  opacity: 0.7;
}
.try-hero > * { position: relative; }
.try-hero .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.try-hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0 0 18px;
  font-weight: 700;
  color: var(--ink);
}
.try-hero h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}
.try-hero .sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 720px;
}

.try-section {
  padding: 0 0 96px;
}

.try-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  min-height: 600px;
}
@media (max-width: 900px) {
  .try-shell { grid-template-columns: 1fr; }
}

/* ---- Agent picker ---- */
.try-agents {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.agent-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font);
}
.agent-card:hover {
  background: var(--bg-card-hi);
  border-color: var(--rule-2);
}
.agent-card.active {
  background: var(--bg-card-hi);
  border-color: var(--gold-glow);
  box-shadow: 0 0 0 1px var(--gold-glow);
}
.agent-card .ag-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.agent-card .ag-name {
  font-weight: 600;
  font-size: 14px;
}
.agent-card .ag-role {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 2px;
}

.try-note {
  margin-top: 24px;
  padding: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.5;
}
.try-note strong {
  color: var(--ink-2);
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}
.try-note ul {
  margin: 6px 0;
  padding-left: 18px;
}
.try-note li { margin: 2px 0; }

/* ---- Chat panel ---- */
.try-chat {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 600px;
  max-height: 80vh;
}

.chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg-card-hi);
}
.chat-head-l {
  display: flex;
  gap: 12px;
  align-items: center;
}
.chat-head-l .ag-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold);
}
.chat-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.chat-role {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--rule-2);
  color: var(--ink-2);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-ghost:hover {
  background: var(--bg-elevated);
  color: var(--ink);
}

.chat-thread {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.msg {
  max-width: 90%;
}
.msg-user {
  align-self: flex-end;
  background: var(--bg-elevated);
  padding: 14px 18px;
  border-radius: var(--r);
  color: var(--ink);
}
.msg-agent {
  align-self: flex-start;
}
.msg-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.msg-body {
  color: var(--ink);
  line-height: 1.6;
  font-size: 15px;
}
.msg-body p { margin: 0 0 12px; }
.msg-body p:last-child { margin: 0; }
.msg-body ul, .msg-body ol { margin: 8px 0 12px; padding-left: 22px; }
.msg-body li { margin: 4px 0; }
.msg-body code {
  font-family: var(--mono);
  font-size: 13px;
  padding: 2px 6px;
  background: var(--bg-surface);
  border-radius: 4px;
  color: var(--gold-hi);
}
.msg-body pre {
  background: var(--bg-surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 8px 0 12px;
}
.msg-body strong { color: var(--ink); }
.msg-body em { color: var(--ink-2); }
.msg-body h1, .msg-body h2, .msg-body h3, .msg-body h4 {
  color: var(--ink);
  margin: 16px 0 8px;
  letter-spacing: -0.01em;
}
.msg-body h3 { font-size: 17px; }
.msg-body h4 { font-size: 15px; }
.msg-body blockquote {
  border-left: 2px solid var(--gold);
  padding-left: 14px;
  color: var(--ink-2);
  margin: 8px 0;
}
.msg-body .cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--gold);
  vertical-align: -2px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.chat-samples {
  padding: 0 24px 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px dashed var(--rule);
  padding-top: 16px;
}
.sample-chip {
  background: var(--bg-surface);
  border: 1px solid var(--rule);
  color: var(--ink-2);
  padding: 7px 12px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.15s ease;
}
.sample-chip:hover {
  background: var(--bg-elevated);
  border-color: var(--rule-2);
  color: var(--ink);
}

.chat-input {
  display: flex;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid var(--rule);
  background: var(--bg-surface);
}
.chat-input textarea {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  min-height: 48px;
  max-height: 200px;
  outline: none;
}
.chat-input textarea:focus {
  border-color: var(--gold-glow);
  box-shadow: 0 0 0 1px var(--gold-glow);
}
.chat-input button {
  background: var(--gold);
  color: #1F1300;
  border: none;
  border-radius: var(--r-sm);
  padding: 12px 20px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}
.chat-input button:hover { background: var(--gold-hi); }
.chat-input button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chat-foot {
  display: flex;
  justify-content: space-between;
  padding: 12px 24px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-4);
  letter-spacing: 0.04em;
  border-top: 1px solid var(--rule);
}
.chat-foot #status.err { color: var(--red); }
.chat-foot #status.ok { color: var(--green); }
