/*
 * Shader Forge - Editor
 * Code textarea styling
 */

.editor-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.editor-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.code-editor {
    width: 100%;
    height: 100%;
    background: var(--bg-deep);
    border: none;
    outline: none;
    resize: none;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-primary);
    padding: var(--space-md);
    tab-size: 4;
    white-space: pre;
    overflow: auto;
}

.code-editor::selection {
    background: rgba(167, 139, 250, 0.3);
}

.code-editor::placeholder {
    color: var(--text-ghost);
}

/* Line numbers gutter (future enhancement) */
.editor-wrapper {
    display: flex;
    height: 100%;
}

.line-numbers {
    padding: var(--space-md) var(--space-sm);
    background: var(--bg-surface);
    border-right: 1px solid var(--border-subtle);
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-ghost);
    text-align: right;
    user-select: none;
    min-width: 40px;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .editor-section {
        min-height: 200px;
        max-height: 40vh;
    }

    .code-editor {
        font-size: 11px;
        padding: var(--space-sm);
    }

    .line-numbers {
        font-size: 11px;
        min-width: 30px;
        padding: var(--space-sm) var(--space-xs);
    }
}
