/**
 * 私密评论插件样式 - 适配子比主题
 * Private Comments Plugin Styles for Zibll Theme
 */

/* ====================================
   私密评论勾选框样式（子比主题兼容）
   ==================================== */
.pc-private-checkbox {
    display: inline-flex !important;
    align-items: center;
    cursor: pointer;
    font-size: 12px;
    padding: 5px 10px !important;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pc-private-checkbox:hover {
    opacity: 0.85;
}

.pc-private-checkbox input[type="checkbox"] {
    cursor: pointer;
    width: 14px;
    height: 14px;
}

/* ====================================
   私密评论提示样式
   ==================================== */
.pc-private-notice {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    background: linear-gradient(135deg, rgba(85, 142, 83, 0.1) 0%, rgba(85, 142, 83, 0.2) 100%);
    border-left: 3px solid #558E53;
    border-radius: 0 6px 6px 0;
    color: #558E53;
    font-size: 13px;
    font-weight: 500;
}

.pc-private-notice .fa {
    margin-right: 8px;
}

/* ====================================
   私密标签样式
   ==================================== */
.pc-private-tag {
    display: inline-block;
    padding: 2px 8px;
    background: linear-gradient(135deg, #558E53 0%, #3d6b3b 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 3px;
    margin-right: 6px;
}

/* ====================================
   管理员内联控制按钮样式
   ==================================== */
.pc-inline-control {
    margin-left: 8px;
}

.pc-inline-control a {
    color: #558E53 !important;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.pc-inline-control a:hover {
    color: #3d6b3b !important;
    text-decoration: underline;
}

.pc-inline-control.pc-is-private a {
    color: #dc3545 !important;
}

.pc-inline-control.pc-is-private a:hover {
    color: #b02a37 !important;
}

.pc-inline-control .fa {
    margin-right: 3px;
}

/* 处理中状态 */
.pc-inline-control a.pc-processing {
    opacity: 0.6;
    pointer-events: none;
}

/* ====================================
   下拉菜单中的私密按钮样式
   ==================================== */
.dropdown-menu .pc-toggle-private {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    color: #558E53;
    transition: all 0.2s ease;
}

.dropdown-menu .pc-toggle-private:hover {
    background-color: rgba(85, 142, 83, 0.1);
    color: #3d6b3b;
}

.dropdown-menu .pc-toggle-private .fa {
    width: 20px;
}

/* ====================================
   Toast 通知样式
   ==================================== */
.pc-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 24px;
    background: linear-gradient(135deg, #558E53 0%, #3d6b3b 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    z-index: 99999;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.pc-toast.pc-toast-show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.pc-toast.pc-toast-error {
    background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
}

/* ====================================
   子比主题深色模式适配
   ==================================== */
.dark-theme .pc-private-notice,
[data-theme="dark"] .pc-private-notice {
    background: linear-gradient(135deg, rgba(85, 142, 83, 0.2) 0%, rgba(85, 142, 83, 0.3) 100%);
}

.dark-theme .pc-inline-control a,
[data-theme="dark"] .pc-inline-control a {
    color: #7cb97a !important;
}

.dark-theme .dropdown-menu .pc-toggle-private,
[data-theme="dark"] .dropdown-menu .pc-toggle-private {
    color: #7cb97a;
}

.dark-theme .dropdown-menu .pc-toggle-private:hover,
[data-theme="dark"] .dropdown-menu .pc-toggle-private:hover {
    background-color: rgba(85, 142, 83, 0.2);
}

/* ====================================
   响应式适配
   ==================================== */
@media screen and (max-width: 768px) {
    .pc-private-checkbox {
        padding: 6px 8px !important;
        font-size: 11px;
    }

    .pc-private-notice {
        padding: 8px 12px;
        font-size: 12px;
    }

    .pc-inline-control {
        display: block;
        margin-left: 0;
        margin-top: 5px;
    }
}

/* ====================================
   子比主题评论区徽章样式增强
   ==================================== */
.comment-header .badg.c-green {
    background-color: rgba(85, 142, 83, 0.15);
    color: #558E53;
}

.comment-header .badg.c-green .fa {
    font-size: 10px;
}