/* ===================================================
   오피요 게시판 스킨
   디자인 철학: #33435e 네이비, 직선/각진, 보더 프레임, 미니멀
   =================================================== */

/* ===== 커뮤니티 헤더 ===== */
.community-header {
  background: #33435e;
  color: #fff;
  padding: 14px 16px;
  margin-bottom: 0;
}
.community-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: #fff;
}
.community-title strong {
  color: #f59e0b;
}

/* ===== 커뮤니티 메뉴 탭 ===== */
.community-list {
  margin-bottom: 15px;
  border: 2px solid #33435e;
  border-top: 0;
}
.comm-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.comm-list li {
  flex: 1;
  margin: 0;
  padding: 0;
  border-left: 1px solid #dde1e8;
}
.comm-list li:first-child {
  border-left: 0;
}
.comm-menu-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 8px;
  background: #fff;
  color: #33435e;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
  cursor: pointer;
}
.comm-menu-item:hover {
  background: #ebeef3;
}
.comm-menu-item.active {
  background: #33435e;
  color: #fff;
}
.comm-menu-icon {
  font-size: 16px;
  line-height: 1;
}

/* ===== 게시판 컨테이너 ===== */
.board-container {
  min-height: 400px;
}
.board-wrapper {
  max-width: 100%;
}
.board-box {
  background: #fff;
  border: 2px solid #33435e;
}

/* ===== PC 테이블 ===== */
.board-table-wrapper {
  display: block;
}
.board-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.board-table thead th {
  background: #f3f4f6;
  color: #33435e;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 8px;
  text-align: center;
  border-bottom: 2px solid #33435e;
}
.board-col-no { width: 60px; }
.board-col-title { width: auto; }
.board-col-author { width: 120px; }
.board-col-date { width: 100px; }
.board-col-hit { width: 60px; }

.board-table tbody tr {
  border-bottom: 1px solid #eee;
  transition: background 0.1s;
}
.board-table tbody tr:hover {
  background: #f9fafb;
}
.board-table tbody td {
  padding: 9px 8px;
  font-size: 12px;
  color: #333;
  text-align: center;
  vertical-align: middle;
}

/* 공지 행 */
.board-item-notice {
  background: #f0f4ff;
}
.board-item-notice:hover {
  background: #e8eeff !important;
}

/* 번호 */
.board-no {
  color: #999;
  font-size: 11px;
}
.board-notice-badge {
  display: inline-block;
  background: #33435e;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
}

/* 제목 */
.board-col-title {
  text-align: left !important;
}
.board-item-link {
  text-decoration: none;
  color: #333;
}
.board-item-link:hover {
  color: #33435e;
}
.board-title-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}
.board-subject {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 댓글 뱃지 */
.board-comment-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #e53e3e;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

/* 작성자 */
.board-author-wrapper {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
}
.board-level {
  display: inline-block;
  background: #33435e;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
}
.board-author {
  font-size: 12px;
  color: #555;
}

/* 날짜/조회 */
.board-date {
  font-size: 11px;
  color: #999;
}
.board-hit-wrapper {
  text-align: center;
}
.board-hit {
  font-size: 11px;
  color: #999;
}

/* 빈 게시판 */
.board-empty {
  text-align: center;
  padding: 60px 20px !important;
}
.board-empty-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 13px;
}
.board-empty-content p {
  margin: 0;
}
.board-empty-icon {
  font-size: 36px;
  display: block;
  margin-bottom: 10px;
  color: #ccc;
}

/* ===== 모바일 리스트 ===== */
.board-list-mobile {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}
.board-item-mobile {
  border-bottom: 1px solid #eee;
}
.board-item-mobile.board-item-notice {
  background: #f0f4ff;
}
.board-item-link-mobile {
  display: block;
  padding: 12px;
  text-decoration: none;
  color: #333;
}
.board-item-header-mobile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.board-item-meta-mobile {
  display: flex;
  align-items: center;
  gap: 6px;
}
.board-no-mobile {
  font-size: 11px;
  color: #999;
}
.board-item-info-mobile {
  display: flex;
  align-items: center;
  gap: 8px;
}
.board-author-wrapper-mobile {
  display: flex;
  align-items: center;
  gap: 3px;
}
.board-author-mobile {
  font-size: 11px;
  color: #666;
}
.board-date-mobile {
  font-size: 10px;
  color: #999;
}
.board-item-title-mobile {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.board-subject-mobile {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}
.board-comment-badge-mobile {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #e53e3e;
  font-size: 11px;
  font-weight: 700;
}
.board-item-footer-mobile {
  display: flex;
  align-items: center;
}
.board-hit-wrapper-mobile {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: #999;
}
.board-hit-icon {
  font-size: 13px;
}
.board-hit-mobile {
  font-size: 11px;
}
.board-empty-mobile {
  padding: 60px 20px;
  text-align: center;
}

@media (max-width: 768px) {
  .board-table-wrapper { display: none; }
  .board-list-mobile { display: block; }
  .comm-list { flex-wrap: wrap; }
  .comm-list li { flex: none; }
  .comm-menu-item { padding: 8px 12px; font-size: 11px; }
}

/* ===== 게시판 하단 (글쓰기/검색/페이징) ===== */
.board-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  border-top: 1px solid #eee;
  gap: 10px;
}
.board-actions {
  flex-shrink: 0;
}
.board-write-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  background: #33435e;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
}
.board-write-btn:hover {
  background: #2a3750;
}

