/* 댓글 섹션 스타일 */
.comment-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.comment-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1A1B1E;
}

/* 댓글 입력 폼 */
.comment-form {
    margin-bottom: 2rem;
}

.comment-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
}

.comment-form input[type="text"],
.comment-form input[type="password"] {
    width: 200px;
    padding: 0.5rem;
    margin-right: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 0.875rem;
}

.comment-form button {
    padding: 0.5rem 1rem;
    background-color: #0066FF;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.comment-form button:hover {
    background-color: #0052cc;
}

/* 댓글 목록 */
.comments-list {
    list-style: none;
    padding: 0;
}

.comment {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 500;
    color: #1A1B1E;
}

.comment-date {
    font-size: 0.875rem;
    color: #868E96;
}

.comment-content {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #495057;
}

.comment-actions {
    display: flex;
    gap: 1rem;
}

.reply-button,
.delete-button {
    padding: 0.25rem 0.5rem;
    background: none;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s;
}

.reply-button:hover {
    background-color: #e9ecef;
    color: #1A1B1E;
}

.delete-button:hover {
    background-color: #ff6b6b;
    border-color: #ff6b6b;
    color: white;
}

/* 답글 폼 */
.reply-form {
    margin: 1rem 0;
    padding: 1rem;
    background-color: #f1f3f5;
    border-radius: 4px;
}

.reply-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
    font-size: 0.875rem;
    line-height: 1.5;
}

.reply-form input[type="text"],
.reply-form input[type="password"] {
    width: 180px;
    padding: 0.5rem;
    margin-right: 0.75rem;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 0.875rem;
}

.reply-form button {
    padding: 0.5rem 1rem;
    background-color: #0066FF;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.reply-form button:hover {
    background-color: #0052cc;
}

/* 답글 목록 */
.replies {
    margin-left: 2rem;
    margin-top: 1rem;
}

.reply {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.reply .comment-header {
    margin-bottom: 0.25rem;
}

.reply .comment-author {
    font-size: 0.875rem;
}

.reply .comment-date {
    font-size: 0.75rem;
}

.reply .comment-content {
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* 댓글 없음 메시지 */
.no-comments {
    text-align: center;
    padding: 2rem;
    color: #868E96;
    font-size: 0.875rem;
}

/* 다크 모드 지원 */
[data-theme="dark"] .comment-section {
    border-top-color: #343a40;
}

[data-theme="dark"] .comment-section h3 {
    color: #e9ecef;
}

[data-theme="dark"] .comment-form textarea,
[data-theme="dark"] .comment-form input[type="text"],
[data-theme="dark"] .comment-form input[type="password"] {
    background-color: #343a40;
    border-color: #495057;
    color: #e9ecef;
}

[data-theme="dark"] .comment {
    background-color: #343a40;
}

[data-theme="dark"] .comment-author {
    color: #e9ecef;
}

[data-theme="dark"] .comment-content {
    color: #ced4da;
}

[data-theme="dark"] .reply-button,
[data-theme="dark"] .delete-button {
    border-color: #495057;
    color: #ced4da;
}

[data-theme="dark"] .reply-button:hover {
    background-color: #495057;
    color: #e9ecef;
}

[data-theme="dark"] .reply-form {
    background-color: #2b3035;
}

[data-theme="dark"] .reply-form textarea,
[data-theme="dark"] .reply-form input[type="text"],
[data-theme="dark"] .reply-form input[type="password"] {
    background-color: #343a40;
    border-color: #495057;
    color: #e9ecef;
}

[data-theme="dark"] .reply {
    background-color: #343a40;
}

[data-theme="dark"] .no-comments {
    color: #adb5bd;
} 