/* ============================================
   CUISSON NODE — Flame Red (#d94f30)
   ============================================ */

/* Ligne d'accent flame — gradient heat bar */
.node-type-cuisson::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        var(--rnd-cuisson-dim),
        var(--rnd-cuisson),
        var(--rnd-cuisson-soft),
        transparent
    );
    opacity: 0.5;
    z-index: 1;
}

/* Chips categorie cuisson (grille 2x2) */
.cui-cat-chip-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.cui-cat-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px 7px;
    background: var(--rnd-bg-input, #0b0d12);
    border: 1px solid var(--rnd-border, rgba(255,255,255,0.06));
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cui-cat-chip:hover {
    border-color: var(--rnd-border-hover, rgba(255,255,255,0.12));
    background: var(--rnd-bg-field, #13161d);
}

.cui-cat-chip.selected {
    border-color: var(--rnd-cuisson-dim);
    background: var(--rnd-cuisson-glow);
    box-shadow: 0 0 8px var(--rnd-cuisson-glow);
}

.cui-cat-chip.selected .cui-cat-chip-icon {
    opacity: 1;
    transform: scale(1.1);
}

.cui-cat-chip.selected .cui-cat-chip-label {
    color: var(--rnd-cuisson-soft);
}

.cui-cat-chip-icon {
    font-size: 14px;
    opacity: 0.45;
    transition: all 0.2s ease;
    line-height: 1;
}

.cui-cat-chip-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 7.5px;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--rnd-text-muted, #555b69);
    text-transform: uppercase;
    transition: color 0.2s ease;
    line-height: 1.15;
    text-align: center;
}

/* Selecteur technique cuisson */
.cui-technique-selector {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cui-technique-selector.has-value {
    border-color: var(--rnd-cuisson-dim);
}

/* Spec row (temperature/intensite + duree) */
.cui-spec-row {
    display: flex;
    gap: 6px;
}

.cui-spec-row .node-field {
    flex: 1;
}

/* Spec input (temperature, duree) */
.cui-spec-input {
    width: 100%;
    padding: 7px 8px;
    background: var(--rnd-bg-input, #0b0d12);
    border: 1px solid var(--rnd-border, rgba(255,255,255,0.06));
    border-radius: 6px;
    color: var(--rnd-text, #f0f0f0);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
}

.cui-spec-input:focus {
    outline: none;
    border-color: var(--rnd-cuisson-dim);
    background: var(--rnd-cuisson-glow);
}

.cui-spec-input::placeholder {
    color: var(--rnd-text-placeholder, #3d4350);
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
}

/* Context select cuisson (intensite, matiere grasse) */
.cui-context-select {
    width: 100%;
    padding: 7px 24px 7px 8px;
    background: var(--rnd-bg-input, #0b0d12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23555b69' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 8px center;
    border: 1px solid var(--rnd-border, rgba(255,255,255,0.06));
    border-radius: 6px;
    color: var(--rnd-text, #f0f0f0);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.cui-context-select:focus {
    outline: none;
    border-color: var(--rnd-cuisson-dim);
}

/* Compact body cuisson */
.cui-compact-body {
    padding: 10px 12px;
}

.cui-compact-tag {
    font-size: 9px;
    font-weight: 500;
    padding: 3px 7px;
    border-radius: 4px;
    background: var(--rnd-cuisson-glow);
    border: 1px solid var(--rnd-cuisson-glow);
    color: var(--rnd-cuisson-soft);
    letter-spacing: 0.02em;
}

/* Modal technique cuisson */
.cui-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cui-modal {
    background: var(--rnd-bg-card, #0e1015);
    border: 1px solid var(--rnd-border, rgba(255,255,255,0.06));
    border-radius: 12px;
    width: 100%;
    max-width: 320px;
    max-height: 70vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cui-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--rnd-border, rgba(255,255,255,0.06));
}

.cui-modal-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--rnd-cuisson-soft);
}

.cui-modal-close {
    background: none;
    border: none;
    color: var(--rnd-text-muted, #555b69);
    font-size: 18px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.cui-modal-close:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--rnd-text-dim, #8a919e);
}

.cui-modal-list {
    overflow-y: auto;
    padding: 8px;
}

.cui-modal-item {
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cui-modal-item:hover {
    background: var(--rnd-cuisson-glow);
}

.cui-modal-item.selected {
    background: var(--rnd-cuisson-glow);
    border-left: 2px solid var(--rnd-cuisson);
}

.cui-modal-item-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--rnd-text, #f0f0f0);
}

.cui-modal-item-desc {
    font-size: 10px;
    color: var(--rnd-text-dim, #8a919e);
}

/* Cuisson: tous les elements sont toujours interactifs */
.node-element:not(.editing) .cui-cat-chip,
.node-element:not(.editing) .cui-technique-selector,
.node-element:not(.editing) .cui-context-select,
.node-element:not(.editing) .cui-spec-input {
    pointer-events: auto;
    opacity: 1;
    cursor: pointer;
}