/* 검색 */
.board-search {
  flex: 1;
  max-width: 400px;
}
.board-search-form {
  display: flex;
  gap: 0;
}
.board-search-select-wrapper {
  flex-shrink: 0;
}
.board-search-select {
  height: 34px;
  padding: 0 8px;
  border: 1px solid #ddd;
  border-right: 0;
  font-size: 12px;
  color: #333;
  background: #f7f8fa;
  outline: none;
}
.board-search-input-wrapper {
  flex: 1;
  display: flex;
}
.board-search-input {
  flex: 1;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #ddd;
  font-size: 12px;
  outline: none;
  min-width: 0;
}
.board-search-input:focus {
  border-color: #33435e;
}
.board-search-btn {
  width: 34px;
  height: 34px;
  background: #33435e;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.board-search-btn:hover {
  background: #2a3750;
}

/* 페이징 */
.board-paging {
  padding: 15px;
  text-align: center;
  border-top: 1px solid #eee;
}
.board-paging .pagination {
  display: inline-flex;
  gap: 3px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.board-paging .pagination li a,
.board-paging .pagination li span {
  display: inline-block;
  min-width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  font-size: 12px;
  color: #555;
  border: 1px solid #ddd;
  text-decoration: none;
  transition: all 0.15s;
}
.board-paging .pagination li a:hover {
  background: #ebeef3;
  border-color: #33435e;
}
.board-paging .pagination li.active span,
.board-paging .pagination .active span {
  background: #33435e;
  color: #fff;
  border-color: #33435e;
  font-weight: 700;
}
.board-paging .pagination li.disabled span {
  color: #ccc;
  border-color: #eee;
}

/* ===== 게시글 보기 ===== */
.board-view-header {
  padding: 15px;
  border-bottom: 2px solid #33435e;
}
.board-view-title {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin-bottom: 10px;
  line-height: 1.4;
}
.board-view-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.board-view-author {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #555;
}
.board-view-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.board-view-stat {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: #999;
}

/* 본문 */
.board-view-content {
  padding: 20px 15px;
  min-height: 200px;
  font-size: 14px;
  line-height: 1.8;
  color: #333;
  border-bottom: 1px solid #eee;
  word-break: break-word;
}
.board-view-content img {
  max-width: 100%;
  height: auto;
}
.board-view-content pre {
  background: #f7f8fa;
  border: 1px solid #ddd;
  padding: 12px;
  overflow-x: auto;
  font-size: 13px;
}

/* 추천/비추천 */
.board-view-reactions {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid #eee;
}
.board-reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 20px;
  border: 2px solid #ddd;
  background: #fff;
  color: #888;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.board-reaction-good:hover,
.board-reaction-good.active {
  border-color: #33435e;
  background: #33435e;
  color: #fff;
}
.board-reaction-bad:hover,
.board-reaction-bad.active {
  border-color: #e53e3e;
  background: #e53e3e;
  color: #fff;
}

/* 글 하단 버튼 */
.board-view-actions {
  display: flex;
  justify-content: space-between;
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
}
.board-view-actions a,
.board-view-actions button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #ddd;
  background: #fff;
  color: #555;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
}
.board-view-actions a:hover,
.board-view-actions button:hover {
  background: #33435e;
  color: #fff;
  border-color: #33435e;
}
.board-btn-delete {
  color: #e53e3e !important;
  border-color: #e53e3e !important;
}
.board-btn-delete:hover {
  background: #e53e3e !important;
  color: #fff !important;
}

/* ===== 댓글 ===== */
.board-comment-section {
  padding: 15px;
  background: #f9fafb;
}
.board-comment-title {
  font-size: 13px;
  font-weight: 700;
  color: #33435e;
  padding-bottom: 10px;
  border-bottom: 2px solid #33435e;
  margin-bottom: 12px;
}
.board-comment-list {
  margin-bottom: 15px;
}
.board-comment-item {
  background: #fff;
  border: 1px solid #eee;
  padding: 10px 12px;
  margin-bottom: 6px;
}
.board-comment-reply {
  margin-left: 20px;
}
.board-comment-header-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.board-comment-author {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #333;
}
.board-comment-date {
  font-size: 11px;
  color: #999;
}
.board-comment-content {
  font-size: 13px;
  color: #444;
  line-height: 1.6;
  margin-bottom: 6px;
}
.board-comment-actions {
  display: flex;
  gap: 8px;
}
.board-comment-actions button,
.board-comment-actions a {
  font-size: 11px;
  color: #888;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.board-comment-actions button:hover,
.board-comment-actions a:hover {
  color: #33435e;
}
.board-comment-empty {
  text-align: center;
  padding: 30px;
  color: #999;
  font-size: 12px;
}

/* 댓글 폼 */
.board-comment-form {
  background: #fff;
  border: 1px solid #ddd;
  padding: 12px;
}
.board-comment-form-header {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.board-comment-guest-field {
  flex: 1;
}
.board-comment-guest-field input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #ddd;
  font-size: 12px;
  box-sizing: border-box;
}
.board-comment-input-wrapper {
  display: flex;
  gap: 8px;
}
.board-comment-input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #ddd;
  font-size: 12px;
  resize: none;
  min-height: 36px;
  outline: none;
}
.board-comment-input:focus {
  border-color: #33435e;
}
.board-comment-submit {
  padding: 8px 18px;
  background: #33435e;
  color: #fff;
  border: none;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}
