﻿@charset "UTF-8";

.board-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100vh;
  padding: 10px 18px 18px;
  overflow: hidden;
  background: #fff;
}

.board-toolbar {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 10px;
}

.board-toolbar h2 {
  margin: 0;
  color: #ff641a;
  font-family: "Youth", "Jeju Gothic", "Malgun Gothic", sans-serif;
  font-size: 21px;
  font-weight: 700;
  white-space: nowrap;
}

.board-search {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  align-items: center;
  min-width: 0;
}

.board-search input {
  width: 340px;
  min-width: 220px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #ccc;
  border-radius: 7px;
  color: #222;
  background: #fff;
  font-size: 16px;
}

.board-search input:focus,
.board-editor:focus {
  border-color: #1a7cff;
  outline: 2px solid rgba(26, 124, 255, 0.18);
  outline-offset: 0;
}

.board-search button,
.board-form button,
.board-post-actions button,
.board-pager button {
  font-family: "Youth", "Jeju Gothic", "Malgun Gothic", sans-serif;
}

.board-search button {
  min-width: 76px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #9eacc6;
  border-radius: 7px;
  color: #fff;
  background: #9eacc6;
  font-size: 16px;
  cursor: pointer;
}

.board-search button:hover {
  background: #7f8fa9;
}

.board-search .board-primary-button {
  border-color: #ff4081;
  background: #ff4081;
}

.board-search .board-primary-button:hover {
  background: #e73373;
}

.board-board {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 16px;
  min-height: 0;
}

.board-board-list-only {
  grid-template-columns: minmax(0, 1fr);
}

.compliment-list-page .board-board-list-only {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
}

.compliment-list-page .board-list-panel {
  grid-column: 1 / -1;
  width: 100%;
}

.board-list-panel,
.board-editor-panel {
  min-height: 0;
  border: 1px solid #d6dce7;
  border-radius: 7px;
  background: #fff;
}

.board-list-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.board-list-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 45px;
  padding: 0 14px;
  border-bottom: 1px solid #edf0f5;
  color: #444;
  font-size: 16px;
}

.board-list {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 12px;
  background: #fafafa;
}

.board-empty,
.board-loading {
  display: grid;
  place-items: center;
  min-height: 220px;
  border: 1px solid #e5e5e5;
  border-radius: 7px;
  color: #ff4081;
  background: #fff;
  font-size: 18px;
}

.board-post {
  margin-left: calc(var(--depth, 0) * 30px);
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid #d6dce7;
  border-radius: 7px;
  background: #fff;
  color: #333;
}

.board-post.reply {
  border-color: #e2e6ee;
  background: #f4f7fb;
}

.board-post.active {
  border-color: #1a7cff;
  box-shadow: 0 0 0 2px rgba(26, 124, 255, 0.1);
}

.board-post-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 9px;
}

.board-post-title {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  min-width: 0;
}

.board-writer {
  color: #1a7cff;
  font-family: "Youth", "Jeju Gothic", "Malgun Gothic", sans-serif;
  font-size: 17px;
  font-weight: 700;
}

.board-reply-icon {
  color: #1a7cff;
  font-size: 17px;
  line-height: 1;
}

.board-badge {
  display: inline-block;
  padding: 3px 8px 2px;
  border: 1px solid #ff8040;
  border-radius: 6px;
  color: #ff8040;
  background: rgba(255, 128, 64, 0.15);
  font-size: 14px;
  line-height: 1.35;
}

.board-date {
  flex: 0 0 auto;
  color: #777;
  font-size: 14px;
  line-height: 1.4;
  text-align: right;
}

.board-date-inline {
  color: #555;
  font-size: 15px;
  line-height: 1.35;
}

.board-content {
  min-height: 48px;
  padding: 12px;
  border-radius: 7px;
  color: #333;
  background: #fff;
  font-size: 17px;
  line-height: 1.45;
  word-break: keep-all;
}

.board-post.reply .board-content {
  border: 1px solid #edf0f5;
}

.board-content p {
  margin: 0 0 8px;
}

.board-content p:last-child {
  margin-bottom: 0;
}

.board-content img {
  display: inline-block;
  max-width: min(260px, 100%);
  max-height: 260px;
  margin: 6px 8px 6px 0;
  border-radius: 7px;
  object-fit: contain;
  vertical-align: middle;
}

