.loreEditor {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.header {
    composes: editorHeader from '@common/assets/ui.module.css';
}

@media (max-width: 1000px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .addEntry {
        width: 100%;
    }

    .titleInput {
        flex: 1;
        width: auto;
    }
}

.header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
}

.addEntry {
    display: flex;
    gap: 8px;
    align-items: center;
}

.titleInput {
    padding: 8px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    color: var(--text);
    font-family: inherit;
    width: 250px;

    &:focus {
        outline: none;
        border-color: var(--accent);
    }
}

.addButton {
    composes: buttonPrimary from '@common/assets/ui.module.css';
    border-radius: 6px;
}

.list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.empty {
    composes: empty from '@common/assets/ui.module.css';
}

.entryCard {
    composes: card from '@common/assets/ui.module.css';
    gap: 12px;
}

.cardHeader {
    composes: cardHeader from '@common/assets/ui.module.css';
    justify-content: space-between;
}

.titleRow {
    flex: 1;
    min-width: 0;
}

.entryTitle {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: color 0.2s;

    &:hover {
        color: var(--accent);
    }
}

.titleEditInput {
    width: 100%;
    padding: 6px 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    font-family: inherit;

    &:focus {
        outline: none;
        border-color: var(--accent);
    }
}

.actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.moveButton {
    composes: iconButton from '@common/assets/ui.module.css';
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
}

.deleteButton {
    composes: deleteButton from '@common/assets/ui.module.css';
    font-size: 18px;
}

.deleteConfirm {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: var(--bg-panel);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    font-size: 13px;

    & span {
        font-weight: 500;
        color: var(--accent);
    }
}

.confirmButton {
    composes: confirmButton from '@common/assets/ui.module.css';
}

.cancelButton {
    composes: cancelButton from '@common/assets/ui.module.css';
}

.content {
    min-height: 80px;
}

.textarea {
    composes: textarea from '@common/assets/ui.module.css';
    padding: 10px 12px;
    border-radius: 6px;
}
