/* 카카오 신고 컴포넌트 (qzInquiry) — 모달 모드 공통 외형
   사용: app/static/js/quiz-kakao.js의 qzInquiry.mount/html/attachAll */

/* ── 토글 버튼 (모든 페이지 공통: 빨강 / 작은 pill) ── */
.qz-inquiry-btn {
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 16px;
  border: 1.5px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all .15s;
  vertical-align: middle;
  white-space: nowrap;
  /* 부모가 flex 컨테이너인 경우 자동으로 우측 끝으로 밀림 (그렇지 않으면 무효) */
  margin-left: auto;
}
.qz-inquiry-btn:hover {
  border-color: #fca5a5;
  background: #fee2e2;
  color: #991b1b;
}

/* ── 모달 오버레이 ── */
.qz-inquiry-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: qzInquiryFade .18s ease;
}
.qz-inquiry-modal-overlay.open { display: flex; }
@keyframes qzInquiryFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.qz-inquiry-modal-card {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  animation: qzInquirySlide .2s ease;
}
@keyframes qzInquirySlide {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.qz-inquiry-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}
.qz-inquiry-modal-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}
.qz-inquiry-modal-close {
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.qz-inquiry-modal-close:hover {
  background: #f3f4f6;
  color: #111827;
}

.qz-inquiry-modal-body {
  padding: 18px;
  overflow-y: auto;
}

/* body 스크롤 락 */
.qz-inquiry-modal-lock {
  overflow: hidden;
}

/* ── 카카오 블록 (모달 본문 안) ── */
.qz-kakao-inquiry {
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px;
  background: #fafafe;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}
.qz-kakao-id-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.qz-kakao-id-label {
  font-size: 11px; font-weight: 700; letter-spacing: .05em;
  color: #6b7280; text-transform: uppercase;
}
.qz-kakao-id {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 14px; font-weight: 700; color: #3730a3;
  background: #eef2ff; padding: 4px 10px;
  border-radius: 6px; border: 1.5px solid #c7d2fe;
  user-select: all;
}
.qz-kakao-copy {
  font-family: inherit; font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 6px;
  border: 1px solid #d1d5db; background: #fff; color: #374151;
  cursor: pointer; transition: all .15s; line-height: 1.2;
}
.qz-kakao-copy:hover { background: #f3f4f6; border-color: #9ca3af; }
.qz-kakao-copy.copied {
  background: #d1fae5; border-color: #6ee7b7; color: #047857;
}
.qz-kakao-msg {
  font-size: 12px; color: #6b7280; margin: 0; line-height: 1.5;
}
.qz-kakao-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: 22px;
  background: #FEE500; color: #3A1D1D;
  font-size: 13px; font-weight: 700; text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: opacity .15s, transform .15s;
  white-space: nowrap; line-height: 1;
  align-self: flex-start;
}
.qz-kakao-link:hover { opacity: .85; transform: translateY(-1px); }
.qz-kakao-link:active { transform: translateY(0); }
.qz-kakao-link::before {
  content: '';
  display: inline-block;
  width: 18px; height: 18px;
  background: url('/static/img/kakao-channel.jpg') center/contain no-repeat;
  border-radius: 3px;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .qz-inquiry-modal-card { max-width: 100%; }
  .qz-inquiry-modal-body { padding: 14px; }
}
