/* 댓글 관리 스타일 */

/* 공통 스타일 */
.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;
    color: #0073aa;
    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 {
    color: #a00 !important;
}

.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: #0073aa;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    margin-right: 10px;
}

.bouquins-form-actions button:hover {
    background: #006799;
}

.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;
}

/* 알림 스타일 */
.bouquins-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 4px;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
}

.bouquins-notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* 개별 댓글 페이지 스타일 */
.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;
}

.bouquins-edit-form.active {
    display: block;
}

.bouquins-submit-overlay{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.35);
  z-index: 999999;
}
.bouquins-submit-overlay.show{
  display: flex;
}
.bouquins-submit-box{
  background: #fff;
  color: #111;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 320px;
}
.bouquins-spinner{
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,.2);
  border-top-color: rgba(0,0,0,.8);
  animation: bouquinsSpin .8s linear infinite;
}
@keyframes bouquinsSpin{
  to { transform: rotate(360deg); }
}


/* 반응형 스타일 */
@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;
    }
}