/* CMS panel bridge styles — runs alongside the panel-manager.css */

/* The { } dev button is always present so the operator can find it.
   When dev mode is OFF, it has a subtle appearance (smaller, dimmer)
   so it doesn't dominate the page. When dev mode is ON, it's the
   familiar bright button (master switch for the panel system). */
#fvcms-dev-btn {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 2147483647;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 220, 100, 0.7);
  background: rgba(20, 28, 20, 0.95);
  color: rgba(255, 220, 100, 1);
  font: 700 14px ui-monospace, monospace;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease,
              width 0.18s ease, height 0.18s ease,
              opacity 0.18s ease, background 0.18s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Dev mode OFF: subtle "I'm here" affordance — small, dim, but
   findable. Click to enter dev mode. */
body:not(.fvcms-dev-on) #fvcms-dev-btn {
  width: 32px;
  height: 32px;
  font-size: 11px;
  border-color: rgba(180, 160, 130, 0.5);
  background: rgba(20, 28, 20, 0.6);
  color: rgba(220, 200, 160, 0.85);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  opacity: 0.7;
}
body:not(.fvcms-dev-on) #fvcms-dev-btn:hover {
  opacity: 1;
  transform: scale(1.08);
}
#fvcms-dev-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}
#fvcms-dev-btn:active {
  transform: scale(0.95);
}

/* Mobile: nudge away from safe area */
@media (max-width: 600px) {
  #fvcms-dev-btn {
    bottom: max(16px, env(safe-area-inset-bottom, 16px));
    right: max(16px, env(safe-area-inset-right, 16px));
  }
}

/* Inside the panel body — the FreshVibe CMS content */
.fvcms-cms-host {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fvcms-status-line {
  padding: 6px 10px;
  background: rgba(76, 175, 80, 0.18);
  border-radius: 4px;
  font-size: 10px;
  color: #c8e6c9;
}