/* feedback.css — the tester's line to Ahmet (js/feedback.js).
   A quiet beacon beside the music toggle, and the small dark card it opens.
   The card wears the same dark shell language as the Lexiverse pages:
   nebula glass, a thin periwinkle edge, nothing that competes with a beat. */

/* ---------- The button (bottom-right, left of the music toggle) ---------- */

#feedback-btn {
  position: fixed;
  bottom: max(3vh, env(safe-area-inset-bottom, 0px) + 16px);
  /* one music button plus a breath to its right */
  right: calc(max(4vw, 18px) + 56px);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: none;
  border: 1px solid transparent;
  padding: 12px;
  cursor: pointer;
  color: var(--lavender);
  opacity: 0;
  transition: opacity 1s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
#feedback-btn.show { opacity: 0.55; }
#feedback-btn.show:hover,
#feedback-btn.open {
  opacity: 1;
  color: var(--gold, #E8C16A);
  background: rgba(232, 193, 106, 0.06);
  border-color: rgba(232, 193, 106, 0.35);
}
#feedback-btn svg { width: 20px; height: 20px; display: block; }
#feedback-btn .fb-bubble {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
}
#feedback-btn .fb-dot { fill: currentColor; }

/* ---------- The panel ---------- */

#feedback {
  position: fixed;
  bottom: calc(max(3vh, env(safe-area-inset-bottom, 0px) + 16px) + 58px);
  right: max(4vw, 18px);
  z-index: 45; /* above the chrome, still under nothing that matters */
  width: min(320px, calc(100vw - 36px));
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#feedback.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.fb-shell {
  background: rgba(20, 15, 40, 0.92);
  border: 1px solid rgba(140, 135, 220, 0.3);
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(5, 4, 16, 0.55), 0 0 24px rgba(140, 135, 220, 0.12);
  backdrop-filter: blur(6px);
  padding: 16px 16px 12px;
}

.fb-title {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--cream);
}
.fb-sub {
  font-family: var(--sans);
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--lavender);
  margin-top: 4px;
}

.fb-note {
  display: block;
  width: 100%;
  min-height: 74px;
  margin-top: 12px;
  padding: 9px 11px;
  resize: none;
  background: rgba(11, 10, 31, 0.6);
  border: 1px solid rgba(154, 147, 184, 0.35);
  border-radius: 9px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--cream);
  transition: border-color 0.3s ease;
}
.fb-note::placeholder { color: rgba(154, 147, 184, 0.55); }
.fb-note:focus {
  outline: none;
  border-color: rgba(232, 193, 106, 0.45);
}

.fb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}
.fb-status {
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--lavender);
  min-height: 1em;
}
.fb-status.error { color: #E8776A; }

/* The send wears the house pill: rounded, bordered, no fill. */
.fb-send {
  flex-shrink: 0;
  padding: 6px 18px;
  background: none;
  border: 1px solid rgba(232, 193, 106, 0.5);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--gold, #E8C16A);
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}
.fb-send:hover:not(:disabled) {
  background: rgba(232, 193, 106, 0.1);
  border-color: rgba(232, 193, 106, 0.9);
}
.fb-send:disabled { opacity: 0.45; cursor: default; }
