
.board-wrap {
    max-width: 1000px;
    margin: auto;
    font-size: 13px;
}
.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.board-controls .write-btn {
    background-color: #43a047;
    color: white;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 3px;
    text-decoration: none;
}
.board-table {
    border-top: 1px solid #444;
}
.board-table-header, .board-table-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #2a2a2a;
    padding: 8px 0;
}
.board-table-header {
    background-color: #1e1e1e;
    font-weight: bold;
    color: #bbb;
}
.board-table-row.pinned {
    background-color: #2a2a2a;
}
.board-table-row:hover {
    background-color: #252525;
}
.board-tabs {
    display: flex;
    gap: 8px;
    padding: 10px 0 15px;
    border-bottom: 1px solid #444;
    margin-bottom: 10px;
}
.board-tabs a {
    color: #aaa;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 13px;
}
.board-tabs a.active {
    background-color: #3949ab;
    color: white;
}
.board-tabs a:hover {
    background-color: #555;
    color: white;
}

.board-table .col-num { width: 6%; text-align: center; }
.board-table .col-cat { width: 10%; text-align: center; }
.board-table .col-title { flex: 1; text-align: left; padding-left: 10px; }
.board-table .col-user { width: 13%; text-align: center; }
.board-table .col-date { width: 13%; text-align: center; }
.board-table .col-views { width: 8%; text-align: center; }
.board-table .col-likes { width: 8%; text-align: center; }

.cat-badge {
    background-color: #555;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
}

.board-bottom-controls {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}
.search-form {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}
.search-form input[type="text"] {
    background-color: #1e1e1e;
    border: 1px solid #444;
    color: white;
    padding: 4px;
}
.search-form select {
    background-color: #1e1e1e;
    border: 1px solid #444;
    color: white;
    padding: 4px;
}
.search-form button {
    background-color: #3949ab;
    color: white;
    border: none;
    padding: 4px 12px;
    cursor: pointer;
}
.pagination {
    display: flex;
    list-style: none;
    gap: 6px;
    padding-left: 0;
}
.pagination li {
    padding: 4px 8px;
    background-color: #1e1e1e;
    border: 1px solid #444;
}
.pagination li.active {
    background-color: #3949ab;
}
.pagination li a {
    text-decoration: none;
    color: white;
    font-size: 13px;
}

.write-wrap {
    max-width: 800px;
    margin: auto;
    font-size: 13px;
}
.write-wrap h3 {
    font-size: 18px;
    margin-bottom: 15px;
}
.write-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-row label {
    font-weight: bold;
    color: #ccc;
}
.write-form input[type="text"],
.write-form select,
.write-form textarea,
.write-form input[type="file"] {
    background-color: #1e1e1e;
    color: white;
    border: 1px solid #444;
    padding: 8px;
}
.write-form textarea {
    resize: vertical;
}
.form-actions {
    display: flex;
    gap: 10px;
}
.btn-save {
    background-color: #3949ab;
    color: white;
    border: none;
    padding: 8px 14px;
}
.btn-cancel {
    background-color: #616161;
    color: white;
    padding: 8px 14px;
    text-decoration: none;
}


.write-container {
    max-width: 900px;
    margin: auto;
    font-size: 13px;
}
.write-title {
    font-size: 18px;
    margin-bottom: 20px;
}
.write-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.write-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.write-field label {
    font-weight: bold;
    color: #ccc;
}
.write-field input[type="text"],
.write-field select,
.write-field textarea,
.write-field input[type="file"] {
    background-color: #1e1e1e;
    color: white;
    border: 1px solid #444;
    padding: 8px;
    font-size: 13px;
}
.file-info {
    font-size: 12px;
    color: #888;
}
.write-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}
.btn-arc-submit {
    background-color: #3949ab;
    color: white;
    border: none;
    padding: 8px 16px;
}
.btn-arc-cancel {
    background-color: #616161;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
}


.form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: #1a1a1a;
    padding: 20px;
    border: 1px solid #333;
    border-radius: 6px;
}
.form-header {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #fff;
}
.form-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-row label {
    font-size: 14px;
    color: #ccc;
}
.form-row input[type="text"],
.form-row select,
.form-row textarea,
.form-row input[type="file"] {
    background-color: #1e1e1e;
    color: white;
    border: 1px solid #444;
    padding: 8px;
    font-size: 13px;
}
.form-row textarea {
    resize: vertical;
}
.file-info {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}
.form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}
.btn-arc-submit {
    background-color: #3949ab;
    color: white;
    border: none;
    padding: 8px 16px;
}
.btn-arc-cancel {
    background-color: #616161;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
}

