/* 댓글 관리 스타일 */

/* 공통 스타일 */
.bouquins-comments-wrap {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 0;
    font-size: 14px;
}

.bq-no-comment {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #777;
}

.bouquins-login-required {
    text-align: center;
    padding: 20px;
    font-weight: bold;
    color: #333;
}

/* 메뉴 스타일 */
#bouquins-comments-menu {
    margin-bottom: 20px;
}

#bouquins-comments-menu ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #ddd;
}

#bouquins-comments-menu ul li {
    margin-right: 20px;
}

#bouquins-comments-menu ul li a {
    display: block;
    padding: 10px 0;
    text-decoration: none;
    color: #333;
}

#bouquins-comments-menu ul.trash li:last-child a,
#bouquins-comments-menu ul.all li:first-child a {
    border-bottom: 2px solid #0073aa;
    color: #0073aa;
    font-weight: bold;
}

/* 테이블 스타일 */
#bouquins-comments-table {
    width: 100%;
    border-collapse: collapse;
}

#bouquins-comments-table ul {
    display: flex;
    padding: 15px 0;
    margin: 0;
    list-style: none;
    border-bottom: 1px solid #f0f0f0;
}

#bouquins-comments-table ul.com-header {
    font-weight: bold;
    background-color: #f9f9f9;
    padding: 10px 0;
    border-bottom: 2px solid #ddd;
}

#bouquins-comments-table .col-link {
    width: 30%;
    padding: 0 10px;
}

#bouquins-comments-table .col-content {
    width: 70%;
    padding: 0 10px;
}

#bouquins-comments-table .col-link img {
    max-width: 60px;
    height: auto;
    margin-right: 10px;
    vertical-align: middle;
}

#bouquins-comments-table .col-link a {
    text-decoration: none;
    color: #0073aa;
}

.bouquins-comments-subdate {
    color: #777;
    font-size: 12px;
    margin-bottom: 5px;
}

.bouquins-comments-content {
    margin-bottom: 10px;
    word-break: break-word;
}

/* 버튼 스타일 */
.bouquins-comment-actions {
    margin-top: 10px;
}

.bouquins-comment-actions button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 15px;
    font-size: 14px;
    text-decoration: underline;
}

.bouquins-comment-actions button:hover {
    color: #00a0d2;
}

.bouquins-cmt-delete,
.bouquins-cmt-delete-perm {
}

.bouquins-cmt-delete:hover,
.bouquins-cmt-delete-perm:hover {
    color: #dc3232 !important;
}

/* 수정 폼 스타일 */
.bouquins-edit-form {
    display: none;
    margin: 10px 0;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.bouquins-edit-form.active {
    display: block;
}

.bouquins-edit-form textarea {
    width: 100%;
    min-height: 100px;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
}

.bouquins-form-actions {
    display: flex;
    justify-content: flex-start;
}

.bouquins-form-actions button {
    padding: 5px 15px;
    background: #000;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    margin-right: 5px;
}

.bouquins-form-actions button:hover {
    background: #3e285e;
}

.bouquins-form-actions .bouquins-cancel-edit {
    background: #f7f7f7;
    color: #555;
    border: 1px solid #ccc;
}

.bouquins-form-actions .bouquins-cancel-edit:hover {
    background: #fafafa;
    border-color: #999;
}

/* 페이지네이션 스타일 */
.navigation.pagination {
    margin: 20px 0;
    text-align: center;
}

.navigation.pagination .nav-links {
    display: inline-block;
}

.navigation.pagination .page-numbers {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 2px;
    border: 1px solid #ddd;
    color: #0073aa;
    text-decoration: none;
}

.navigation.pagination .page-numbers.current {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.navigation.pagination .page-numbers:hover {
    background: #f9f9f9;
}

/* =========================================================
 * 댓글 AJAX 알림 - GNUpress 댓글 토스트와 동일 규격
 * ========================================================= */
#bouquins-toast-host {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1200000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.bouquins-toast {
    min-width: 220px;
    max-width: 340px;
    padding: 12px 14px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    color: #fff;
    font-size: 14px;
    line-height: 1.35;
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
    pointer-events: auto;
    word-break: break-word;
}

.bouquins-toast.is-show {
    opacity: 1;
    transform: translateY(0);
}

.bouquins-toast--success {
    background: #28a745;
}

.bouquins-toast--error {
    background: #dc3545;
}

.bouquins-toast--info {
    background: #343a40;
}

/* 새로 등록된 댓글 강조 - GNUpress와 동일 */
.bouquins-comment-flash {
    outline: 2px solid rgba(40, 167, 69, 0.6);
    outline-offset: 6px;
    transition: outline-color 0.3s ease;
}

@media screen and (max-width: 639px) {
    #bouquins-toast-host {
        right: 12px;
        bottom: 12px;
        left: 12px;
    }

    .bouquins-toast {
        width: 100%;
        min-width: 0;
        max-width: none;
        box-sizing: border-box;
    }
}

/* 개별 댓글 페이지 스타일 */
.comment-content .bouquins-comment-actions {
    margin-top: 10px;
}

.comment-content .bouquins-edit-form {
    margin-top: 10px;
    background: #f9f9f9;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.bouquins-original-content {
    position: absolute !important;
    left: -9999px !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.bouquins-edit-form {
    display: none;
    margin-top: 10px;
}

.bouquins-edit-form.active {
    display: block;
}

/* 반응형 스타일 */
@media screen and (max-width: 768px) {
    #bouquins-comments-table ul {
        flex-direction: column;
        padding: 15px 10px;
    }

    #bouquins-comments-table .col-link,
    #bouquins-comments-table .col-content {
        width: 100%;
        padding: 5px 0;
    }

    #bouquins-comments-table .col-link {
        margin-bottom: 10px;
    }
}
