/* PM Edit Plugin Styles */

.postbit_pm_edit_button span {
    background-position: 0 -160px;
}

.pm_edit_history_link span {
    background-image: url(https://8upload.com/image/092082486a806b7f/history.png) !important;
    background-size: 16px;
}

.pm_edit_notice {
    margin-top: 5px;
    color: #666;
    font-style: italic;
}

.pm_edit_history_list {
    padding: 10px;
}

.pm_edit_history_item {
    margin-bottom: 25px;
    padding: 15px;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.pm_edit_history_header {
    font-size: 12px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
    color: #555;
}

.pm_edit_history_content {
    margin-top: 10px;
}

/* Side-by-side diff container */
.pm_edit_diff_container {
    display: flex;
    gap: 15px;
    margin: 10px 0;
}

.pm_edit_diff_side {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.pm_edit_diff_label {
    padding: 6px 12px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pm_edit_original .pm_edit_diff_label {
    background: #f5f5f5;
    color: #d32f2f;
    border-bottom: 2px solid #ffcdd2;
}

.pm_edit_edited .pm_edit_diff_label {
    background: #f5f5f5;
    color: #388e3c;
    border-bottom: 2px solid #c8e6c9;
}

.pm_edit_diff_content {
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.5;
    max-height: 250px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Inline spans within diff content */
.pm_edit_diff_content span {
    padding: 1px 2px;
    margin: 0 1px;
    border-radius: 2px;
    display: inline;
}

/* Highlight changed content - inline style */
.pm_edit_diff_content .pm_edit_old {
    background-color: #ffebee;
    color: #c62828;
    text-decoration: line-through;
    padding: 1px 2px;
    border-radius: 2px;
}

.pm_edit_diff_content .pm_edit_new {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 1px 2px;
    border-radius: 2px;
}

.pm_edit_history_reason {
    margin-top: 12px;
    padding: 10px;
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    font-size: 12px;
    border-radius: 0 3px 3px 0;
}

.pm_edit_history_empty {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.pm_edit_history_divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 15px 0;
}

/* Quick edit popup styles */
#quickedit_form textarea {
    width: 100%;
    min-height: 150px;
    font-family: inherit;
    font-size: 13px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

#quickedit_form textarea:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 0 2px rgba(33,150,243,0.2);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .pm_edit_diff_container {
        flex-direction: column;
    }
    
    .pm_edit_history_content {
        flex-direction: column;
    }
}

/* Diff ellipsis for separating change regions */
.pm_edit_diff_ellipsis {
    color: #999;
    font-weight: bold;
    margin: 0 5px;
}

/* Collapsed section styles */
.pm_edit_collapsed {
    cursor: pointer;
    color: #666;
    font-size: 12px;
}

.pm_edit_collapsed:hover {
    color: #2196f3;
}

.pm_edit_collapse_content {
    color: #999;
}

.pm_edit_ellipsis {
    color: #666;
    font-weight: bold;
}

.pm_edit_expand_btn {
    color: #2196f3;
    text-decoration: underline;
    font-size: 11px;
}

.pm_edit_expanded_content {
    color: inherit;
}
