/* 버튼 공통 - 글쓰기 버튼 느낌 */
.board-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    height: 40px;
    padding: 0 14px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.18s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.board-btn:hover {
    transform: translateY(-1px);
    filter: none;
}

.board-btn:active {
    transform: translateY(0);
}

/* 글쓰기/등록 계열 */
.board-btn-primary {
    background: linear-gradient(135deg, #7b5cff, #9f7aea);
    color: #fff;
}

.board-btn-primary:hover {
    background: linear-gradient(135deg, #6845ff, #8b6be8);
}

/* 목록/취소/파일선택 같은 중립 계열 */
.board-btn-secondary {
    background: #9aa0a6;
    color: #fff;
}

/* 수정 버튼 */
.board-btn-edit {
    background: #7c6cf2;
    color: #fff;
}

/* 삭제 버튼 */
.board-btn-delete {
    background: #ef6b73;
    color: #fff;
}

/* 버튼 줄 */
.board-form-actions,
.board-detail-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.board-inline-form {
    margin: 0;
}

/* 상세 버튼 영역 */
.board-detail-actions {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* 파일 업로드 영역 */
.board-upload-section {
    margin: 18px 0 10px;
}

.board-upload-label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
}

.board-upload-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.board-file-hidden {
    display: none;
}

.board-file-name {
    font-size: 14px;
    color: #666;
}

.board-upload-guide {
    margin-top: 8px;
    font-size: 13px;
    color: #777;
}


/* 게시글 이미지 */
.post-image-list {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
}

.post-image-card {
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.post-image {
    display: block;
    max-width: 100%;
    width: 520px;
    height: auto;
    object-fit: contain;
}

/* 수정/글쓰기 버튼 줄도 통일 가능 */
.board-form-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.board-edit-image-section {
    margin: 10px 0 20px;
}

.board-edit-image-card {
    position: relative;
    padding-bottom: 44px;
}

.board-delete-check {
    position: absolute;
    left: 12px;
    bottom: 10px;
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.92);
    padding: 6px 10px;
    border-radius: 8px;
}

.board-detail-wrap,
.board-comment-wrap {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
}

.board-detail-wrap {
    margin-top: 0;
}

.board-comment-wrap {
    margin-top: 24px;
}

.board-detail-card,
.board-comment-card {
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.board-comment-card {
    padding: 20px;

    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}


.board-comment-wrap h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.comment-list {
    margin-bottom: 16px;
}

.comment-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 6px;
}

.comment-content {
    margin-bottom: 8px;
    white-space: pre-wrap;
}

.comment-form {
    margin-top: 24px;
}

.comment-delete-btn {
    padding: 4px 10px;
    font-size: 12px;
    color: #555;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
}

.comment-delete-btn:hover {
    background: #f7f7f7;
}

.image-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
}

.image-preview-item {
    width: 120px;
    height: 120px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.image-preview-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
}

.image-preview-item {
    position: relative;
    width: 120px;
    height: 120px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.image-preview-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-preview-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
}

.image-preview-remove:hover {
    background: rgba(0,0,0,0.8);
}

.board-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 24px 0 10px;
}

.page-btn {
    display: inline-block;
    min-width: 36px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
}

.page-btn:hover {
    background: #e5e7eb;
}

.page-btn.active {
    background: #6c4df6;
    color: white;
}