/* ============================================================
   NECHO — Interpreter Page Styles (interpreter.css)
   ============================================================ */

.interp-main {
  min-height: 100vh; background: var(--bg);
  padding: 6rem 2rem 2rem;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem; align-items: start;
  max-width: 1400px; margin: 0 auto;
}
@media (max-width: 1024px) {
  .interp-main { grid-template-columns: 1fr; padding: 6rem 1rem 2rem; }
}

/* ── Panel Card ── */
.interp-card {
  background: var(--surface); border-radius: 2rem;
  border: 1px solid var(--border); padding: 2rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  display: flex; flex-direction: column; gap: 1.25rem;
  height: 840px;
}
@media (max-width: 1024px) { .interp-card { height: auto; } }

/* ── Panel Header ── */
.panel-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 1.25rem; border-bottom: 1px solid var(--border);
}
.panel-title { display: flex; align-items: center; gap: 1rem; }
.panel-icon {
  width: 40px; height: 40px; background: #dc2626; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; color: white; flex-shrink: 0;
}
.panel-title h2 { font-size: 1.125rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.live-badge {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.2);
  border-radius: 9999px;
  font-size: 9px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.15em; color: #22c55e;
}
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex-shrink: 0; }

/* ── Video ── */
.video-box {
  flex: 1; position: relative;
  background: #000; border-radius: 1.5rem;
  overflow: hidden; border: 1px solid var(--border);
  min-height: 300px;
}
.video-box img,
.video-box video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
@media (max-width: 1024px) { .video-box { height: 400px; flex: none; } }

/* ── Status ── */
.status-panel {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 1.25rem; padding: 1.25rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.status-row {
  display: flex; justify-content: space-between; align-items: center;
}
.status-key {
  font-size: 11px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--muted);
}
.status-val { font-size: 1rem; font-weight: 900; color: var(--text); }
.status-yes {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700;
  color: #22c55e;
  background: rgba(34,197,94,0.1);
  padding: 4px 12px; border-radius: 9999px;
  border: 1px solid rgba(34,197,94,0.2);
}
.status-no {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700;
  color: #ef4444;
  background: rgba(239,68,68,0.1);
  padding: 4px 12px; border-radius: 9999px;
  border: 1px solid rgba(239,68,68,0.2);
}

/* ── Add gesture btn ── */
.add-btn {
  width: 100%; padding: 1rem;
  font-size: 14px; letter-spacing: 0.08em; gap: 0.75rem;
  border-radius: 14px;
}
.add-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ── Chat box ── */
.chat-box {
  flex: 1; overflow-y: auto; padding: 1rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border); border-radius: 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
  min-height: 200px;
}
.chat-box::-webkit-scrollbar { width: 4px; }
.chat-box::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }

.chat-empty {
  height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1rem;
  color: var(--muted); text-align: center; opacity: 0.5;
}
.chat-empty p { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; }

.chat-msg {
  padding: 1rem 1.25rem; border-radius: 14px;
  border-left: 4px solid;
  background: var(--surface); flex-shrink: 0;
}
.chat-msg.gesture  { border-color: #dc2626; }
.chat-msg.user     { border-color: #22c55e; }
.msg-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.5rem;
}
.msg-type {
  font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em;
}
.chat-msg.gesture .msg-type { color: #dc2626; }
.chat-msg.user    .msg-type { color: #22c55e; }
.msg-time { font-size: 10px; font-weight: 700; color: var(--muted); }
.msg-text { font-size: 0.875rem; font-weight: 500; color: var(--text); line-height: 1.5; }
.msg-conf { font-size: 10px; color: var(--muted); margin-top: 0.5rem; opacity: 0.6; }

/* ── Input row ── */
.chat-input-row { display: flex; gap: 0.75rem; }
.chat-input {
  flex: 1; background: var(--bg);
  border: 2px solid var(--border); border-radius: 12px;
  padding: 12px 16px; color: var(--text);
  font-size: 0.875rem; font-weight: 600;
  outline: none; transition: border-color 0.2s;
}
.chat-input:focus { border-color: #e11d48; }
.send-btn {
  padding: 12px 20px; border-radius: 12px;
  flex-shrink: 0; gap: 0;
}

/* ── Export btn ── */
.export-btn {
  width: 100%; padding: 1rem;
  font-size: 12px; letter-spacing: 0.12em; gap: 0.75rem;
  border-radius: 14px;
}

/* ── HUD ── */
.live-hud {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 50;
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(9,9,11,0.8); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 1.25rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  animation: fadeUp 0.6s 0.2s ease both;
}
.hud-dot-wrap { position: relative; width: 10px; height: 10px; flex-shrink: 0; }
.hud-dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; }
.hud-title { font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.2em; color: white; }
.hud-sub   { font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.35); margin-top: 2px; }
