/* =====================================================
   Nova Neural Network — Command Bridge
   File: /assets/css/bridge.css
   Anchor: ⧗⧗XAVI::CSS-BASELINE-20251230-01-STABLE⧗⧗
   Purpose: FULL authoritative layout + panels + header
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Cormorant+Garamond:wght@400;500;600&display=swap');

/* ==============================
   NOVA HEADER TYPOGRAPHY (LOCKED)
   ============================== */

.nova-header {
  text-align: center;
  margin-top: 2.5rem;
}

.nova-title {
  margin-top: 24px;
}

.nova-title-main {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: clamp(2.8rem, 5vw, 4rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f5f5f5;
  margin: 0;
}

.nova-title-sub {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #cfd6e6;
  margin-top: 0.4rem;
}

/* ================= RESET ================= */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  height: 100%;
  background: #060b1a;
  color: #eaeaea;
  font-family: system-ui, sans-serif;
  overflow-x: hidden;
}

/* ================= HEADER ================= */
.masthead {
  position: relative;
  z-index: 10;
  padding: 72px 16px 32px; /* ⬅ increased top padding */
  text-align: center;
  backdrop-filter: blur(14px);
  background: rgba(10, 18, 36, 0.65);
}

.masthead h1 {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: 0.08em;
}

.top-triggers {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}

.top-trigger {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid #f5c66a;
  background: transparent;
  color: #f5c66a;
  cursor: pointer;
  font-size: 0.85rem;
}

.top-trigger:hover {
  background: rgba(245,198,106,0.15);
}

/* ================= STATUS BAR ================= */
#status-bar {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 18px;
  padding: 10px 20px;

  background: rgba(10, 15, 30, 0.55);
  backdrop-filter: blur(6px);
  border-radius: 12px;

  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  color: #cfd8ff;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-item .label {
  opacity: 0.7;
}

.status-item .value {
  font-weight: 600;
  color: #ffffff;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.indicator.online {
  background: #4cff7a;
  box-shadow: 0 0 8px rgba(76, 255, 122, 0.8);
}

.indicator.offline {
  background: #ff4c4c;
  box-shadow: 0 0 8px rgba(255, 76, 76, 0.8);
}

/* ================= MAIN BAY ================= */
.bridge-main {
  padding: 48px 24px 80px;
  max-width: 900px;
  margin: 0 auto;
}

/* ================= PANELS ================= */
.panel {
  position: fixed;
  top: 0;
  height: 100vh;
  width: 320px;
  background: rgba(12, 20, 40, 0.92);
  backdrop-filter: blur(10px);
  transition: transform 0.35s ease;
  z-index: 20;
  padding: 20px;
}

/* LEFT PANEL */
#left-panel {
  left: 0;
  transform: translateX(-100%);
}

/* RIGHT PANEL */
#right-panel {
  right: 0;
  transform: translateX(100%);
}

/* ==============================
   COMMUNICATIONS BAY
   ============================== */

.comm-panel {
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 12px;
}

.comm-header {
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  color: #4fd1c5; /* cyan/teal */
  margin-bottom: 8px;
}

.comm-log {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  background: rgba(6, 11, 24, 0.6);
  border-radius: 12px;
  font-size: 0.9rem;
}

/* Individual messages */
.comm-message {
  margin-bottom: 10px;
  word-wrap: break-word;
  white-space: pre-wrap;
}

/* User messages */
.comm-message.user {
  color: #facc15; /* yellow-600 */
  font-weight: 700;
  font-style: italic;
}

/* Xavi messages */
.comm-message.xavi {
  color: #22d3ee; /* cyan-400 */
  font-weight: 700;
}

/* Timestamp */
.comm-timestamp {
  display: block;
  font-size: 0.7rem;
  opacity: 0.6;
  margin-top: 2px;
}

/* Input */
.comm-input {
  resize: none;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(10, 18, 36, 0.8);
  color: #e5e7eb;
  font-family: system-ui, sans-serif;
}

/* OPEN STATE */
.panel.open {
  transform: translateX(0) !important;
}

/* ================= FOOTER ================= */
.bridge-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 42px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 16px;
  font-size: 0.85rem;
  background: rgba(5, 10, 25, 0.8);
  backdrop-filter: blur(6px);
  z-index: 10;
}

.footer-left {
  text-align: left;
}

.footer-center {
  text-align: center;
}

.footer-right {
  text-align: right;
}
