/* Article / Twitter Editor */

.article-detail {
    /* Normal page width - no max-width constraint */
    display: flex;
    flex-direction: column;
    height: calc(100vh - 140px);
}

.article-detail-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.article-detail-thumb {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--bg-tertiary);
    flex-shrink: 0;
}

.article-detail-meta {
    flex: 1;
    min-width: 0;
}

.article-detail-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text);
}
.article-detail-title::placeholder {
    color: var(--text-tertiary);
}
.article-detail-title:focus {
    outline: none;
    background: var(--bg-hover) !important;
    padding: 4px 8px !important;
    margin: -4px -8px 8px -8px !important;
    border-radius: 6px;
}

.article-detail-sub {
    color: var(--text-tertiary);
    font-size: 13px;
}

.article-detail-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.article-detail-actions .btn-ghost {
    background: #fff;
    color: #000;
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.15s;
}
.article-detail-actions .btn-ghost:hover {
    opacity: 0.9;
}
.article-detail-status-wrap {
    margin-left: auto;
    flex-shrink: 0;
}
.article-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

/* Editor split layout */
.article-editor-split {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}
@media (max-width: 900px) {
    .article-editor-split {
        grid-template-columns: 1fr;
    }
}
.article-editor-col,
.article-preview-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
}
.article-preview-content {
    flex: 1;
    min-height: 0;
    padding: 16px 20px;
    font-size: 15px;
    line-height: 1.6;
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    overflow-y: auto;
}
.article-preview-content h1 { font-size: 1.5em; margin: 0 0 0.5em; font-weight: 600; }
.article-preview-content h2 { font-size: 1.25em; margin: 1em 0 0.5em; font-weight: 600; }
.article-preview-content h3 { font-size: 1.1em; margin: 0.8em 0 0.4em; font-weight: 600; }
.article-preview-content p { margin: 0 0 0.75em; }
.article-preview-content hr { border: none; border-top: 1px solid var(--border); margin: 1em 0; }
.article-preview-content ul, .article-preview-content ol { margin: 0 0 0.75em; padding-left: 1.5em; }
.article-preview-content strong { font-weight: 600; }
.article-preview-content em { font-style: italic; }
.article-preview-content code { background: var(--bg-hover); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.article-preview-content pre { background: var(--bg-hover); padding: 12px; border-radius: 8px; overflow-x: auto; margin: 0.5em 0; }
.article-preview-content pre code { background: none; padding: 0; }
.article-preview-content img { max-width: 100%; height: auto; border-radius: 6px; }
.article-preview-content a { color: var(--accent); text-decoration: none; }
.article-preview-content a:hover { text-decoration: underline; }

/* Editor textarea */
.article-editor-textarea {
    flex: 1;
    min-height: 0;
    width: 100%;
    padding: 16px 20px;
    font-size: 15px;
    line-height: 1.6;
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    resize: none;
    transition: border-color 0.15s;
}

.article-editor-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(0, 212, 170, 0.15);
}

.article-editor-textarea::placeholder {
    color: var(--text-tertiary);
}

/* Editor toolbar */
.article-editor-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.article-editor-toolbar .btn-group {
    display: flex;
    gap: 8px;
}
