/*
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
Click nbfs://nbhost/SystemFileSystem/Templates/Other/CascadeStyleSheet.css to edit this template
*/
/* 
    Created on : 2026. 2. 2., 오후 3:10:49
    Author     : Haruki
*/

/* ===== 코멘트 컨테이너 ===== */
.comment-container {
    width: 900px;
    margin: 0 auto;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 20px 50px 40px 50px;
}

/* ===== 댓글 헤더 ===== */
.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 8px 4px 6px 4px;
    margin-top: 10px;
    margin-bottom: 0;

    border-bottom: 1px solid #ddd;
    font-size: 14px;
}

/* 댓글 개수 */
.comment-count {
    font-weight: bold;
    color: #333;
}

/* 우측 액션 링크 */
.comment-actions {
    display: flex;
    gap: 12px;
}

.comment-actions a {
    font-size: 13px;
    color: #3f4aa8;
    text-decoration: none;
}

.comment-actions a:hover {
    text-decoration: underline;
}


/* ===== 댓글 목록 ===== */
.comment-item {
    padding: 10px 5px;
    border-bottom: 1px solid #ddd;
}

/* 메타 정보 (닉네임 + 시간) */
.comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    margin-bottom: 4px;
}

.comment-author {
    font-weight:bold;
    color: #111;
}

.comment-time {
    color: #888;
}

/* 삭제 버튼 */
.comment-delete {
    margin-left: auto;
    margin-right: 10px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
}

.comment-delete img {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

.comment-delete:hover img {
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(17%) sepia(92%) saturate(5224%) hue-rotate(350deg);
}
/* 댓글 내용 */
.comment-content {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    word-break: break-word;
    white-space: pre-line;
}


/* ===== 댓글 작성 폼 ===== */
.comment-form {
    margin-top: 20px;
    border-top: 2px solid #3f4aa8;
    border-bottom: 2px solid #3f4aa8;
    padding: 10px;
    background: #fff;
}

/* 댓글 입력 박스 */
.comment-write-box {
    display: flex;
    gap: 10px;
}

/* 좌측 닉네임 */
.comment-writer {
    width: 120px;
    height: 20px;
    padding: 10px;
    line-height: 1.5;         /* 줄 간격 살짝 */
    background: #f6f6f6;
    border: 1px solid #ddd;

    display: flex;
    align-items: center;     /* 세로 가운데 */
    justify-content: center; /* 가로 가운데 */
    text-align: center;       /* 여러 줄 텍스트 가운데 */
}

.writer-name {
    font-size: 14px;
    color: #333;
}

/* 우측 textarea */
.comment-input-area {
    flex: 1; /* 남은공간 전부 할당 */
}

.comment-input-area textarea {
    width: 100%;
    height: 120px;
    border: 1px solid #ddd;
    resize: none;
    padding: 10px;
    font-family: "Noto Sans KR", sans-serif;
    font-size: 15px;
    color: #333;
    box-sizing: border-box;
    line-height: 1.5;
}

.comment-input-area textarea:focus {
    outline: none;
}

/* 하단 바 */
.comment-action-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 8px;
}

/* 우측 버튼 */
.right-actions {
    display: flex;
    gap: 6px;
}

.btn-submit {
    padding: 8px 18px;
    background: #3f4aa8;
    color: #fff;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-size: 14px;
}

.btn-submit:hover {
    background: #2f388a;
}

/* 페이지네이션 */
.comment-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
}

.comment-pagination button {
    padding: 4px 6px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-sub);
    border-radius: 4px;
    font-size: inherit;
}
.comment-pagination button:hover {
    color: var(--main-color);
}

.comment-pagination .active {
    color: #ff3b30;
    font-weight: bold;
}

.comment-pagination button:disabled {
    pointer-events: none !important;
    cursor: default;
}