/* 추가사항 */

.post-wrapper {
    max-width: 900px;
    margin: auto;
    padding: 20px;
    font-size: 13px;
}

.post-title {
    font-size: 20px;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
}

.post-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
}

.post-category {
    background-color: #444;
    color: #eee;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
}

.post-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-arc-small {
    background-color: #555;
    color: white;
    padding: 6px 12px;
    font-size: 13px;
    border: none;
    text-decoration: none;
}

.post-content {
    background-color: #1e1e1e;
    padding: 15px;
    border: 1px solid #333;
    border-radius: 4px;
    margin-bottom: 20px;
    color: #ddd;
    line-height: 1.5;
    white-space: pre-wrap;
}

.post-reactions {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.btn-arc-reaction {
    background-color: #666;
    color: white;
    padding: 6px 14px;
    border: none;
    font-size: 13px;
}

.comment-section {
    margin-top: 20px;
}

.comment-header {
    font-size: 15px;
    margin-bottom: 10px;
    color: #ddd;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.comment-form textarea {
    background-color: #1e1e1e;
    color: white;
    border: 1px solid #444;
    padding: 8px;
    font-size: 13px;
}

.comment {
    padding: 10px;
    background-color: #111;
    border: 1px solid #333;
    margin-bottom: 10px;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 8px; /* ✅ 유저네임과 날짜 간격 */
  font-size: 13px;
  color: #ccc;
}

.comment-meta a {
  font-weight: bold;
  color: #5c9eff;
}

/*
.comment-meta {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 4px;
}

.comment-meta a {
    color: #5c9eff;
    margin-left: 4px;
    font-size: 12px;
}*/

.comment-edit,
.comment-delete {
    margin-left: 10px;
    color: #888;
    font-size: 12px;
}

.comment-content {
    font-size: 13px;
    color: #ddd;
}

.divider {
    border-color: #444;
    margin: 30px 0;
}



/* 첨부 이미지/영상 출력 */
.post-file img,
.post-file video {
    max-width: 100%;
    margin-top: 15px;
    border-radius: 6px;
    background: #000;
}

/* 추천/비추천 버튼 */
.btn-arc-reaction {
    background-color: #303f9f;
    color: white;
    padding: 6px 14px;
    border: none;
    font-size: 13px;
    border-radius: 4px;
}

/* 대댓글 스타일 */
.comment.reply {
    margin-left: 30px;
    background-color: #0d0d0d;
}

/* 대댓글 입력 폼 */
.reply-form {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.reply-form textarea {
    font-size: 13px;
    padding: 6px;
    background-color: #1e1e1e;
    border: 1px solid #333;
    color: white;
}
.reply-btn {
    width: fit-content;
    padding: 5px 10px;
    background-color: #5c6bc0;
    color: white;
    border: none;
    font-size: 12px;
}

.custom-editor {
  background-color: #1e1e1e;
  color: white;
  border: 1px solid #444;
  padding: 10px;
  min-height: 300px;
  overflow-y: auto;
}
.custom-editor img,
.custom-editor video {
  max-width: 100%;
  margin: 10px 0;
}

.comment-edit-form {
  margin-top: 10px;
  background-color: #1a1a1a;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #333;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.comment-edit-textarea {
  width: 100%;
  box-sizing: border-box;  
  min-height: 60px;
  background: #101010;
  border: 1px solid #444;
  border-radius: 6px;
  color: #fff;
  padding: 10px;
  font-size: 14px;
  resize: vertical;
}


.comment-edit-buttons {
  margin-top: 8px;
  text-align: right;
}

.comment-edit-submit {
  background-color: #3f51b5;
  color: white;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  margin-right: 6px;
  cursor: pointer;
}

.comment-edit-cancel {
  background-color: #666;
  color: white;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.clickable-row {
  cursor: pointer;
  transition: background-color 0.2s;
}

.clickable-row:hover {
  background-color: #1c1c1c;
}

/* 유저 프로필 페이지 */
.user-section-box {
  margin: 20px 0;
  padding: 15px;
  border: 1px solid #444;
  background: #111;
  border-radius: 10px;
}

.user-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-card {
  background: #1a1a1a;
  border-radius: 8px;
  padding: 12px;
  border: 1px solid #333;
}

.user-link {
  color: #ddd;
  text-decoration: none;
}

.user-link:hover {
  text-decoration: underline;
}

.no-content {
  color: #888;
  padding: 5px 0;
}