.board-comment-submit:hover {
  background: #2a3750;
}

/* ===== 글쓰기 ===== */
.board-write-header {
  background: #33435e;
  color: #fff;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
}
.board-write-form {
  padding: 15px;
}
.board-write-subject {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  font-size: 14px;
  box-sizing: border-box;
  margin-bottom: 10px;
  outline: none;
}
.board-write-subject:focus {
  border-color: #33435e;
}
.board-write-editor {
  border: 1px solid #ddd;
  margin-bottom: 12px;
  min-height: 400px;
}
.board-write-editor .ql-toolbar {
  border: none;
  border-bottom: 1px solid #ddd;
  background: #f7f8fa;
}
.board-write-editor .ql-container {
  border: none;
  font-size: 14px;
}
.board-write-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.board-write-actions button,
.board-write-actions a {
  padding: 9px 24px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}
.board-write-submit {
  background: #33435e;
  color: #fff;
}
.board-write-submit:hover {
  background: #2a3750;
}
.board-write-cancel {
  background: #fff;
  color: #555;
  border: 1px solid #ddd !important;
}
.board-write-cancel:hover {
  background: #f3f4f5;
}

/* ===== 웹진 그리드 ===== */
.board-webzine-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 15px;
}
.board-webzine-item {
  border: 1px solid #eee;
  transition: border-color 0.15s;
}
.board-webzine-item:hover {
  border-color: #33435e;
}
.board-webzine-item a {
  display: block;
  text-decoration: none;
  color: #333;
}
.board-webzine-image {
  height: 160px;
  overflow: hidden;
  background: #f3f4f6;
}
.board-webzine-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.board-webzine-noimage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 36px;
}
.board-webzine-content {
  padding: 10px 12px;
}
.board-webzine-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.board-webzine-summary {
  font-size: 11px;
  color: #888;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}
.board-webzine-meta {
  display: flex;
  gap: 8px;
  font-size: 10px;
  color: #999;
}

@media (max-width: 768px) {
  .board-webzine-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 10px;
  }
}

/* ===== 갤러리 그리드 ===== */
.board-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 15px;
}
.board-gallery-item {
  border: 1px solid #eee;
  transition: border-color 0.15s;
}
.board-gallery-item:hover {
  border-color: #33435e;
}
.board-gallery-item a {
  display: block;
  text-decoration: none;
  color: #333;
}
.board-gallery-image {
  height: 180px;
  overflow: hidden;
  background: #f3f4f6;
}
.board-gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.board-gallery-noimage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 42px;
}
.board-gallery-title {
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-top: 1px solid #eee;
}
.board-gallery-meta {
  padding: 0 10px 8px;
  font-size: 10px;
  color: #999;
  display: flex;
  gap: 6px;
}

@media (max-width: 768px) {
  .board-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 10px;
  }
  .board-gallery-image { height: 140px; }
}

/* ===== 출석부 ===== */
.attendance-header {
  background: #33435e;
  color: #fff;
  padding: 15px;
}
.attendance-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}
.attendance-streak {
  font-size: 12px;
  opacity: 0.8;
}
.attendance-form {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.attendance-form input {
  flex: 1;
  padding: 8px 10px;
  border: none;
  font-size: 12px;
}
.attendance-form button {
  padding: 8px 16px;
  background: #f59e0b;
  color: #fff;
  border: none;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.attendance-calendar {
  border: 2px solid #33435e;
  border-top: 0;
}
.calendar-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #f3f4f6;
  border-bottom: 1px solid #ddd;
}
.calendar-header span {
  text-align: center;
  padding: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #555;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.calendar-day {
  text-align: center;
  padding: 10px 4px;
  font-size: 12px;
  border-right: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}
.calendar-day.attended {
  background: #33435e;
  color: #fff;
  font-weight: 700;
}
.calendar-day.today {
  border: 2px solid #f59e0b;
}
.attendance-messages {
  border: 2px solid #33435e;
  border-top: 0;
  max-height: 300px;
  overflow-y: auto;
}
.attendance-message-item {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 12px;
}
.attendance-message-rank {
  color: #f59e0b;
  font-weight: 700;
  flex-shrink: 0;
}
.attendance-message-nick {
  color: #33435e;
  font-weight: 600;
  flex-shrink: 0;
}
.attendance-message-text {
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
