/* 게시글 상세보기 */

.board-view {
    max-width: 900px;
    margin: 50px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.board-view h2 {
    margin-bottom: 25px;
    font-size: 32px;
    font-weight: 700;
    color: #222;
    word-break: break-word;
}

.board-view hr {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 20px 0;
}

/* 작성자, 조회수, 작성일 */
.board-view p {
    margin: 8px 0;
    color: #555;
    font-size: 15px;
}

/* 본문 */
.board-view .content {
    min-height: 250px;
    padding: 25px;
    margin-top: 20px;
    background-color: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    line-height: 1.8;
    font-size: 16px;
    color: #333;
    white-space: pre-wrap;
    word-break: break-word;
}

.btn-area {
    position: relative;
    margin-top: 30px;
}

.btn-center {
    text-align: center;
}

.btn-right {
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    gap: 10px;
}

/* 버튼 공통 */
.board-view input[type="button"] {
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s;
}

/* 수정 */
.board-view input[value="수정"] {
    background: #4caf50;
    color: white;
}

/* 삭제 */
.board-view input[value="삭제"] {
    background: #4caf50;
    color: white;
}

/* 목록 */
.board-view input[value="목록으로"] {
    background: #666;
    color: white;
}

.board-view input[type="button"]:hover {
    opacity: 0.85;
}

.board-info {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    color: #666;
    font-size: 14px;
}

/* ==========================================================================
   댓글 영역 디자인
   ========================================================================== */

.comment-main-title {
    margin: 90px 0 18px;
    padding-top: 30px;
    border-top: 1px solid #e5e5e5;
    font-size: 20px;
    font-weight: 700;
    color: #222;
}

.comment-main-title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 18px;
    background-color: #cda87c;
    margin-right: 10px;
    vertical-align: middle;
    border-radius: 2px;
    position: relative;
    top: -2px;
}

.read-comment-div {
    margin-bottom: 35px;
}

.read-comment-div h2 {
    text-align: center;
    padding: 45px 0;
    font-size: 16px;
    color: #999;
    font-weight: 400;
}

.read-comment-div table {
    width: 100%;
    border-collapse: collapse;
    border-bottom: 1px solid #eeeeee;
    table-layout: fixed;
}

.read-comment-div td {
    padding: 16px 8px;
    vertical-align: middle;
}

.read-comment-div td:first-child {
    width: 90px;
    font-size: 14px;
    font-weight: 600;
    color: #444;
}

.read-comment-div td:nth-child(2) {
    width: auto;
}

.read-comment-div td:last-child {
    width: 50px;
    text-align: right;
    position: relative;
    overflow: visible;
}

/* 댓글 내용 */
.comment-content {
    width: 100%;
    min-height: 62px;
    max-height: 90px;
    resize: none;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    padding: 0;
    box-sizing: border-box;
    overflow-y: auto;
}

/* ⋮ 버튼 */
.comment-toggle-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: transparent;
    font-size: 18px;
    color: #555;
    cursor: pointer;
    line-height: 30px;
    text-align: center;
}

.comment-toggle-btn:hover {
    background: #f1f4ee;
    color: #4a663f;
}

/* 드롭다운 감싸는 박스 */
.comment-dropdown {
    min-width: 82px;
    padding: 4px 0 !important;
    z-index: 999;
    border-radius: 6px;
    background: #fff !important;
    border: 1px solid #ddd !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
    overflow: visible;
}

/* 드롭다운 내부 목록 */
.comment-dropdown ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.comment-dropdown li {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    line-height: normal;
    text-align: left;
}

.comment-dropdown a {
    display: block;
    width: 100%;
    padding: 7px 12px;
    color: #333;
    font-size: 13px;
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
    box-sizing: border-box;
}

.comment-dropdown a:hover {
    background: #f3f8ee;
    color: #4a663f;
    font-weight: 700;
}

/* 댓글 입력 영역 */
.comment-insert-div {
    margin-top: 35px;
    padding-top: 30px;
    border-top: 1px solid #777;
}

.comment-insert-div table {
    width: 100%;
    border-collapse: collapse;
}

.comment-insert-div td {
    padding-bottom: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

/* 댓글 입력 textarea */
#comment-content {
    width: 100%;
    height: 90px;
    resize: none;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    line-height: 1.6;
    box-sizing: border-box;
}

#comment-content:focus {
    border-color: #5a7e4d;
}

/* 댓글 등록 버튼 */
.comment-register {
    display: block;
    width: 120px;
    margin: 12px 0 0 auto;
    padding: 12px 0;
    border: none !important;
    border-radius: 24px !important;
    background: #222 !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.comment-register:hover {
    background: #5a7e4d !important;
}