/* ============================================================
   Felt Trainer — feedback widget styles (shared, all pages)
   Floating button, per-page thumbs, and the suggestion modal.
   Uses shared design tokens (var(--*)) from shared/styles.css.
   ============================================================ */

/* visually-hidden honeypot — off-screen, never shown to humans */
.ft-fb-hp {
  position: absolute !important; left: -9999px !important; top: -9999px !important;
  width: 1px; height: 1px; opacity: 0; pointer-events: none;
}

/* floating button (content pages only) */
.ft-fb-btn {
  position: fixed; right: 16px; bottom: 16px; z-index: 900;
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--border, #2a2f2c);
  background: var(--surface-2, #1a201d); color: var(--text, #e8ede9);
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif); font-size: 0.82rem; font-weight: 700;
  cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.4); transition: all .15s;
}
.ft-fb-btn::before { content: '💬'; margin-right: 6px; }
.ft-fb-btn:hover { background: var(--surface-3, #232a26); border-color: var(--text-dim, #6c776f); transform: translateY(-1px); }

/* thumbs ("Was this helpful?") */
.ft-fb-thumbs {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin: 28px 0 8px; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--border, #2a2f2c); background: var(--surface, #12161400);
}
.ft-fb-thumbs-q { font-weight: 700; color: var(--text, #e8ede9); font-size: 0.92rem; }
.ft-fb-thumb {
  font-size: 1.1rem; line-height: 1; padding: 6px 12px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--border, #2a2f2c); background: var(--surface-2, #1a201d); transition: all .12s;
}
.ft-fb-thumb:hover:not(:disabled) { background: var(--surface-3, #232a26); transform: translateY(-1px); }
.ft-fb-thumb:disabled { opacity: 0.5; cursor: default; }
.ft-fb-thumbs-msg { color: var(--green-bright, #46c97f); font-weight: 700; font-size: 0.85rem; }

/* modal */
.ft-fb-overlay {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 18px; background: rgba(0,0,0,.6); backdrop-filter: blur(2px);
}
.ft-fb-overlay.ft-fb-hidden { display: none; }
.ft-fb-modal {
  position: relative; width: 100%; max-width: 440px;
  background: var(--surface, #121614); color: var(--text, #e8ede9);
  border: 1px solid var(--border, #2a2f2c); border-radius: 16px; padding: 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5); font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  animation: ftFbIn .18s ease;
}
@keyframes ftFbIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.ft-fb-close {
  position: absolute; top: 10px; right: 12px; background: none; border: none;
  color: var(--text-dim, #6c776f); font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 2px 6px;
}
.ft-fb-close:hover { color: var(--text, #e8ede9); }
.ft-fb-title { margin: 0 0 4px; font-size: 1.15rem; }
.ft-fb-sub { margin: 0 0 14px; color: var(--text-muted, #9aa39c); font-size: 0.86rem; line-height: 1.4; }
.ft-fb-textarea, .ft-fb-email {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--border, #2a2f2c); background: var(--surface-2, #1a201d);
  color: var(--text, #e8ede9); font-family: inherit; font-size: 0.9rem;
}
.ft-fb-textarea { resize: vertical; min-height: 92px; }
.ft-fb-textarea:focus, .ft-fb-email:focus { outline: none; border-color: var(--green, #2d9f5f); }
.ft-fb-counter { display: block; text-align: right; font-size: 0.72rem; color: var(--text-dim, #6c776f); margin: 4px 0 10px; font-variant-numeric: tabular-nums; }
.ft-fb-email { margin-bottom: 12px; }
.ft-fb-status { min-height: 1.1rem; margin: 0 0 10px; font-size: 0.84rem; font-weight: 600; }
.ft-fb-status-ok { color: var(--green-bright, #46c97f); }
.ft-fb-status-err { color: var(--red-bright, #e05252); }
.ft-fb-send {
  width: 100%; padding: 11px; border-radius: 10px; border: none; cursor: pointer;
  background: var(--green, #2d9f5f); color: #fff; font-family: inherit; font-size: 0.9rem; font-weight: 700;
  transition: filter .15s;
}
.ft-fb-send:hover:not(:disabled) { filter: brightness(1.1); }
.ft-fb-send:disabled { opacity: 0.6; cursor: default; }

@media (max-width: 600px) {
  .ft-fb-btn { right: 12px; bottom: 12px; padding: 9px 14px; font-size: 0.78rem; }
}
