/* support.css - 고객센터 페이지 */

/* ===================================================
   고객센터 배너
=================================================== */
.center-banner {
  position: relative;
  background: url('/assets/images/image_title_bg_3.png') no-repeat center/cover;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.center-banner h1 {
  position: relative;
  color: #fff;
  font-size: 2.625rem;
  font-weight: 700;
  letter-spacing: -1px;
}

/* ===================================================
   center_nav (탭)
=================================================== */
.center-wrap {
  background: #fff;
}
.center-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.center-nav .vd-container {
  display: flex;
}
.center-nav ul {
  display: flex;
}
.center-nav ul li a {
  display: block;
  padding: 1.125rem 2.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -0.0625rem;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.center-nav ul li a:hover {
  color: var(--red);
}
.center-nav ul li a.on {
  color: var(--red);
  font-weight: 700;
  border-bottom-color: var(--red);
}

/* ===================================================
   본문 영역
=================================================== */
.center-content {
  padding: 3.25rem 1.5rem 6.25rem;
}

/* 섹션 타이틀 */
.center-title {
  text-align: center;
  margin-bottom: 2.25rem;
}
.center-title h3 {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.center-title p {
  font-size: 0.875rem;
  color: #9ca3af;
}

/* ===================================================
   게시판 목록 테이블
=================================================== */
.center-table {
  overflow-x: auto;
}
.center-table table {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--ink);
}
.center-table table th {
  padding: 0.8125rem 0.875rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--mid);
  background: var(--soft);
  border-bottom: 1px solid var(--border);
  text-align: center;
  white-space: nowrap;
}
.center-table table th.title-th {
  text-align: left;
}
.center-table table td {
  padding: 0.9375rem 0.875rem;
  font-size: 0.875rem;
  color: var(--mid);
  border-bottom: 1px solid var(--border-soft);
  text-align: center;
  vertical-align: middle;
}
.center-table table td.title-td,
.center-table table td.text-left {
  text-align: left;
}
.center-table table td a {
  color: var(--mid);
  transition: color 0.15s;
}
.center-table table td a:hover {
  color: var(--red);
}
.center-table table tr:hover td {
  background: #fafafa;
}
.board-empty {
  text-align: center;
  padding: 3.75rem 0;
  color: #9ca3af;
  font-size: 0.875rem;
}

/* 답변 상태 뱃지 */
.state-box {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #f3f4f6;
  color: var(--muted);
}
.state-box.state-ok   { background: #dcfce7; color: #16a34a; }
.state-box.state-wait { background: #fff7ed; color: #ea580c; }

/* 목록 하단 버튼 */
.board-table-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 1.25rem;
}
.btn-write a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 1.375rem;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.15s;
  cursor: pointer;
  text-decoration: none;
}
.btn-write a:hover { background: #d32f2f; }

/* 페이지네이션 */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 2.25rem;
}
.pagination .page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--mid);
  cursor: pointer;
  background: #fff;
  text-decoration: none;
  transition: all 0.15s;
}
.pagination .page:hover     { border-color: var(--red); color: var(--red); }
.pagination .page.active    { background: var(--red); border-color: var(--red); color: #fff; font-weight: 700; }
.pagination .page.disabled  { opacity: 0.35; pointer-events: none; cursor: default; }

/* ===================================================
   게시글 상세
=================================================== */
.board-detail { border-top: 2px solid var(--ink); }
.board-detail-top {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.board-detail-top__title h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 0.875rem;
  word-break: break-all;
}
.board-detail-top__info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.board-detail-top__info__writer {
  font-size: 0.8rem;
  color: #9ca3af;
}
.board-detail-top__info__writer span { color: var(--mid); font-weight: 500; }
.board-detail-top__info__date  { font-size: 0.8rem; color: #9ca3af; }
.board-detail-content-main {
  padding: 2.25rem 0;
  font-size: 0.875rem;
  color: var(--mid);
  line-height: 1.9;
  border-bottom: 1px solid var(--border);
  min-height: 140px;
  white-space: pre-line;
}
/* 답변 */
.board-detail-content {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.qna-answer-profile {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.875rem;
}
.qna-answer-profile .answer-badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  background: var(--red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 4px;
}
.qna-answer-profile .name { font-size: 0.875rem; font-weight: 700; color: var(--ink); }
.qna-answer-profile .date { font-size: 0.75rem; color: #9ca3af; }
.board-detail-content p {
  font-size: 0.875rem;
  color: var(--mid);
  line-height: 1.9;
  white-space: pre-line;
}
.board-detail-bottom {
  padding: 1.25rem 0;
  display: flex;
  justify-content: flex-end;
}
.btn-back button {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 1.375rem;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--mid);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  font-family: inherit;
}
.btn-back button:hover { border-color: var(--red); color: var(--red); }
.board-desc {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 0.625rem;
}
.btn-icon-back a { font-size: 1.125rem; color: var(--muted); }
.btn-icon-back a:hover { color: var(--red); }

/* ===================================================
   게시글 작성 폼
=================================================== */
.board-write { border-top: 2px solid var(--ink); }
.board-write-list { padding: 8px 0; }
.input-label {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--border-soft);
}
.input-label label {
  flex-shrink: 0;
  width: 120px;
  padding: 1rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--mid);
  background: var(--soft);
  display: flex;
  align-items: center;
}
.input-label.required label::after {
  content: ' *';
  color: var(--red);
}
.input-label input[type="text"],
.input-label textarea {
  flex: 1;
  padding: 0.875rem;
  font-size: 0.875rem;
  font-family: inherit;
  border: none;
  outline: none;
  background: transparent;
  color: var(--ink);
}
.input-label textarea { min-height: 200px; resize: vertical; }
.input-file {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  padding: 0.625rem 0.875rem;
}
.input-file input[type="file"] { display: none; }
.input-file input[type="text"] {
  flex: 1;
  padding: 0.5rem 0.625rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.8rem;
  background: var(--soft);
  color: var(--muted);
  outline: none;
}
.input-file > label {
  width: auto !important;
  padding: 0.5rem 1rem !important;
  background: var(--mid) !important;
  color: #fff !important;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  align-self: auto !important;
}
.input-file > label:hover { background: var(--ink) !important; }
.board-write-bottom {
  display: flex;
  justify-content: flex-end;
  padding: 1.25rem 0;
}
.board-write-bottom button {
  padding: 0.75rem 2.25rem;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.board-write-bottom button:hover { background: #d32f2f; }

/* ===================================================
   FAQ 아코디언
=================================================== */
.faq-wrap { border-top: 2px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--border-soft); }
.faq-q {
  width: 100%;
  text-align: left;
  padding: 1.25rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
  font-family: inherit;
}
.faq-q:hover { color: var(--red); }
.faq-q-badge { font-size: 0.85rem; font-weight: 800; color: var(--red); flex-shrink: 0; margin-top: 2px; }
.faq-q-text  { flex: 1; text-align: left; line-height: 1.5; }
.faq-q-arrow { flex-shrink: 0; transition: transform 0.2s; color: #9ca3af; margin-top: 2px; }
.faq-item.open .faq-q-arrow { transform: rotate(180deg); }
.faq-a {
  display: none;
  padding: 0 0 1.25rem 2.25rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.9;
}
.faq-item.open .faq-a { display: block; }

/* ===================================================
   반응형
=================================================== */
@media (max-width: 768px) {
  .center-banner { height: 160px; }
  .center-banner h1 { font-size: 1.875rem; }
  .center-nav ul li a { padding: 14px 20px; font-size: 0.875rem; }
  .center-content { padding: 32px 1rem 60px; }
  .center-title h3 { font-size: 1.25rem; }
  .board-detail-top__info { flex-direction: column; gap: 6px; align-items: flex-start; }
  .input-label { flex-direction: column; }
  .input-label label { width: 100%; border-bottom: none; }
}
