/* 
 * ScoutCar Frontend Post Editor CSS
 */

 .sc-post-editor-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
}

#sc-post-notice {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-weight: 600;
}
#sc-post-notice.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
#sc-post-notice.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.sc-post-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

/* Left Main */
.sc-post-main {
    flex: 1;
    min-width: 0;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #eaeaea;
}

/* Right Sidebar */
.sc-post-sidebar {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 992px) {
    .sc-post-sidebar {
        width: 320px;
        flex: 0 0 320px;
    }
}

/* Fields */
.sc-post-field {
    margin-bottom: 25px;
}

.sc-post-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111;
}

.sc-post-input-large {
    width: 100%;
    font-size: 24px;
    font-weight: 700;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s;
}
.sc-post-input-large:focus {
    border-color: #0b9e43;
}

.sc-post-input, .sc-post-textarea {
    width: 100%;
    font-size: 14px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}
.sc-post-input:focus, .sc-post-textarea:focus {
    border-color: #0b9e43;
}

.sc-post-counter {
    font-size: 11px;
    color: #888;
    text-align: right;
    margin-top: 5px;
}

/* Media Uploader */
.sc-post-media-uploader {
    width: 100%;
    height: 250px;
    background-color: #f7f9fa;
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    transition: border-color 0.2s;
    position: relative;
    overflow: hidden;
}

.sc-post-media-uploader:hover {
    border-color: #0b9e43;
}

.sc-post-media-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #666;
    background: rgba(255,255,255,0.8);
    padding: 20px;
    border-radius: 8px;
    pointer-events: none;
}
.sc-post-media-overlay i {
    font-size: 32px;
    margin-bottom: 10px;
    color: #0b9e43;
}

.sc-post-btn-text {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    padding: 0;
}
.sc-post-btn-text:hover {
    text-decoration: underline;
}

/* Sidebar Cards */
.sc-post-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #eaeaea;
}

.sc-post-card-title {
    font-size: 16px;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Publish Actions */
.sc-post-publish-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sc-post-btn {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.sc-post-btn-publish {
    background-color: #0b9e43;
    color: #fff;
}
.sc-post-btn-publish:hover {
    background-color: #098236;
}

.sc-post-btn-draft {
    background-color: #f1f1f1;
    color: #333;
    border-color: #ddd;
}
.sc-post-btn-draft:hover {
    background-color: #e2e2e2;
}

.sc-post-btn-preview {
    background-color: #fff;
    color: #0b9e43;
    border-color: #0b9e43;
}
.sc-post-btn-preview:hover {
    background-color: rgba(11, 158, 67, 0.05);
}

.sc-post-autosave-status {
    font-size: 12px;
    color: #888;
    margin-top: 10px;
    text-align: center;
    font-style: italic;
    display: none;
}

/* Categories */
.sc-post-categories {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 10px;
    font-size: 14px;
}

.sc-post-checkbox {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
}
.sc-post-checkbox input {
    margin-right: 8px;
}

.sc-post-help {
    font-size: 11px;
    color: #888;
    margin-top: 5px;
}

/* Editor Override */
.sc-post-editor-container .wp-editor-container {
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

/* SEO Progress Bars */
.sc-seo-progress-bar-container {
    width: 100%;
    height: 4px;
    background-color: #eee;
    margin-top: 6px;
    border-radius: 2px;
    overflow: hidden;
}

.sc-seo-progress-bar {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.sc-seo-progress-bar.status-red {
    background-color: #dc3232;
}

.sc-seo-progress-bar.status-orange {
    background-color: #ee8e12;
}

.sc-seo-progress-bar.status-green {
    background-color: #7ad03a;
}

.sc-seo-progress-wrapper {
    display: flex;
    flex-direction: column;
}

.sc-seo-char-count {
    font-size: 11px;
    color: #888;
    text-align: right;
    margin-top: 4px;
}
