/* room-terminal.css — OrioSearch room: the project IS a terminal */

.terminal-room {
  --accent:      #C04A2B;
  --accent-soft: #F5E6DE;
  --accent-ink:  #6B2412;
  background: var(--paper);
  min-height: 100vh;
}

.term {
  max-width: 920px;
  margin: 0 auto;
  padding: var(--s-5) var(--gutter);
}

.term__frame {
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: var(--paper-2);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink);
  box-shadow: 0 1px 0 var(--hairline);
  overflow: hidden;
}

.term__chrome {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-3);
  padding: 10px var(--s-4);
  background: var(--paper-2);
  border-bottom: 1px solid var(--hairline);
}
.term__chrome .dots {
  display: flex; gap: 6px;
}
.term__chrome .dots span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--hairline);
}
.term__chrome .dots span:nth-child(1) { background: #E0635C; }
.term__chrome .dots span:nth-child(2) { background: #E0BB55; }
.term__chrome .dots span:nth-child(3) { background: #58C45B; }
.term__chrome .title {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.term__chrome .meta {
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}
.term__chrome .meta .live {
  color: var(--accent);
}

.term__body {
  background: var(--paper);
  padding: var(--s-4) var(--s-5) var(--s-5);
  min-height: 520px;
  max-height: 72vh;
  overflow-y: auto;
}

.term__line {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: baseline;
}
.term__prompt {
  color: var(--accent);
  white-space: nowrap;
  user-select: none;
}
.term__prompt .host { color: var(--accent-ink); }
.term__prompt .at, .term__prompt .sep, .term__prompt .pwd {
  color: var(--muted);
}
.term__prompt .pwd { color: var(--ink-soft); }
.term__input-form { display: contents; }
.term__input {
  background: transparent;
  border: 0;
  font: inherit;
  color: var(--ink);
  outline: none;
  width: 100%;
  padding: 0;
  caret-color: var(--accent);
}

.term__cmd { color: var(--ink); }
.term__output {
  margin-left: 0;
  margin-top: 6px;
  margin-bottom: var(--s-5);
  color: var(--ink-soft);
  white-space: pre-wrap;
  word-break: break-word;
}
.term__output .muted { color: var(--muted); }
.term__output .accent { color: var(--accent); }
.term__output .b { color: var(--ink); font-weight: 500; }
.term__output .hi {
  background: var(--accent-soft);
  color: var(--accent-ink);
  padding: 0 4px;
  border-radius: 2px;
}
.term__output .url { color: var(--accent-ink); }
.term__output table {
  border-collapse: collapse;
  margin: 6px 0;
  font-size: 12px;
}
.term__output table td {
  padding: 1px 12px 1px 0;
  vertical-align: top;
  color: var(--ink-soft);
}
.term__output table td:first-child { color: var(--muted); }
.term__output a {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in oklch, var(--accent) 35%, transparent);
}
.term__output a:hover { border-bottom-color: var(--accent); }

.term__result {
  display: grid;
  gap: 2px;
  margin: var(--s-3) 0;
  padding-bottom: var(--s-3);
  border-bottom: 1px dashed var(--hairline);
}
.term__result:last-child { border-bottom: 0; }
.term__result .url { font-size: 11px; }
.term__result .title { font-size: 13px; color: var(--ink); font-weight: 500; }
.term__result .snippet { font-size: 12px; color: var(--muted); line-height: 1.55; }

.term__cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 1.05s steps(1) infinite;
}

.term__hint {
  margin: var(--s-4) 0 var(--s-2);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.term__hint .kbd { margin-right: 4px; }

.term__skeleton {
  display: grid;
  gap: 8px;
  padding: 4px 0;
}
.term__skeleton span {
  height: 11px;
  background: linear-gradient(90deg, var(--hairline-2), var(--hairline), var(--hairline-2));
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
  border-radius: 2px;
}
.term__skeleton span:nth-child(1) { width: 38%; }
.term__skeleton span:nth-child(2) { width: 82%; }
.term__skeleton span:nth-child(3) { width: 64%; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.term__below {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--hairline);
  font-size: var(--t-small);
  color: var(--muted);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-3);
  align-items: baseline;
}
.term__below a { color: var(--ink-soft); border-bottom: 1px solid var(--hairline); }
.term__below a:hover { color: var(--accent); border-bottom-color: var(--accent); }
