/* SkyOps Companion - web "Try the Panel" demo chrome
 * Only styles the demo shell (page, fake MSFS window, control deck).
 * The panel itself is styled by SkyOps-Companion-Panel.css (untouched). */

:root {
  --bg: #0b0f17;
  --bg2: #121826;
  --line: #243047;
  --accent: #2f6bff;
  --accent2: #3fb950;
  --text: #e6edf3;
  --muted: #8aa0c0;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 70% -10%, #16233f 0%, transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  min-height: 100%;
}

/* ── Header ── */
.demo-head {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 20px 8px;
}
.demo-brand { display: flex; align-items: center; gap: 14px; }
.demo-logo {
  font-size: 34px; color: var(--accent);
  filter: drop-shadow(0 0 10px rgba(47,107,255,0.6));
}
.demo-head h1 { margin: 0; font-size: 26px; letter-spacing: 0.5px; }
.demo-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.demo-disclaimer {
  margin: 14px 0 0; padding: 10px 14px;
  background: rgba(47,107,255,0.08);
  border: 1px solid rgba(47,107,255,0.25);
  border-radius: 8px;
  color: #b9c8e4; font-size: 13px; line-height: 1.5;
}

/* ── Stage: window + control deck side by side ── */
.demo-stage {
  max-width: 980px;
  margin: 22px auto 60px;
  padding: 0 20px;
  display: flex;
  gap: 26px;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* ── Fake MSFS toolbar window ── */
.msfs-window {
  width: 340px;
  flex: 0 0 auto;
  background: rgba(12, 16, 24, 0.92);
  border: 1px solid #2b3a57;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.03) inset;
  overflow: hidden;
  backdrop-filter: blur(2px);
}
.msfs-titlebar {
  display: flex; align-items: center; justify-content: space-between;
  height: 34px; padding: 0 8px 0 12px;
  background: linear-gradient(180deg, #1b2740, #131c2e);
  border-bottom: 1px solid #2b3a57;
}
.msfs-title { font-size: 12px; font-weight: 600; letter-spacing: 0.6px; color: #c9d6ee; }
.msfs-winbtns { display: flex; gap: 4px; }
.msfs-wb {
  width: 22px; height: 22px; border: none; border-radius: 5px;
  background: rgba(255,255,255,0.06); color: #aab8d4;
  font-size: 12px; line-height: 1; cursor: default;
}
.msfs-wb:hover { background: rgba(255,255,255,0.12); }
.msfs-body {
  height: 620px;
  /* definite height so the panel's height:100% flex chain resolves */
}
.msfs-body skyops-companion-panel { display: block; height: 100%; }
/* guarantee the panel body scrolls inside the fixed window height */
.msfs-body #skyops-container { overflow-y: auto !important; }

/* ── Control deck ── */
.sim-deck {
  flex: 1 1 280px;
  min-width: 280px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}
.sim-deck-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 14px;
}
.sim-deck-title { font-size: 15px; font-weight: 600; }
.sim-clock { font: 12px/1 monospace; color: var(--muted); }

.sim-scenario-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #0e1422; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 12px; margin-bottom: 12px;
}
.sim-scenario-btns { display: flex; gap: 6px; }
.sim-scn-btn {
  padding: 6px 12px; border-radius: 7px;
  border: 1px solid var(--line); background: #0b1120; color: var(--muted);
  font-size: 12px; font-weight: 600; cursor: pointer;
}
.sim-scn-btn:hover { background: #16203a; color: var(--text); }
.sim-scn-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.sim-phase-row {
  display: flex; align-items: center; justify-content: space-between;
  background: #0e1422; border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 14px; margin-bottom: 12px;
}
.sim-phase-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.sim-phase { font-size: 17px; font-weight: 700; color: var(--accent2); }

.sim-scrub { width: 100%; margin: 4px 0 16px; accent-color: var(--accent); cursor: pointer; }

.sim-buttons { display: flex; gap: 8px; margin-bottom: 16px; }
.sim-btn {
  flex: 1; padding: 9px 8px; border-radius: 8px;
  border: 1px solid var(--line); background: #0e1422; color: var(--text);
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.sim-btn:hover { background: #16203a; }
.sim-btn.primary { background: var(--accent); border-color: var(--accent); }
.sim-btn.primary:hover { background: #3f78ff; }

.sim-tips { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.sim-tips strong { color: #cdd9ef; }

@media (max-width: 720px) {
  .demo-stage { flex-direction: column; align-items: stretch; }
  .msfs-window { width: 100%; max-width: 360px; margin: 0 auto; }
}

/* ── Embed mode (inside the liberty-fly showcase iframe) ── */
body.embed { min-height: 0; }
body.embed .demo-stage { margin: 16px auto 24px; }

/* V3 preview labelling (upcoming feature) */
.sim-scn-soon {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: #d29922;
  color: #1a1200;
  border-radius: 6px;
  padding: 1px 5px;
  margin-left: 4px;
  vertical-align: middle;
  font-weight: 700;
}
.sim-preview-note {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #9aa4b2;
  border-left: 3px solid #d29922;
  padding: 6px 10px;
  background: rgba(210, 153, 34, .07);
  border-radius: 0 6px 6px 0;
}
.sim-preview-note strong { color: #d7c08a; }
