/* 문의 게시판 (board.html) */
.board-page { background: var(--soft); }
.board-page .site-header { background: rgba(255,255,255,.95); }
.board-hero {
  padding: calc(72px + 64px + env(safe-area-inset-top)) 0 56px; color: var(--white);
  background:
    radial-gradient(700px 360px at 90% 0%, rgba(47,139,216,.35), transparent 60%),
    linear-gradient(160deg, var(--navy-700), var(--navy-900));
}
.board-hero h1 { margin: 14px 0 10px; font-size: clamp(30px, 4vw, 42px); letter-spacing: -.03em; }
.board-hero p { margin: 0; max-width: 620px; color: rgba(255,255,255,.75); }
.board-hero b { color: var(--white); }
.board-main { padding: 40px 0 0; min-height: 50vh; }
.board-main .wrap { max-width: 920px; }
.board-page footer { margin-top: 96px; }

.admin-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 18px; padding: 12px 16px;
  border-radius: 12px; background: #fff7e6; border: 1px solid #f5d79a; color: #7a5200; font-size: 14px;
}
.admin-bar[hidden] { display: none; }
.admin-bar span { flex: 1; }
.admin-bar button { font: inherit; font-size: 13px; padding: 6px 12px; border-radius: 8px; border: 1px solid #e2c27a; background: #fff; color: #7a5200; cursor: pointer; }

.board-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.board-count { color: var(--muted); font-size: 15px; }
.board-count b { color: var(--ink); }
.board-tip { margin: 0 0 18px; font-size: 14px; color: var(--muted); }

.btn-board {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 11px 18px; border-radius: 10px;
  font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
  color: var(--body); background: var(--white); border: 1px solid var(--line); transition: background .2s, border-color .2s;
}
.btn-board:hover { border-color: #c9d4e2; }
.btn-board svg { width: 17px; height: 17px; }
.btn-board.primary { color: var(--white); background: var(--blue-500); border-color: var(--blue-500); }
.btn-board.primary:hover { background: var(--blue-600); }
.btn-board.danger { color: #c62828; }
.btn-board.danger:hover { border-color: #f0b4b4; background: #fff5f5; }
.btn-board:disabled { opacity: .7; cursor: default; }
.spin { width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.board-loading, .board-empty {
  display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center;
  padding: 72px 20px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); color: var(--muted);
}
.board-list { list-style: none; margin: 0; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.board-list li + li { border-top: 1px solid var(--line); }
.board-list a {
  display: grid; grid-template-columns: 48px 104px 1fr auto 84px; align-items: center; gap: 14px;
  padding: 16px 20px; text-decoration: none; color: var(--body); transition: background .15s;
}
.board-list a:hover { background: #f8fbfe; }
.board-list .no { color: var(--muted); font-size: 13px; text-align: center; }
.cat { display: inline-block; justify-self: start; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #eaf3fc; color: var(--blue-600); white-space: nowrap; }
.board-list .title { display: flex; align-items: center; gap: 7px; min-width: 0; color: var(--ink); font-weight: 500; }
.board-list .title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-list .title svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--muted); }
.board-list .meta { display: flex; gap: 12px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.state { justify-self: end; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #f1f3f6; color: var(--muted); white-space: nowrap; }
.state.done { background: #e6f6ec; color: #1b7a3d; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 22px; }
.pager a { min-width: 36px; padding: 7px 10px; text-align: center; border-radius: 8px; text-decoration: none; color: var(--body); background: var(--white); border: 1px solid var(--line); }
.pager a.on { color: var(--white); background: var(--blue-500); border-color: var(--blue-500); }

.back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 14px; color: var(--muted); text-decoration: none; font-size: 14px; }
.back svg { width: 16px; height: 16px; }
.back:hover { color: var(--blue-500); }

.board-form, .post { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.board-form h2 { margin: 0 0 20px; font-size: 24px; color: var(--ink); }
.board-form label { display: block; margin-bottom: 18px; font-size: 14px; font-weight: 600; color: var(--ink); position: relative; }
.board-form input, .board-form select, .board-form textarea, .unlock input, .reply-form textarea {
  display: block; width: 100%; margin-top: 7px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); background: var(--white); transition: border-color .2s, box-shadow .2s;
}
.board-form input:focus, .board-form select:focus, .board-form textarea:focus, .unlock input:focus, .reply-form textarea:focus {
  outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(47,139,216,.15);
}
.board-form textarea, .reply-form textarea { resize: vertical; line-height: 1.6; }
.board-form .count { position: absolute; right: 2px; top: 0; font-size: 12px; font-weight: 400; color: var(--muted); }
.board-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.board-form .hint { margin: -8px 0 20px; font-size: 13px; color: var(--muted); }
.board-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { display: flex; gap: 12px; margin-bottom: 22px; padding: 14px 16px; border-radius: 12px; background: #f2f7fd; color: var(--body); font-size: 14px; }
.notice svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--blue-500); }
.consent { margin: 4px 0 18px; }
.consent-box { padding: 14px 16px; border-radius: 12px; background: var(--soft); font-size: 13px; color: var(--muted); }
.consent-box b { color: var(--ink); font-size: 14px; }
.consent-box ul { margin: 6px 0; padding-left: 18px; }
.board-form label.check { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-weight: 500; cursor: pointer; }
.board-form label.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue-500); }
.form-error { min-height: 22px; margin-bottom: 8px; color: #c62828; font-size: 14px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }

.post-head { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.post-head h2 { margin: 10px 0 10px; font-size: 24px; line-height: 1.4; color: var(--ink); word-break: break-all; }
.post-head .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 14px; color: var(--muted); }
.post-head .state { justify-self: auto; }
.unlock { text-align: center; padding: 40px 0 8px; }
.unlock > svg { width: 36px; height: 36px; color: var(--blue-500); }
.unlock p { margin: 10px 0 18px; color: var(--body); }
.unlock-row { display: flex; gap: 8px; max-width: 380px; margin: 0 auto; }
.unlock-row input { margin: 0; }
.unlock .form-error { margin-top: 10px; }
.done-banner { margin-top: 20px; padding: 14px 16px; border-radius: 12px; background: #e6f6ec; color: #1b5e33; font-size: 14px; }
.post-content { padding: 26px 0; white-space: pre-wrap; word-break: break-word; font-size: 16px; color: var(--ink); min-height: 80px; }
.reply { padding: 20px 22px; border-radius: 14px; background: #f2f7fd; border: 1px solid #d6e6f7; }
.reply.empty { background: var(--soft); border-color: var(--line); }
.reply-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 15px; color: var(--ink); }
.reply-head img { height: 18px; width: auto; }
.reply-head span { margin-left: auto; font-size: 13px; color: var(--muted); }
.reply p { margin: 0; color: var(--muted); font-size: 15px; }
.reply-content { white-space: pre-wrap; word-break: break-word; font-size: 15px; color: var(--ink); }
.reply-form { margin-top: 22px; }
.reply-form label { font-size: 14px; font-weight: 600; color: var(--ink); }
.reply-form .form-actions { margin-top: 10px; }
.post-actions { display: flex; justify-content: space-between; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }

@media (max-width: 760px) {
  .board-hero { padding: calc(72px + 40px + env(safe-area-inset-top)) 0 40px; }
  .board-main { padding-top: 24px; }
  .board-list a { grid-template-columns: 1fr auto; grid-template-areas: "cat state" "title title" "meta meta"; gap: 6px 10px; padding: 16px; }
  .board-list .no { display: none; }
  .board-list .cat { grid-area: cat; }
  .board-list .state { grid-area: state; }
  .board-list .title { grid-area: title; }
  .board-list .meta { grid-area: meta; }
  .board-form, .post { padding: 24px 18px; border-radius: 16px; }
  .board-form .two { grid-template-columns: 1fr; }
  .post-head h2 { font-size: 20px; }
  .board-page footer { margin-top: 64px; }
}

/* 로그인(선택) */
.account { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 24px; }
.google-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; border: 1px solid #dadce0;
  background: #fff; color: #3c4043; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: box-shadow .2s;
}
.google-btn:hover { box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.google-btn svg { width: 18px; height: 18px; }
.account-tip { font-size: 13px; color: rgba(255,255,255,.65); }
.account-me { display: inline-flex; align-items: center; gap: 10px; color: var(--white); }
.account-me img { width: 34px; height: 34px; border-radius: 50%; }
.account-me b { font-size: 15px; }
.account-me em { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: #ffd56b; color: #5a3d00; margin-left: 4px; }
.account-me small { display: block; font-size: 12px; color: rgba(255,255,255,.6); }
.link-btn { padding: 0; border: 0; background: none; font: inherit; font-size: 14px; color: var(--blue-500); text-decoration: underline; cursor: pointer; }
.account .link-btn { color: rgba(255,255,255,.8); }
.login-note { display: flex; gap: 12px; margin-bottom: 22px; padding: 14px 16px; border-radius: 12px; background: #eef7ee; color: var(--body); font-size: 14px; }
.login-note.soft { background: var(--soft); }
.login-note svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.unlock .google-btn { margin-top: 4px; }
.mine-tag { font-style: normal; flex-shrink: 0; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: #e6f6ec; color: #1b7a3d; }
.board-list li.mine a { background: #fbfefc; }
.board-search { display: flex; gap: 8px; margin-bottom: 12px; }
.board-search input {
  flex: 1; min-width: 0; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--white);
  font: inherit; font-size: 16px; color: var(--ink);
}
.board-search input:focus { outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(47,139,216,.15); }
.board-search .btn-board { padding: 11px 14px; }

/* 문의 종류 탭 (임대 문의 / 앱·개발 문의) */
.board-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 16px; }
.board-tabs a { padding: 9px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.32); color: rgba(255,255,255,.88); font-weight: 600; font-size: 15px; text-decoration: none; }
.board-tabs a:hover { background: rgba(255,255,255,.1); }
.board-tabs a[aria-current="page"] { background: #fff; color: var(--navy-800); border-color: #fff; }
.hint-inline { margin-left: 6px; font-size: 13px; font-weight: 400; color: var(--muted); }
