/* WRITE ADDA POST STYLES */
.write-container {
    padding-top: 20px;
    padding-bottom: 60px;
}

.breadcrumb {
    margin-bottom: 25px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.write-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.write-card {
    background: #fff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.write-card h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
}

.write-card p.subtitle {
    color: #888;
    font-size: 14px;
    margin-bottom: 30px;
}

/* FORM FIELDS */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 10px;
    color: #333;
}

.form-group label span {
    color: #dc2626;
}

.input-with-count {
    position: relative;
}

.char-count {
    position: absolute;
    bottom: -20px;
    right: 0;
    font-size: 11px;
    color: #999;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    background: #fcfcfc;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: #4a2d1c;
    background: #fff;
    outline: none;
}

/* CATEGORY SELECTOR */
.cat-selector {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cat-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
}

.cat-option:hover {
    border-color: #4a2d1c;
    background: #fdfaf3;
}

.cat-option.active {
    border-color: #4a2d1c;
    background: #fdfaf3;
    color: #4a2d1c;
}

.cat-option i {
    font-size: 16px;
}

.cat-option.blue i { color: #4f46e5; }
.cat-option.green i { color: #16a34a; }
.cat-option.red i { color: #dc2626; }
.cat-option.orange i { color: #ea580c; }

/* EDITOR */
.editor-wrapper {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.editor-toolbar {
    background: #f9f9f9;
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.toolbar-group {
    display: flex;
    gap: 8px;
    border-right: 1px solid #ddd;
    padding-right: 10px;
}

.toolbar-group:last-child {
    border-right: none;
}

.toolbar-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    color: #666;
}

.toolbar-btn:hover {
    background: #eee;
    color: #000;
}

.editor-content {
    min-height: 200px;
    padding: 15px;
}

.editor-content textarea,
.editor-content .wysiwyg-editor {
    width: 100%;
    border: none;
    resize: vertical;
    min-height: 180px;
    outline: none;
    font-family: inherit;
    font-size: 15px;
}

.editor-content .wysiwyg-editor {
    overflow-y: auto;
    resize: none;
}

.editor-content .wysiwyg-editor:empty:before {
    content: attr(placeholder);
    color: #999;
    cursor: text;
}

/* UPLOAD BOX */
.upload-box {
    border: 2px dashed #eee;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    background: #fcfcfc;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-box:hover {
    background: #fdfaf3;
    border-color: #4a2d1c;
}

.upload-box i {
    font-size: 40px;
    color: #ddd;
    margin-bottom: 15px;
    display: block;
}

.upload-box span {
    font-size: 14px;
    color: #666;
    display: block;
    margin-bottom: 5px;
}

.upload-box small {
    font-size: 11px;
    color: #999;
}

/* EXTRA OPTIONS */
.extra-options {
    margin: 30px 0;
    padding-top: 20px;
    border-top: 1px solid #f5f5f5;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    cursor: pointer;
}

.checkbox-group input {
    margin-top: 4px;
}

.check-text strong {
    display: block;
    font-size: 14px;
    color: #333;
}

.check-text span {
    font-size: 11px;
    color: #999;
}

/* BUTTONS */
.form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 15px;
    margin-top: 40px;
}

.action-btn-v5 {
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-draft {
    background: #fff;
    border: 1px solid #eee;
    color: #666;
}

.btn-preview {
    background: #fdfaf3;
    border: 1px solid #e0d0b0;
    color: #4a2d1c;
}

.btn-publish {
    background: #4a2d1c;
    border: none;
    color: #fff;
}

/* SIDEBAR WIDGETS */
.write-sidebar-widget {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.widget-title-v5 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.about-adda-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.about-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
}

.about-item .icon-box {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.tips-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tip-item {
    display: flex;
    gap: 10px;
    font-size: 13px;
    line-height: 1.4;
    color: #555;
}

.tip-item i {
    color: #16a34a;
    margin-top: 3px;
}

.guideline-item {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 13px;
    color: #444;
}

.guideline-item i {
    color: #8b5e3c;
    width: 20px;
    text-align: center;
}

.btn-all-guide {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
    color: #666;
    text-decoration: none;
    margin-top: 10px;
}

@media (max-width: 799px) {
    .write-layout {
        grid-template-columns: 1fr;
    }
}
