﻿/* =====================================================================
   GLOBAL UTILITY: LIST BLUEPRINT CORE FRAMEWORK
   ===================================================================== */

/* 1. Global Board Wrapper */
.list-blueprint-board {
    align-self: flex-start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 16px 20px;
    margin: 16px 0;
    position: relative;
    background-color: #0b132b;
    background-image: linear-gradient(rgba(0, 242, 254, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 242, 254, 0.03) 1px, transparent 1px);
    background-size: 15px 15px;
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-left: 5px solid #00f2fe;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 0 12px rgba(0, 242, 254, 0.05);
}

    /* Force perfect raw code text rendering cases globally inside the blueprint */
    .list-blueprint-board * {
        text-transform: none !important;
    }

/* 2. Top Alignment Header Bar */
.list-blueprint-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 6px 16px !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 12px;
    box-sizing: border-box;
    width: 100%;
}

/* 3. Universal Row Item Blocks */
.list-blueprint-shelf {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    background: rgba(30, 27, 24, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 4px solid #5c4331;
    padding: 4px 16px !important;
    gap: 0;
    border-radius: 6px;
    transition: all 0.2s ease;
    margin-bottom: 6px;
}

    .list-blueprint-shelf:hover {
        background: rgba(255, 255, 255, 0.06);
    }

    /* Active status glow */
    .list-blueprint-shelf.blueprint-active {
        background: rgba(45, 91, 227, 0.1);
        border-color: rgba(45, 91, 227, 0.2);
        border-bottom-color: #3b6eff;
        box-shadow: 0 4px 15px rgba(45, 91, 227, 0.15);
    }

/* 4. Left Side Entry Node Cell */
.list-blueprint-key {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 30% !important;
    flex-shrink: 0;
    background: rgba(15, 12, 10, 0.6);
    padding: 4px 12px !important;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    min-width: 0;
}

/* 5. Center Laser Divider Splitter */
.list-blueprint-divider {
    width: 4px;
    background: linear-gradient(180deg, #5c4331 0%, #2b1e15 100%);
    margin: 0 16px;
    flex-shrink: 0;
    border-radius: 4px;
    align-self: stretch;
}

.blueprint-active .list-blueprint-divider {
    background: linear-gradient(180deg, #3b6eff 0%, #00d2ff 100%);
    box-shadow: 0 0 12px rgba(45, 91, 227, 0.8);
}

/* 6. Right Side Data Accumulation Cell */
.list-blueprint-value {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    min-width: 0;
}

/* Typography Helper Classes */
.bp-font-code {
    font-family: 'Fira Code', Consolas, Monaco, monospace;
    font-size: 13px;
    color: #ffffff;
}

.bp-font-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 600;
}

.bp-font-highlight {
    color: #f59e0b !important;
    font-weight: 700;
}
.list-blueprint-empty {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 16px;
    text-align: center;
    color: #a1836f;
    font-weight: bold;
    gap: 8px;
}

.list-blueprint-empty-icon {
    font-size: 34px;
}

/* Responsive Grid Inversions */
@media(max-width: 1200px) {
    .list-blueprint-key, .list-blueprint-header > :first-child {
        width: 25% !important;
    }
}

@media(max-width: 768px) {
    .list-blueprint-header {
        display: none;
    }

    .list-blueprint-shelf {
        flex-direction: column;
        align-items: stretch;
        padding: 12px !important;
        gap: 8px;
    }

    .list-blueprint-key {
        width: 100% !important;
    }

    .list-blueprint-divider {
        width: 100%;
        height: 2px;
        margin: 4px 0;
        background: linear-gradient(90deg, #5c4331 0%, #2b1e15 100%);
    }

    .blueprint-active .list-blueprint-divider {
        background: linear-gradient(90deg, #3b6eff 0%, #00d2ff 100%);
    }

    .list-blueprint-value {
        align-items: flex-start;
        padding-left: 4px;
    }
}
