

.post_title{
    margin-top:20px;
    border-bottom: 1px solid #9494944f;
    padding: 0 16px;
}

.post_category a{
}


.subject{
    font-size: 24px;
    font-weight: 400;
    word-break: break-all;
    margin-bottom: 10px;
    margin-top: 10px;
}

.post_info_etc{
    color: #949494;
    font-size: 13px;
    margin-bottom: 20px;
}

.post_info_etc a{
}

.post_info_etc span {
    margin-right:5px;
}

.post_content{

    padding: 20px 20px;
    min-height: 150px;
}

.post_content p{
    word-wrap: break-word;
}

.post_content a{
    color: #4a90e2;
    text-decoration: underline;
}

.post_content img,
.post_content object,
.post_content embed {
  max-width: 100%;
  height: auto;
}

.bottom_func{
    display:flex;
    border-bottom: 1px solid #9494944f;
    border-top: 1px solid #9494944f;
    padding: 0 10px;
    padding: 20px;
    gap: 10px

}

.bottom_fun_ele{
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: white;
    display: flex;
    flex-grow: 1;
    justify-content: center;
    align-items: center;
    flex-basis: 0;
    padding: 0;
}

.bottom_fun_ele a{
    color: white;
    display: flex;
    justify-content: center;
}

.post_comment{
    border-bottom: 10px solid #eee;
}

.comment_count{
    font-size: 14px;
}

.comment_input{
    display:flex;
    width: 100%;
    height: 40px;
    padding: 10px;
    box-sizing: border-box;
    border: solid 1px #D0CFCE;
    border-radius: 5px;
}

.comment_input a{
    width:100%;
    height:100%;
}

.comment_form{
    margin-bottom: 20px;
}

.post_comment textarea{
    width: 100%;
    height: 60px;
    padding: 10px;
    box-sizing: border-box;
    border: solid 1px #D0CFCE;
    border-radius: 5px;
    font-size: 16px;
    resize: none;
}



.comment_1{
    margin-left:10px;
}

.comment_info{
    display:flex;
    color: #949494;
    font-size: 13px;
    margin-bottom: 5px;

}

.comment_content{
    margin-bottom:5px;
}

.comment_content a{
    font-size: 13px;
}

.comment_box2{
    padding: 5px 0 5px 10px;
    background-color: #94949421;
}

.comment_box1{
    padding-top: 10px;
    margin-bottom:5px;
    border-top: solid 1px #D0CFCE;
}

.comment_content1{
    margin-left:11px;
}

.comment_content0{
    flex-wrap: wrap;
    align-items: center;
}

.comment_content0 a{
    font-size: 13px;
}

.comment_settings{
    margin-left:5px;
    display: flex;
    align-items: center;
}

.comment_settings a{
    margin-right:5px;
    display: flex;
    color: rgba(0 0 188);

}


.content{
    display:flex;
    flex-wrap: wrap;
    word-break: break-all;
}

.rb{
    width: 100%;
    height: 20px;
    font-size:13px;
    border:none;
    border-radius: 6px;
    margin-bottom: 10px;
    cursor: pointer;
}

.error ul{
    margin:0 5px;
    color: red;
    font-size: 13px;
}

.bs{
    color: rgba(0 0 188);
}

.article_box {
    border-top: 0;
    background-color: #fff;
    padding: 0 16px;
    margin-top: 10px;
}

.article {
    box-sizing: border-box;
    padding: 10px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    justify-content: space-between;
}

li+li {
    border-top: 1px solid rgba(220, 227, 233, .8);
}

.article_left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contents_name {
    font-size: 16px;
    margin-bottom: 5px;
    word-break: break-all;
}

.contents_info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #979797;
}

.article_right img {
    height: 60px;
    width: 80px;
    border-radius: 8px;
}

#overlay,.comment-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
}

#password-modal {
    display: none;
    position: absolute;
    border:1px solid #ccc; 
    padding:1em;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 1em;
    z-index: 1000; /* 오버레이보다 위 */
    border-radius: 12px;
}

.comment-password-modal {
    display: none;
    position: absolute;
    border:1px solid #ccc; 
    padding:1em;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 0.5em;
    z-index: 1000; /* 오버레이보다 위 */
    border-radius: 12px;
}

