/* ============================================================
   EVOLVE OS v3.2 — PANEL + CORE UI
   Clean, minimal, ASCII‑only, Cloudflare‑safe.
   ============================================================ */

/* ------------------------------------------------------------
   ORB TRIGGER
   ------------------------------------------------------------ */
#evolve-orb {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--evolve-accent, #6a4bff);
  cursor: pointer;
  z-index: 99999;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  mask: url('/assets/icons/evolve-logo.svg') center/contain no-repeat;
  -webkit-mask: url('/assets/icons/evolve-logo.svg') center/contain no-repeat;
}

#evolve-orb:hover {
  transform: scale(1.08);
  box-shadow: 0 0 18px var(--evolve-accent-glow, rgba(120,80,255,0.8));
}

/* ------------------------------------------------------------
   PANEL CONTAINER
   ------------------------------------------------------------ */
.evolve-panel {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 360px;
  max-height: 75vh;
  background: #121212;
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 0 24px rgba(0,0,0,0.55);
  overflow: hidden;
  display: none;
  flex-direction: column;
  z-index: 99998;
}

.evolve-panel.is-visible {
  display: flex;
}

/* ------------------------------------------------------------
   PANEL HEADER
   ------------------------------------------------------------ */
.evolve-panel-header {
  padding: 14px 16px;
  background: #1c1c1c;
  font-size: 16px;
  font-weight: bold;
  border-bottom: 1px solid #2a2a2a;
}

/* ------------------------------------------------------------
   SUBTABS (Diagnostics / Ideas)
   ------------------------------------------------------------ */
.devsuite-subtabs {
  display: flex;
  background: #181818;
  border-bottom: 1px solid #2a2a2a;
}

.devsuite-subtab-btn {
  flex: 1;
  padding: 10px;
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease;
}

.devsuite-subtab-btn:hover {
  background: #222;
  color: #fff;
}

.devsuite-subtab-btn.active {
  background: #333;
  color: #fff;
}

/* ------------------------------------------------------------
   PANEL CONTENT
   ------------------------------------------------------------ */
.evolve-panel-content,
.devsuite-subtab {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

/* ------------------------------------------------------------
   DEBUG OVERLAY
   ------------------------------------------------------------ */
.evolve-debug-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  height: 100vh;
  background: rgba(0,0,0,0.85);
  color: #fff;
  z-index: 999999;
  display: none;
  padding: 12px;
  overflow-y: auto;
}

.edo-header {
  font-weight: bold;
  margin-bottom: 10px;
}

.edo-line {
  font-size: 13px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* ------------------------------------------------------------
   IDEA VAULT — MIND MAP
   ------------------------------------------------------------ */
.idea-mindmap-container {
  padding: 12px;
  border-bottom: 1px solid #2a2a2a;
}

.idea-mindmap-root {
  text-align: center;
  margin-bottom: 16px;
}

.idea-node {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  background: #222;
  margin: 6px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.idea-node:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(120,80,255,0.5);
}

.idea-node-title {
  font-size: 14px;
  font-weight: bold;
}

.idea-node-status {
  font-size: 12px;
  opacity: 0.7;
}

/* Status colours */
.idea-node-purple { background: #2a1a3a; }
.idea-node-blue   { background: #1a2a3a; }
.idea-node-green  { background: #1a3a2a; }
.idea-node-grey   { background: #2a2a2a; }

/* Connectors */
.idea-connector-line {
  display: block;
  width: 2px;
  height: 20px;
  margin: 0 auto;
  background: rgba(255,255,255,0.2);
}

/* ------------------------------------------------------------
   IDEA VAULT — LIST
   ------------------------------------------------------------ */
.idea-list-scroll {
  max-height: 50vh;
  overflow-y: auto;
  padding: 12px;
}

.idea-row {
  padding: 12px;
  border-bottom: 1px solid #2a2a2a;
}

.idea-row-highlight {
  background: rgba(120,80,255,0.2);
  transition: background 0.6s ease;
}

.idea-status-badge {
  padding: 4px 8px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 12px;
  margin-right: 8px;
}

.idea-status-purple { background: #4a2a7a; }
.idea-status-blue   { background: #2a4a7a; }
.idea-status-green  { background: #2a7a4a; }
.idea-status-grey   { background: #444; }

.idea-row-details {
  display: none;
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.85;
}

.idea-row-details.open {
  display: block;
}

.idea-add-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.idea-add-input {
  flex: 1;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #333;
  background: #1a1a1a;
  color: #fff;
}

.idea-add-button {
  padding: 6px 12px;
  background: #333;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: #fff;
}

.idea-add-button:hover {
  background: #444;
}
