/**
 * SCDEV Composer - Regular Post Composer
 * MAX 10px spacing rule applied everywhere
 */

/* Trigger Button */
.scdev-open-composer-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.scdev-open-composer-btn:hover {
    background: #2980b9;
}

.scdev-open-composer-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Modal */
.scdev-composer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.composer-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.composer-modal-content {
    position: relative;
    width: 90vw;
    max-width: 1400px;
    height: 90vh;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 2;
    overflow: hidden;
}

.scdev-regular-composer {
    width: 100%;
    height: 100%;
    padding: 10px;
    overflow-y: auto;
    box-sizing: border-box;
}

/* Rows - 10px gap between */
.composer-row {
    margin-bottom: 10px;
}

.composer-row:last-child {
    margin-bottom: 0;
}

/* Row 1: Split (Title + Category) */
.composer-row-split {
    display: flex;
    gap: 10px;
}

.composer-row-split > * {
    flex: 1;
}

/* Inputs */
.composer-input,
.composer-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.composer-input:focus,
.composer-select:focus {
    outline: none;
    border-color: #3498db;
}

/* Buttons */
.composer-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.composer-btn:hover {
    background: #e8e8e8;
}

.composer-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* TinyMCE Editor */
.composer-row .wp-editor-wrap {
    border: 1px solid #ddd;
    border-radius: 4px;
}

.composer-row .wp-editor-container {
    border: none;
}

.composer-row .mce-toolbar-grp {
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    padding: 5px;
}

.composer-row .mce-btn {
    margin: 0 2px;
}

/* Bottom Actions */
.composer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-top: 1px solid #ddd;
    margin-top: 10px;
    margin-bottom: 0;
}

.actions-left,
.actions-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.composer-btn-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
}

.composer-btn-action:hover {
    background: #e8e8e8;
}

.composer-btn-action .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.composer-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
}

.composer-checkbox input {

/* No duplicate CSS rules found in this file (first 200 lines). */
    margin: 0;
}

.composer-btn-cancel {
    padding: 10px 20px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.composer-btn-cancel:hover {
    background: #e8e8e8;
}

.composer-btn-publish {
    padding: 10px 24px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.composer-btn-publish:hover {
    background: #2980b9;
}

/* Message */
.composer-message {
    padding: 10px;
    margin-top: 10px;
    border-radius: 4px;
    font-size: 14px;
}

.composer-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.composer-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .composer-modal-content {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }
    
    .composer-row-split {
        flex-direction: column;
    }
    
    .composer-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .actions-left,
    .actions-right {
        width: 100%;
        justify-content: center;
    }
}
