/* Feedback Board (ADO Feature #7941) - scoped fb-* styles.
   Reuses the site's Inter font and the existing kb-loading / kb-error classes from site.css. */

.fb-page {
    max-width: 920px;
    margin: 0 auto;
    padding: 28px 20px 64px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1f2733;
}

.fb-h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 6px; color: #14181f; }
.fb-h2 { font-size: 18px; font-weight: 700; margin: 28px 0 12px; color: #14181f; }
.fb-sub { font-size: 15px; color: #5a6472; margin: 0; max-width: 62ch; }
.fb-muted { color: #7a828f; font-size: 14px; }

/* Board header + toolbar */
.fb-board-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.fb-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.fb-search { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 8px; background: #f1f4f8; border: 1px solid #e0e4eb; border-radius: 9px; padding: 8px 12px; color: #7a828f; }
.fb-search input { border: 0; background: transparent; outline: none; font-size: 14px; width: 100%; color: #1f2733; font-family: inherit; }
.fb-select { border: 1px solid #d3d9e2; border-radius: 9px; padding: 8px 12px; font-size: 14px; background: #fff; color: #1f2733; font-family: inherit; }

.fb-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.fb-ftab { font-size: 13px; padding: 6px 13px; border-radius: 8px; border: 1px solid #e0e4eb; background: #fff; color: #5a6472; cursor: pointer; font-family: inherit; }
.fb-ftab:hover { background: #f1f4f8; }
.fb-ftab.on { background: #14181f; color: #fff; border-color: #14181f; }

/* Buttons */
.fb-btn { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; border-radius: 9px; padding: 9px 16px; border: 1px solid transparent; cursor: pointer; text-decoration: none; font-family: inherit; }
.fb-btn-primary { background: #007bff; color: #fff; }
.fb-btn-primary:hover { background: #0069d9; }
.fb-btn-ghost { background: #fff; border-color: #d3d9e2; color: #1f2733; }
.fb-btn-ghost:hover { background: #f1f4f8; }
.fb-btn-block { width: 100%; justify-content: center; margin-top: 6px; }
.fb-btn:disabled { opacity: 0.6; cursor: default; }

/* Idea list */
.fb-list { display: flex; flex-direction: column; border: 1px solid #e6eaf0; border-radius: 12px; overflow: hidden; background: #fff; }
.fb-idea { display: flex; gap: 14px; padding: 16px; border-bottom: 1px solid #eef1f5; align-items: flex-start; }
.fb-idea:last-child { border-bottom: 0; }

.fb-vote { flex: none; width: 56px; display: flex; flex-direction: column; align-items: center; gap: 2px; border: 1px solid #d3d9e2; border-radius: 10px; padding: 8px 0; background: #f7f9fc; cursor: pointer; color: #5a6472; font-family: inherit; }
.fb-vote:hover:not(:disabled) { border-color: #007bff; color: #007bff; }
.fb-vote.on { border-color: #007bff; background: #e8f1ff; color: #007bff; }
.fb-vote-n { font-weight: 700; font-size: 15px; color: #1f2733; }
.fb-vote-l { font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: #9aa2ae; }

.fb-idea-body { flex: 1; min-width: 0; }
.fb-idea-title { font-weight: 600; font-size: 15.5px; color: #14181f; text-decoration: none; letter-spacing: -0.01em; }
.fb-idea-title:hover { color: #007bff; text-decoration: underline; }
.fb-idea-desc { color: #5a6472; font-size: 13.5px; margin: 5px 0 9px; }
.fb-idea-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 12px; color: #7a828f; }
.fb-ref { font-family: 'Consolas', ui-monospace, monospace; color: #5a6472; }

/* Status pills */
.fb-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.fb-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.fb-st-review   { color: #5b6472; background: #eceff3; }
.fb-st-info     { color: #6b4fd8; background: #efeafe; }
.fb-st-planned  { color: #2258c9; background: #e6effd; }
.fb-st-progress { color: #b56b12; background: #fbf0dd; }
.fb-st-shipped  { color: #178a5f; background: #e2f5ec; }
.fb-st-declined { color: #b53f56; background: #fbe7ec; }
.fb-st-merged   { color: #5b6472; background: #eceff3; }

.fb-empty { text-align: center; padding: 48px 20px; border: 1px dashed #d3d9e2; border-radius: 12px; color: #7a828f; display: flex; flex-direction: column; align-items: center; gap: 14px; }

/* Detail */
.fb-detail .fb-back, .fb-submit .fb-back { display: inline-block; color: #5a6472; font-size: 13px; text-decoration: none; margin-bottom: 16px; }
.fb-back:hover { color: #007bff; }
.fb-detail-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.fb-detail-body { font-size: 15px; color: #3a424f; line-height: 1.6; margin: 0 0 18px; white-space: pre-wrap; }

.fb-shot { margin: 0 0 16px; border: 1px solid #e6eaf0; border-radius: 10px; overflow: hidden; background: #f7f9fc; }
.fb-shot img { display: block; max-width: 100%; height: auto; }
.fb-shot figcaption { font-size: 11px; color: #7a828f; padding: 7px 12px; border-top: 1px solid #eef1f5; font-family: 'Consolas', ui-monospace, monospace; }

.fb-timeline { display: flex; flex-direction: column; gap: 6px; margin: 0 0 8px; }
.fb-tevent { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: #5a6472; }
.fb-tdate { font-size: 12px; color: #7a828f; }

.fb-comments { display: flex; flex-direction: column; gap: 12px; }
.fb-comment { border: 1px solid #eef1f5; border-radius: 10px; padding: 12px 14px; background: #fff; }
.fb-comment-team { background: #f3f9ff; border-color: #cfe3ff; }
.fb-comment-head { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.fb-comment-who { font-size: 13px; font-weight: 600; color: #1f2733; }
.fb-badge { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; background: #007bff; color: #fff; padding: 2px 7px; border-radius: 5px; }
.fb-comment-time { font-size: 11px; color: #9aa2ae; margin-left: auto; }
.fb-comment-body { font-size: 13.5px; color: #3a424f; line-height: 1.55; white-space: pre-wrap; }

.fb-note { margin-top: 22px; background: #f7f9fc; border: 1px solid #e6eaf0; border-radius: 10px; padding: 13px 15px; font-size: 13px; color: #5a6472; }

/* Submit form */
.fb-form { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; max-width: 620px; }
.fb-field { display: flex; flex-direction: column; gap: 6px; }
.fb-field label { font-size: 13px; font-weight: 600; color: #3a424f; }
.fb-optional { font-weight: 400; color: #9aa2ae; }
.fb-input { border: 1px solid #d3d9e2; border-radius: 9px; padding: 10px 12px; font-size: 14px; font-family: inherit; color: #1f2733; background: #fff; width: 100%; }
.fb-input:focus { outline: none; border-color: #007bff; box-shadow: 0 0 0 3px rgba(0,123,255,0.15); }
.fb-textarea { min-height: 96px; resize: vertical; }
.fb-hint { font-size: 12px; color: #9aa2ae; }
.fb-drop { border: 1.5px dashed #cbd2dc; border-radius: 10px; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 7px; color: #7a828f; font-size: 13px; cursor: pointer; }
.fb-drop:hover { border-color: #007bff; color: #007bff; }
.fb-drop input[type=file] { display: none; }

/* Honeypot - visually removed but present in the DOM for bots */
.fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Success */
.fb-success { text-align: center; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.fb-success-icon { width: 52px; height: 52px; border-radius: 50%; background: #e2f5ec; color: #178a5f; display: grid; place-items: center; }
.fb-success-actions { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }

/* Submit page: guidance panel (left) + form (right) */
.fb-submit { max-width: 1080px; }
.fb-submit-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: 44px; align-items: start; margin-top: 6px; }

.fb-guide .fb-h1 { margin-bottom: 10px; }
.fb-guide-lead { font-size: 15px; color: #5a6472; line-height: 1.6; margin: 0 0 22px; }
.fb-guide-block { margin: 0 0 22px; }
.fb-guide-h { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #14181f; margin: 0 0 7px; }
.fb-guide-h svg { flex: none; color: #007bff; }
.fb-guide-p { font-size: 13.5px; color: #5a6472; line-height: 1.6; margin: 0 0 9px; }
.fb-guide-p:last-child { margin-bottom: 0; }
.fb-guide-p-tight { margin-top: 4px; }
.fb-guide-p strong { color: #3a424f; }
.fb-guide-list { margin: 4px 0 0; padding-left: 18px; }
.fb-guide-list li { font-size: 13.5px; color: #5a6472; line-height: 1.55; margin-bottom: 5px; }

.fb-guide-why { background: #f3f9ff; border: 1px solid #cfe3ff; border-radius: 12px; padding: 16px 17px; margin: 0 0 22px; }
.fb-guide-why .fb-guide-h { color: #0b57b8; }
.fb-guide-example { border-left: 3px solid #9fc6f5; padding: 2px 0 2px 12px; margin: 10px 0 0; font-size: 13px; font-style: italic; color: #5a6472; line-height: 1.55; }

.fb-guide-privacy { background: #f7f9fc; border: 1px solid #e6eaf0; border-radius: 12px; padding: 16px 17px; }

.fb-form-col { background: #fff; border: 1px solid #e6eaf0; border-radius: 14px; padding: 22px 22px 24px; box-shadow: 0 1px 2px rgba(20,24,31,0.04); }
.fb-submit-grid .fb-form { margin-top: 0; max-width: none; }

@media (max-width: 860px) {
    .fb-submit-grid { grid-template-columns: 1fr; gap: 28px; }
    .fb-form-col { padding: 18px; }
}

@media (max-width: 560px) {
    .fb-board-head { flex-direction: column; }
    .fb-idea { padding: 13px; }
}
