/* ============================================================
   SportHub — site-wide Bug button (frontend + wp-admin)
   Persistent pill button bottom-right; click expands LEFT into
   an inline panel. No modal/backdrop — minimal obstruction.
   ============================================================ */

.sh-bug-root {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 99999;
  font-family: -apple-system, system-ui, "Segoe UI", sans-serif;
  /* keep the panel anchored to the right edge of the button */
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.sh-bug-btn {
  background: #111827;
  color: #fff;
  border: 0;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
  opacity: .55;
  transition: opacity .15s, transform .1s;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  letter-spacing: .02em;
}
.sh-bug-btn:hover { opacity: 1; }
.sh-bug-btn:active { transform: translateY(1px); }

.sh-bug-root[data-state="open"] .sh-bug-btn { display: none; }

.sh-bug-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(0,0,0,.18);
  padding: 12px;
  width: 320px;
  max-width: calc(100vw - 32px);
  color: #111827;
  line-height: 1.4;
}

.sh-bug-meta {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 6px;
}
.sh-bug-meta code {
  background: #f3f4f6;
  padding: 1px 6px;
  border-radius: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: #111827;
  word-break: break-all;
}

.sh-bug-body {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  box-sizing: border-box;
  color: #111827;
  background: #fff;
}
.sh-bug-body:focus { outline: 2px solid #2563eb; outline-offset: -1px; border-color: transparent; }

.sh-bug-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  margin-top: 8px;
}
.sh-bug-actions button {
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}
.sh-bug-cancel {
  background: #fff;
  color: #6b7280;
  border: 1px solid #d1d5db;
}
.sh-bug-cancel:hover { background: #f9fafb; }
.sh-bug-send {
  background: #2563eb;
  color: #fff;
  border: 0;
}
.sh-bug-send:hover { background: #1d4ed8; }
.sh-bug-send:disabled { opacity: .5; cursor: not-allowed; }

.sh-bug-msg {
  font-size: 12px;
  margin-top: 6px;
  min-height: 0;
}
.sh-bug-msg.ok  { color: #059669; }
.sh-bug-msg.err { color: #dc2626; }

/* In wp-admin, push above any admin bar but stay below modal overlays. */
body.wp-admin .sh-bug-root { z-index: 99998; }
