/* 카드 스타일 */
.board-card {
  background: #f9fafb;
  border-radius: 18px;
  box-shadow: 0 6px 32px 0 rgba(30,41,59,0.10);
  margin-bottom: 36px;
  padding: 0 0 18px 0;
  border: none;
  position: relative;
  overflow: hidden;
}
.board-card .card-bar {
  height: 4px;
  width: 100%;
  background: var(--card-bar, #334155);
}
.board-card h4 {
  font-size: 1.5rem;
  font-weight: 900;
  margin: 14px 0 14px 0;
  text-align: left;
  color: #1e293b;
  letter-spacing: -0.03em;
  line-height: 1.18;
  padding-left: 12px;
  padding-right: 0;
  text-shadow: 0 2px 8px rgba(30,41,59,0.07);
  border-bottom: 2px solid #e5e7eb;
  background: none;
  display: block;
  width: 100%;
}

/* 테이블 */
table.display.dataTable {
  width: 100% !important;
  border: none;
  font-family: 'Pretendard', 'Noto Sans KR', Arial, sans-serif;
  font-size: 1.05rem;
  background: none;
}
table.display.dataTable thead th {
  background: #fff;
  color: #222;
  font-weight: 800;
  border-bottom: 2px solid #e5e7eb;
  font-size: 1.08rem;
  padding: 14px 12px;
  letter-spacing: -0.01em;
}
table.display.dataTable td {
  background: none;
  color: #222;
  font-weight: 500;
  padding: 13px 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  transition: background 0.13s;
}
table.display.dataTable tbody tr:last-child td {
  border-bottom: none;
}
table.display.dataTable tbody tr:hover td {
  background: #f3f4f6;
}
table.display.dataTable td:last-child, table.display.dataTable th:last-child {
  text-align: right;
}

/* 제목 셀 말줄임 */
.title-cell {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 1px;
}

/* 작성자 flex 한 줄 */
.author-flex {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}
.avatar {
  margin-right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.author-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  flex: none;
  width: auto;
  cursor: pointer;
}

/* 반응형 */
@media (max-width: 900px) {
  .board-card { padding: 8px 0 6px 0; }
  table.display.dataTable thead th, table.display.dataTable td { font-size: 12px; padding: 7px 4px; }
  .avatar { width: 20px; height: 20px; font-size: 12px; margin-right: 4px; }
}
@media (max-width: 600px) {
  .board-card { padding: 3px 0 2px 0; margin-bottom: 10px; border-radius: 7px; }
  table.display.dataTable thead th, table.display.dataTable td { font-size: 10px; padding: 3px 2px; }
  .avatar { width: 15px; height: 15px; font-size: 9px; margin-right: 2px; }
}

.board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 7px 0 7px 0;
  padding: 0 12px;
}
.board-header h4 {
  font-size: 1.5rem;
  font-weight: 900;
  color: #1e293b;
  letter-spacing: -0.03em;
  line-height: 1.18;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  text-shadow: 0 2px 8px rgba(30,41,59,0.07);
}
.more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 2rem;
  color: #64748b;
  background: transparent;
  border: none;
  transition: background 0.15s;
  cursor: pointer;
  text-decoration: none;
}
.more-btn:hover {
  background: #e5e7eb;
  color: #222;
}
table.display.dataTable th:nth-child(2),
table.display.dataTable th:nth-child(3),
table.display.dataTable th:nth-child(4),
table.display.dataTable td:nth-child(2),
table.display.dataTable td:nth-child(3),
table.display.dataTable td:nth-child(4) {
  text-align: right;
}

.title-flex {
    display: flex;
    align-items: center;
    gap: 2px;
    min-width: 0;
}
.post-title-text {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 0;
    cursor: pointer;
}
.comment-count {
    color: #ff5252;
    font-size: 0.95em;
    font-weight: bold;
    margin-left: 4px;
    background: #fff0f0;
    border-radius: 8px;
    padding: 1px 6px;
    vertical-align: middle;
    display: inline-block;
    flex-shrink: 0;
}
.lock-icon {
    margin-left: 2px;
    flex-shrink: 0;
}

.author-menu-popup {
    /* 기존 스타일 유지 */
}
.author-menu-item {
    transition: background 0.15s, color 0.15s;
    cursor: pointer;
}
.author-menu-item:hover, .author-menu-item:focus {
    background: #f3f4f6;
    color: #222;
}

