/* Feedback bubble — ported from the mentorská kartotéka (app/static/css/style.css),
   re-themed to the OVA redesign brand variables. Styles the DOM that feedback.js injects. */

#fb-bubble {
  position: fixed; right: 1rem; bottom: 1rem;
  z-index: 8000;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--plum); color: #fff;
  border: none; cursor: pointer; font-size: 1.4rem;
  box-shadow: 0 6px 20px rgba(63, 37, 53, .35);
  display: inline-flex; align-items: center; justify-content: center;
}
#fb-bubble:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(63, 37, 53, .4); }
#fb-bubble:active { transform: translateY(0); }

.fb-modal { position: fixed; inset: 0; z-index: 9100; }
.fb-modal[hidden] { display: none; }
.fb-modal__backdrop { position: absolute; inset: 0; background: rgba(20, 16, 10, .55); }
body.fb-open { overflow: hidden; }
.fb-modal__body {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(720px, 94vw); max-height: 92vh; overflow: auto;
  background: #fff; border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
  padding: 1rem 1.1rem 1.1rem;
  display: flex; flex-direction: column; gap: .75rem;
}
.fb-modal__head { display: flex; justify-content: space-between; align-items: center; }
.fb-modal__head h2 { margin: 0; font-size: 1.1rem; }
.fb-modal__x {
  background: transparent; border: none; font-size: 1.6rem; line-height: 1;
  color: var(--ink-soft); cursor: pointer; padding: 0 .25rem;
}
.fb-modal__choose { display: flex; gap: .6rem; flex-wrap: wrap; }
.fb-modal__choose .fb-mode { flex: 1 1 0; min-width: 180px; padding: .9rem 1rem; }

.fb-pane textarea {
  width: 100%; box-sizing: border-box;
  font: inherit; padding: .55rem .65rem;
  border: 1px solid var(--line); border-radius: 8px;
}
.fb-pane label { display: block; margin-bottom: .25rem; font-weight: 600; }

.fb-actions { display: flex; gap: .5rem; justify-content: flex-end; }

.fb-shot-toolbar { display: flex; gap: .35rem; flex-wrap: wrap; }
.fb-shot-stage {
  position: relative; background: #1f1d1a; border-radius: 8px;
  max-height: min(60vh, 480px); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.fb-shot-base, .fb-shot-draw {
  display: block; max-width: 100%; max-height: min(60vh, 480px);
  width: auto; height: auto;
}
.fb-shot-draw {
  position: absolute; inset: 0; margin: auto;
  cursor: crosshair; touch-action: none;
}
.fb-crop-target { display: block; max-width: 100%; max-height: min(60vh, 480px); }
.fb-crop-bar { display: flex; gap: .35rem; padding: .4rem .25rem 0; justify-content: center; }

/* Honeypot — visually hidden, off-screen; bots fill it, humans never see it. */
.fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Button helpers the injected modal markup uses (mentorská used .btn/.btn-*). */
.fb-modal .btn {
  font: inherit; cursor: pointer; border: none; font-weight: 700;
  background: var(--plum); color: #fff;
  padding: .6rem 1rem; border-radius: 14px;
}
.fb-modal .btn:hover { background: var(--plum-deep); }
.fb-modal .btn-secondary { background: var(--cream); color: var(--ink); }
.fb-modal .btn-secondary:hover { background: var(--sand); }
.fb-modal .btn-sm { padding: .4rem .7rem; font-size: .85rem; }

.fb-toast {
  position: fixed; right: 1rem; bottom: 5.5rem; z-index: 9300;
  background: #2c2823; color: #fff; padding: .55rem .9rem;
  border-radius: 8px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  max-width: 320px;
}
.fb-toast--ok { background: #2f7a2f; }
.fb-toast--danger { background: #a3342d; }
