/* 1:1 문의 게시판 모던 UI 스타일 */

#page-feedback {
  background: var(--bg);
  overflow-y: auto;
  overflow-x: hidden;
}

.fb-container {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 상단 헤더 바 */
.fb-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--bdr);
  border-radius: 12px;
}

.fb-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fb-header-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--acc-light);
  color: var(--acc);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fb-header-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fb-header-text h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
  margin: 0;
}

.fb-header-text p {
  font-size: 12px;
  color: var(--mut);
  margin: 2px 0 0;
}

/* 액션 버튼 */
.fb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
  border: 1px solid var(--bdr);
  background: #fff;
  color: var(--txt);
}

.fb-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.fb-btn-primary {
  background: var(--acc);
  border-color: var(--acc);
  color: #fff;
}

.fb-btn-primary:hover {
  background: var(--acc2);
  border-color: var(--acc2);
}

/* 문의 목록 카드 */
.fb-item-card {
  background: #fff;
  border: 1px solid var(--bdr);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}

.fb-item-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.fb-item-card.is-expanded {
  border-color: var(--acc-border);
  box-shadow: 0 4px 14px rgba(242,86,75,0.08);
}

.fb-item-head {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  user-select: none;
}

.fb-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fb-meta-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fb-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  line-height: 1.2;
}

.fb-badge-cat {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.fb-badge-waiting {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

.fb-badge-done {
  background: var(--acc-light);
  color: var(--acc);
  border: 1px solid var(--acc-border);
}

.fb-meta-date {
  font-size: 12px;
  color: var(--mut);
}

.fb-item-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fb-item-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--txt);
  flex: 1;
  margin: 0;
  line-height: 1.4;
}

.fb-item-chevron {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mut);
  font-size: 13px;
  transition: transform .2s, background .15s;
}

.fb-item-card.is-expanded .fb-item-chevron {
  transform: rotate(180deg);
  background: #f3f4f6;
  color: var(--txt);
}

/* 스레드 상세 내용 */
.fb-thread-body {
  border-top: 1px solid var(--bdr);
  background: #fafaf9;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 질문 / 답변 말풍선 */
.fb-msg-box {
  background: #fff;
  border: 1px solid var(--bdr);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fb-msg-box.is-admin {
  background: #fff;
  border: 1.5px solid var(--acc-border);
  border-left: 4px solid var(--acc);
}

.fb-msg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.fb-msg-author {
  font-weight: 700;
  color: var(--txt);
  display: flex;
  align-items: center;
  gap: 6px;
}

.fb-msg-author.admin-author {
  color: var(--acc);
}

.fb-msg-content {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--txt);
  white-space: pre-wrap;
  word-break: break-word;
}

/* 추가 댓글 입력창 */
.fb-reply-form {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fb-reply-textarea {
  width: 100%;
  min-height: 70px;
  padding: 10px 12px;
  border: 1px solid var(--bdr);
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  background: #fff;
  resize: vertical;
}

.fb-reply-textarea:focus {
  outline: 2px solid var(--acc-light);
  border-color: var(--acc);
}

/* 작성 폼 */
.fb-write-card {
  background: #fff;
  border: 1px solid var(--bdr);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.fb-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fb-field-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--txt);
}

.fb-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.fb-input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--bdr);
  border-radius: 8px;
  font: inherit;
  font-size: 13.5px;
  background: #fff;
  color: var(--txt);
  transition: border-color .15s, box-shadow .15s;
}

.fb-input:focus {
  outline: none;
  border-color: var(--acc);
  box-shadow: 0 0 0 3px var(--acc-light);
}

.fb-textarea {
  width: 100%;
  min-height: 180px;
  padding: 12px;
  border: 1px solid var(--bdr);
  border-radius: 8px;
  font: inherit;
  font-size: 13.5px;
  line-height: 1.6;
  background: #fff;
  color: var(--txt);
  resize: vertical;
  transition: border-color .15s, box-shadow .15s;
}

.fb-textarea:focus {
  outline: none;
  border-color: var(--acc);
  box-shadow: 0 0 0 3px var(--acc-light);
}

.fb-count-row {
  display: flex;
  justify-content: flex-end;
  font-size: 11.5px;
  color: var(--mut);
  margin-top: -2px;
}

.fb-actions-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

/* 빈 상태 */
.fb-empty-state {
  background: #fff;
  border: 1px dashed var(--bdr);
  border-radius: 14px;
  padding: 48px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.fb-empty-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f3f4f6;
  color: var(--mut);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.fb-empty-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fb-empty-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--txt);
}

.fb-empty-desc {
  font-size: 13px;
  color: var(--mut);
  max-width: 320px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .fb-container {
    padding: 14px 16px;
  }
  .fb-grid-2 {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .fb-header-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