.comment-item .password-modal-top{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    padding-left: 3px;
    font-size: 14px;
}
.comment-password-modal form {
    display: flex;
}

.password-modal-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-left: 3px;
}

.password-modal-top i {
    border: none;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    padding: 5px 10px;
    background-color: #dc2626;
    border-radius: 5px;
}

#password-modal form {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#password-modal input, .comment-item input {
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    font-size: 1rem;
    width: 150px;
}

#password-modal #delete-button {
    background: #dc2626;

}

#password-modal button {
    background: #3b82f6;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
}

.comments-section {
    padding: 32px;
    border-top: 1px solid #eee;
}

.comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.comments-header h3 {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-count {
    background: #eee;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.sort-select {
    background: #eee;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
}

/* Comment Form */
.comment-form {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    width: 100%;
}

.comment-input-wrapper {
    width: 100%;
    flex: 1;
}

.comment-input {
    width: 100%;
    min-height: 60px;
    padding: 12px 16px;
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.comment-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.comment-input::placeholder {
    color: #64748b;
}

.comment-form-actions {
    display: none;
    justify-content: end;
    align-items: center;
    margin-top: 12px;
}

.formatting-tools {
    display: flex;
    gap: 4px;
}

.format-btn {
    background: #eee;
    border: 1px solid #475569;
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.format-btn:hover {
    background: #475569;
    color: #e2e8f0;
}

.submit-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-cancel, .btn-submit {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.comment-password-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.comment-password-label {
    padding: 8px 0 8px 16px;
}

.comment-password {
    background: transparent;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #475569;
    border-radius: 6px;
}

.btn-cancel {
    background: transparent;
    border: 1px solid #475569;
    color: #94a3b8;
}

.btn-cancel:hover {
    background: #eee;
}

.btn-submit {
    background: #3b82f6;
    border: 1px solid #3b82f6;
    color: white;
}

.btn-submit:hover {
    background: #2563eb;
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.comment-item {
    display: flex;
    gap: 12px;
}

.comment-item.featured {
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    padding: 16px;
    flex-direction: column;
    position: relative;
}

.comment-item.reply {
    margin-left: 44px;
    padding: 10px;
    border-left: 2px solid #eee;
}



.comment-item.author-reply {
    background: #94949421;
    position: relative;
    border-radius: 10px;
}


.comment-item.reply::before {
    content: '';
    position: absolute;
    top: -5px; /* 선 시작점 조절 (부모 댓글 영역과 연결) */
    left: -20px;
    width: 1px; /* 선의 두께 */
    height: calc(100% + 5px); /* 선의 높이 (컨테이너 전체를 덮고 위로 약간 더 올라가게) */
    border-left: 1px solid #ccc; /* 수직선 색상 */
}


.comment-vote {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}


.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.commenter-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #eee;
}

.commenter-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.commenter-name {
    font-weight: 600;
    font-size: 14px;
}

.commenter-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
}

.commenter-badge.verified {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.commenter-badge.author {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.commenter-badge.pro {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.comment-time {
    color: #64748b;
    font-size: 12px;
    margin-left: auto;
}

.comment-actions {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.action-btn-small {
    background: transparent;
    border: none;
    color: #64748b;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
}

.action-btn-small:hover {
    background: #eee;
    color: #94a3b8;
}

.comment-text {
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 14px;
}

.comment-text strong {
    color: #3b82f6;
    font-weight: 600;
}

.comment-footer {
    display: flex;
    gap: 16px;
}

.reply-btn, .award-btn, .share-btn, .delete-btn{
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.reply-btn:hover {
    color: #3b82f6;
}

.award-btn:hover {
    color: #f59e0b;
}

.share-btn:hover {
    color: #10b981;
}

.action-btn {
    background: #eee;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: #475569;
    color: #e2e8f0;
}

.action-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.action-btn.upvote.active {
    background: #10b981;
    border-color: #10b981;
}

.action-btn.downvote.active {
    background: #ef4444;
    border-color: #ef4444;
}

.action-btn.bookmark.active {
    background: #f59e0b;
    border-color: #f59e0b;
}

.post_content iframe {
    max-width: 100%;
}