.board-post-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.board-menu-name {
  display: inline-block;
  min-width: 0;
  padding: 5px 9px 4px;
  border-radius: 6px;
  color: #6b5e00;
  background: #fff6bf;
  font-size: 15px;
  line-height: 1.35;
}

.board-post-actions {
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 6px;
}

.board-post-actions button {
  min-width: 76px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #d6dce7;
  border-radius: 7px;
  color: #333;
  background: #fff;
  font-size: 15px;
  cursor: pointer;
}

.board-post-actions button:hover {
  color: #fff;
  border-color: #333;
  background: #333;
}

.board-pager {
  display: flex;
  justify-content: center;
  gap: 6px;
  align-items: center;
  min-height: 58px;
  padding: 8px 12px;
  border-top: 1px solid #edf0f5;
  background: #fff;
}

.board-pager .span_paging {
  min-width: 42px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid #d6dce7;
  border-radius: 4px;
  color: #333;
  background: #fff;
  font-size: 16px;
  cursor: pointer;
}

.board-pager .span_paging:hover:not(:disabled),
.board-pager .span_paging.active {
  color: #fff;
  border-color: #333;
  background: #333;
}

.board-pager .span_paging:disabled {
  color: #aaa;
  background: #f5f5f5;
  cursor: default;
}

.board-pager .span_paging i {
  font-size: 17px;
  line-height: 1;
}

.board-editor-panel {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
}

.board-form-page-panel {
  flex: 1 1 auto;
  min-height: 0;
  border: 1px solid #d6dce7;
  border-radius: 7px;
  background: #fff;
  overflow: hidden;
}

.board-form-page-panel .board-form {
  height: 100%;
}

.board-editor-empty {
  display: grid;
  place-items: center;
  width: 100%;
  padding: 20px;
  color: #777;
  background: #fbfbfb;
  font-size: 18px;
  line-height: 1.5;
  text-align: center;
}

.board-form {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  width: 100%;
  min-height: 0;
  padding: 12px;
}

.board-form[hidden] {
  display: none;
}

.board-form-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.board-form-head h3 {
  margin: 0 0 4px;
  color: #1a7cff;
  font-size: 21px;
}

.board-form-head p {
  margin: 0;
  color: #777;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
}

.board-form-head button,
.board-editor-tools button,
.board-save-button {
  border: 1px solid #d6dce7;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}

.board-form-head button {
  min-width: 70px;
  min-height: 38px;
  color: #444;
  font-size: 15px;
}

.board-editor-tools {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  min-height: 42px;
}

.board-editor-tools button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  color: #333;
  font-size: 15px;
}

.board-editor-tools img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

#boardSaveStatus {
  display: none;
}

.board-toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}

.board-toast {
  min-width: 180px;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 7px;
  color: #fff;
  background: rgba(17, 24, 39, 0.92);
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
}

.board-toast.success {
  background: rgba(46, 125, 50, 0.95);
}

.board-toast.error {
  background: rgba(217, 48, 37, 0.95);
}

.board-editor {
  min-height: 0;
  padding: 12px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid #cfd6e3;
  border-radius: 7px;
  color: #222;
  background: #fff;
  font-size: 17px;
  line-height: 1.5;
}

.board-editor:empty::before {
  content: "내용을 입력하세요.";
  color: #aaa;
}

.board-editor img {
  display: inline-block;
  max-width: 100%;
  max-height: 260px;
  margin: 6px 0;
  border-radius: 7px;
  object-fit: contain;
}

.board-save-button {
  min-height: 48px;
  color: #fff;
  border-color: #1a7cff;
  background: #1a7cff;
  font-size: 18px;
}

.board-form-actions {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(160px, 1fr);
  gap: 10px;
}

.board-form-actions button {
  min-height: 48px;
  border-radius: 7px;
  font-size: 18px;
}

.board-save-button:disabled,
.board-search button:disabled,
.board-post-actions button:disabled,
.board-editor-tools button:disabled {
  opacity: 0.55;
  cursor: default;
}

@media (max-width: 1200px) {
  .board-board:not(.board-board-list-only) {
    grid-template-columns: minmax(0, 1fr) 380px;
  }

  .board-search input {
    width: 260px;
  }
}

