/**
 * RTF to HTML Editor Styles
 * 
 * @package Publish_My_Content
 */

/* Main editor container */
.pmc-rtf-html-editor {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Toolbar styles */
.pmc-editor-toolbar {
    display: flex;
    justify-content: space-between;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
    padding: 8px 12px;
    flex-wrap: wrap;
}

.pmc-rtf-toolbar,
.pmc-html-toolbar {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    margin: 5px 0;
}

.pmc-html-toolbar {
    margin-left: auto;
}

.pmc-toolbar-btn {
    background-color: #fff;
    border: 1px solid #ddd;
    color: #333;
    font-size: 14px;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pmc-toolbar-btn:hover {
    background-color: #f9f9f9;
    border-color: #bbb;
}

.pmc-toolbar-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(103, 58, 183, 0.4);
}

.pmc-toolbar-separator {
    width: 1px;
    height: 24px;
    background-color: #ddd;
    margin: 0 5px;
}

/* Editor container */
.pmc-editor-container {
    display: flex;
    height: 400px;
    position: relative;
}

/* Editor panes */
.pmc-editor-pane {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
}

.pmc-rtf-editor {
    background-color: #fff;
    min-height: 100%;
    outline: none;
}

.pmc-rtf-editor[placeholder]:empty:before {
    content: attr(placeholder);
    color: #999;
    font-style: italic;
}

.pmc-html-editor {
    background-color: #f8f8f8;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.pmc-html-editor pre,
.pmc-html-editor code {
    margin: 0;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    background: transparent;
    color: #333;
}

/* Divider between panes */
.pmc-editor-divider {
    width: 1px;
    background-color: #ddd;
}

/* Copy message */
.pmc-copy-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(103, 58, 183, 0.8);
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 100;
    animation: pmc-fade-in-out 2s ease-in-out;
}

@keyframes pmc-fade-in-out {
    0% { opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { opacity: 0; }
}

/* Responsive styles */
@media (max-width: 767px) {
    .pmc-editor-container {
        flex-direction: column;
        height: auto;
    }
    
    .pmc-editor-pane {
        height: 300px;
    }
    
    .pmc-editor-divider {
        width: 100%;
        height: 1px;
    }
    
    .pmc-rtf-toolbar,
    .pmc-html-toolbar {
        flex: 1 1 100%;
        justify-content: flex-start;
        margin: 5px 0;
    }
    
    .pmc-editor-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Rich text formatting styles */
.pmc-rtf-editor h1,
.pmc-rtf-editor h2,
.pmc-rtf-editor h3,
.pmc-rtf-editor h4,
.pmc-rtf-editor h5,
.pmc-rtf-editor h6 {
    margin-top: 1em;
    margin-bottom: 0.5em;
    font-weight: 600;
    line-height: 1.3;
}

.pmc-rtf-editor h1 {
    font-size: 2em;
}

.pmc-rtf-editor h2 {
    font-size: 1.75em;
}

.pmc-rtf-editor h3 {
    font-size: 1.5em;
}

.pmc-rtf-editor p {
    margin-bottom: 1em;
}

.pmc-rtf-editor ul,
.pmc-rtf-editor ol {
    margin-bottom: 1em;
    padding-left: 2em;
}

.pmc-rtf-editor a {
    color: #673AB7;
    text-decoration: underline;
}

.pmc-rtf-editor img {
    max-width: 100%;
    height: auto;
}

/* Font Awesome icon support */
.fa {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.fa-bold:before {
    content: "\f032";
}
.fa-italic:before {
    content: "\f033";
}
.fa-underline:before {
    content: "\f0cd";
}
.fa-link:before {
    content: "\f0c1";
}
.fa-list-ul:before {
    content: "\f0ca";
}
.fa-list-ol:before {
    content: "\f0cb";
}
.fa-copy:before {
    content: "\f0c5";
}
.fa-trash:before {
    content: "\f1f8";
} 