/* components/feedback-panel/panel.css
   오류 신고·피드백 패널 — 전역 스타일과 격리 위해 .eun-fb- prefix.
   진단·추적기·키워드 5개 페이지 공통.
*/

.eun-fb-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #FF5933;
  color: white;
  border: 0;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(255, 89, 51, 0.4);
  transition: all 0.2s;
  z-index: 9000;
  font-family: inherit;
}
.eun-fb-fab:hover { transform: translateY(-2px) scale(1.05); }

.eun-fb-panel {
  position: fixed;
  bottom: 86px;
  right: 24px;
  width: 340px;
  background: #FFFFFF;
  border: 1px solid #E8E2D5;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
  overflow: hidden;
  z-index: 9001;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s, opacity 0.2s;
  font-family: inherit;
  font-size: 14px;
  color: #1A1A1A;
}
.eun-fb-panel.eun-fb-open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.eun-fb-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: #FF5933;
  color: white;
}
.eun-fb-head .eun-fb-title { font-weight: 800; font-size: 14px; letter-spacing: -0.01em; }
.eun-fb-head .eun-fb-sub { font-size: 11px; opacity: 0.85; margin-top: 1px; }
.eun-fb-head .eun-fb-close {
  background: transparent; border: 0; color: white;
  font-size: 18px; cursor: pointer; opacity: 0.85;
  font-family: inherit;
}
.eun-fb-head .eun-fb-close:hover { opacity: 1; }

.eun-fb-body { padding: 14px; }

.eun-fb-ctx-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 89, 51, 0.04);
  color: #FF5933;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 12px;
}
.eun-fb-ctx-chip::before { content: "📍"; font-size: 10px; }

.eun-fb-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.eun-fb-cat {
  background: #F0ECE2;
  color: #4A4A4A;
  border: 1px solid transparent;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.12s;
  font-family: inherit;
}
.eun-fb-cat:hover { background: rgba(255, 89, 51, 0.04); color: #FF5933; }
.eun-fb-cat.eun-fb-on { background: rgba(255, 89, 51, 0.08); color: #FF5933; border-color: #FF5933; }

.eun-fb-text {
  width: 100%;
  min-height: 60px;
  padding: 8px 10px;
  border: 1px solid #E8E2D5;
  border-radius: 7px;
  font: inherit;
  font-size: 13px;
  resize: vertical;
  margin-bottom: 10px;
  box-sizing: border-box;
}
.eun-fb-text::placeholder { color: #B8B8B8; }

.eun-fb-mini {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #888;
  font-size: 11px;
  margin-bottom: 12px;
}
.eun-fb-mini::before { content: "✨"; }

.eun-fb-actions { display: flex; gap: 8px; justify-content: flex-end; }
.eun-fb-btn-cancel, .eun-fb-btn-send {
  padding: 7px 14px;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 0;
}
.eun-fb-btn-cancel { background: transparent; color: #4A4A4A; }
.eun-fb-btn-cancel:hover { background: #F0ECE2; }
.eun-fb-btn-send { background: #FF5933; color: white; }
.eun-fb-btn-send:hover { background: #E04A2B; }
.eun-fb-btn-send:disabled { background: #B8B8B8; cursor: not-allowed; }

/* 처리 중 */
.eun-fb-progress { padding: 22px 14px; text-align: center; }
.eun-fb-spinner {
  width: 32px; height: 32px; margin: 0 auto 12px;
  border: 3px solid rgba(255, 89, 51, 0.08);
  border-top-color: #FF5933;
  border-radius: 50%;
  animation: eun-fb-spin 0.9s linear infinite;
}
@keyframes eun-fb-spin { to { transform: rotate(360deg); } }
.eun-fb-pp-title { font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.eun-fb-pp-sub { color: #888; font-size: 11px; }
.eun-fb-steps { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.eun-fb-dot { width: 6px; height: 6px; border-radius: 50%; background: #E8E2D5; }
.eun-fb-dot.eun-fb-on { background: #FF5933; }
.eun-fb-dot.eun-fb-done { background: #1E8E4A; }

/* 완료 */
.eun-fb-done { padding: 18px 14px; }
.eun-fb-icon {
  width: 40px; height: 40px; margin: 0 auto 8px;
  background: rgba(30, 142, 74, 0.08); color: #1E8E4A;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800;
}
.eun-fb-icon.eun-fb-warn { background: #FFF7E8; color: #B68A2E; }
.eun-fb-done-title { text-align: center; font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.eun-fb-done-sum {
  background: rgba(30, 142, 74, 0.08); color: #0F6A37;
  border-radius: 7px;
  padding: 10px 12px; font-size: 12px; line-height: 1.5;
  margin-bottom: 10px;
}
.eun-fb-done-sum.eun-fb-warn { background: #FFF7E8; color: #7A5200; }
.eun-fb-done-sum b { color: #064D24; }
.eun-fb-done-sum.eun-fb-warn b { color: #4A3000; }
.eun-fb-rere { text-align: center; font-size: 11px; color: #888; }
.eun-fb-rere a { color: #FF5933; text-decoration: none; font-weight: 700; cursor: pointer; }

/* 항목 호버 신고 링크 */
.eun-fb-report {
  opacity: 0;
  transition: opacity 0.15s;
  background: transparent; border: 0; cursor: pointer;
  color: #888; font-size: 11px; padding: 0;
  text-decoration: underline; text-underline-offset: 2px;
  font-family: inherit;
}
[data-feedback-item]:hover .eun-fb-report { opacity: 1; }
.eun-fb-report:hover { color: #FF5933; }
