/* ============================================================
   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;
  min-height: 44px; padding: 10px 15px; border-radius: var(--radius, 4px); border: 1px solid var(--ink, #10272f);
  background: var(--ink, #10272f); color: var(--paper-2, #fffaf0);
  font-family: var(--font-body, 'Manrope', sans-serif); font-size: 0.82rem; font-weight: 800;
  cursor: pointer; box-shadow: 4px 5px 0 rgba(0,0,0,.18); transition: transform .15s, box-shadow .15s, background .15s;
}
.ft-fb-btn::before { content: '💬'; margin-right: 6px; }
.ft-fb-btn:hover { background: #17383d; transform: translate(1px,1px); box-shadow: 2px 3px 0 rgba(0,0,0,.18); }

/* thumbs ("Was this helpful?") */
.ft-fb-thumbs {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin: 34px 0 8px; padding: 16px; border-radius: var(--radius, 4px);
  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 {
  min-width: 44px; min-height: 40px; font-size: 1.1rem; line-height: 1; padding: 6px 12px; border-radius: var(--radius, 4px); 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(--paper-2, #fffaf0); color: var(--ink, #10272f);
  border: 2px solid var(--ink, #10272f); border-radius: var(--radius-lg, 8px); padding: 24px;
  box-shadow: 9px 11px 0 rgba(0,0,0,.24); font-family: var(--font-body, 'Manrope', 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(--ink, #10272f); }
.ft-fb-title { margin: 0 0 4px; color: var(--ink, #10272f); font: 800 1.55rem/1 var(--font-display, sans-serif); text-transform: uppercase; }
.ft-fb-sub { margin: 0 0 14px; color: var(--muted-ink, #596a70); 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 #bdaF9b; background: #fffdf7;
  color: var(--ink, #10272f); font-family: inherit; font-size: 0.9rem;
}
.ft-fb-textarea { resize: vertical; min-height: 92px; }
.ft-fb-textarea:focus, .ft-fb-email:focus { outline: 3px solid rgba(22,118,115,.18); border-color: var(--brand-teal, #167673); }
.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%; min-height: 46px; padding: 11px; border-radius: var(--radius, 4px); border: 1px solid var(--brand-red-dark, #8e2925); cursor: pointer;
  background: var(--brand-red, #c03730); color: #fff; font-family: inherit; font-size: 0.9rem; font-weight: 800;
  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) {
  /* A fixed control crossed over guide links as they scrolled underneath it.
     On phones feedback stays easy to find at the end of the page, but never
     steals a tap from the content the visitor is trying to use. */
  .ft-fb-btn {
    position: static; display: block; min-width: 132px; margin: 0 18px 22px auto;
    padding: 10px 14px; font-size: 0.78rem;
  }
}
