/* ==========================================================================
   NEXUS — pages.css
   Shared subpage components: robot.html, vision.html, sensors.html,
   ai.html, owner.html, new.html
   ========================================================================== */

.subpage-hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5rem) clamp(1.25rem, 5vw, 3.5rem) clamp(2.5rem, 6vw, 3.5rem);
  overflow: hidden;
}

.subpage-hero > * { position: relative; z-index: 1; }

.subpage-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  margin-top: 0.75rem;
}

.subpage-hero p {
  margin-top: 1rem;
  max-width: 52ch;
  color: var(--text-dim);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3.5rem) clamp(4rem, 8vw, 6rem);
}

/* ---------- status badges ---------- */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--line-bright);
}

.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
}

.status-badge.is-ok { color: var(--cyan); border-color: var(--cyan-dim); }
.status-badge.is-ok::before { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }

.status-badge.is-pending { color: #e2b34a; border-color: #6b5424; }
.status-badge.is-pending::before { background: #e2b34a; }

.status-badge.is-offline { color: var(--text-faint); }

/* ---------- row list (robot.html, owner.html) ---------- */

.row-list {
  border: 1px solid var(--line);
  background: var(--bg-panel);
}

.row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.row-item:last-child { border-bottom: none; }

.row-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
}

.row-sub {
  color: var(--text-faint);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* ---------- feed box (vision.html) ---------- */

.feed-box {
  aspect-ratio: 16 / 9;
  border: 1px dashed var(--line-bright);
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(45deg, rgba(47,217,242,0.03) 0 2px, transparent 2px 8px),
    var(--bg-panel);
  color: var(--text-faint);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

/* ---------- chat (ai.html) ---------- */

.chat-thread {
  border: 1px solid var(--line);
  background: var(--bg-panel);
  min-height: 340px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: flex-end;
}

.chat-msg {
  max-width: 70%;
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  border: 1px solid var(--line-bright);
}

.chat-msg.from-nexus {
  align-self: flex-start;
  color: var(--text-dim);
}

.chat-msg.from-user {
  align-self: flex-end;
  border-color: var(--cyan-dim);
  color: var(--text);
}

.chat-input-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.chat-input-row input {
  flex: 1;
  background: var(--bg-deep);
  border: 1px solid var(--line-bright);
  color: var(--text);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
}

.chat-input-row input:focus {
  outline: none;
  border-color: var(--cyan);
}

/* ---------- changelog (new.html) ---------- */

.changelog {
  border-left: 1px solid var(--line-bright);
  padding-left: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.changelog-entry { position: relative; }

.changelog-entry::before {
  content: '';
  position: absolute;
  left: -1.87rem;
  top: 0.35rem;
  width: 8px;
  height: 8px;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
}

.changelog-date {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--text-faint);
  letter-spacing: 0.06em;
}

.changelog-entry h3 {
  font-size: 1.05rem;
  margin-top: 0.4rem;
}

.changelog-entry p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 0.4rem;
}
