/* GalaxyBrain Editor - Projectional Editor Styles */

/* Editor Layout */
.gbe-editor-explorer {
    background-color: rgb(37, 35, 42);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gbe-editor-workspace {
    min-height: 400px;
}

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

/* Selection Highlighting */
.gbe-editor-selected {
    background-color: rgba(65, 132, 196, 0.25);
    outline: 1px solid rgba(65, 132, 196, 0.6);
    border-radius: 2px;
}

.gbe-editor-selectable {
    cursor: pointer;
    border-radius: 2px;
}

.gbe-editor-selectable:hover {
    background-color: rgba(65, 132, 196, 0.1);
}

/* Breadcrumb Navigation */
.gbe-editor-breadcrumb {
    padding: 4px 0;
    margin-bottom: 8px;
    font-size: 10pt;
    color: #808080;
    border-bottom: 1px solid rgba(128, 128, 128, 0.3);
}

.gbe-editor-breadcrumb-item {
    color: #a0a0a0;
}

.gbe-editor-breadcrumb-item:last-child {
    color: var(--gbe-monokai-blue);
}

.gbe-editor-breadcrumb-separator {
    margin: 0 4px;
    color: #606060;
}

/* Empty Slots (unintrusive styling per PRD) */
.gbe-editor-slot {
    display: inline-block;
    color: rgba(128, 128, 128, 0.5);
    font-style: italic;
    cursor: pointer;
    padding: 0 2px;
    border-radius: 2px;
    border: 1px dashed rgba(128, 128, 128, 0.3);
}

.gbe-editor-slot:hover {
    border-color: rgba(65, 132, 196, 0.5);
    background-color: rgba(65, 132, 196, 0.1);
}

.gbe-editor-slot-selected {
    border-color: rgba(65, 132, 196, 0.6);
    background-color: rgba(65, 132, 196, 0.2);
}

/* Command Palette */
.gbe-editor-palette {
    background-color: rgb(45, 42, 52);
    border: 1px solid rgba(128, 128, 128, 0.3);
    border-radius: 4px;
    padding: 4px 0;
    margin-top: 4px;
    min-width: 200px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.gbe-editor-palette-item {
    padding: 4px 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gbe-editor-palette-item:hover {
    background-color: rgba(65, 132, 196, 0.2);
}

.gbe-editor-palette-item-name {
    color: #c0c0c0;
}

.gbe-editor-palette-item-shortcut {
    color: #808080;
    font-size: 9pt;
    margin-left: 16px;
}

/* Module Explorer */
.gbe-editor-module-item {
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 2px;
}

.gbe-editor-module-item:hover {
    background-color: rgba(65, 132, 196, 0.15);
}

.gbe-editor-module-item-selected {
    background-color: rgba(65, 132, 196, 0.25);
}

/* Inline Text Editing */
.gbe-editor-text-input {
    background: transparent;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    padding: 0;
    margin: 0;
    width: auto;
    min-width: 20px;
}

.gbe-editor-text-input:focus {
    outline: 1px solid rgba(65, 132, 196, 0.6);
    border-radius: 2px;
}

/* AST Node base styling */
.gbe-editor-node {
    display: inline;
}

.gbe-editor-node-block {
    display: block;
}

/* Indentation for nested blocks */
.gbe-editor-indent {
    margin-left: 24px;
}
