/* ═══════════════════════════════════════════════════════════
   Architecture Node Styles
   ═══════════════════════════════════════════════════════════ */

.arch-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

/* ── Node Grid ────────────────────────────── */
.arch-section {
    margin-bottom: 40px;
}

.arch-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-blue);
    margin-bottom: 14px;
    padding-left: 4px;
}

.node-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

/* ── Individual Node ──────────────────────── */
.sys-node {
    position: relative;
    padding: 16px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
    cursor: pointer;
    transition: all 0.25s ease;
    overflow: hidden;
}

.sys-node::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    border-radius: 3px 0 0 3px;
    transition: background 0.25s;
}

.sys-node:hover {
    border-color: var(--accent-blue);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(74, 142, 255, 0.1);
}

.sys-node .node-icon {
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.sys-node .node-name {
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 2px;
}

.sys-node .node-role {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.sys-node .node-tag {
    margin-top: 8px;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ── Category Colors ──────────────────────── */
.sys-node[data-cat="core"]::before {
    background: var(--accent-blue);
}

.sys-node[data-cat="lobe"]::before {
    background: var(--accent-purple);
}

.sys-node[data-cat="engine"]::before {
    background: var(--accent-cyan);
}

.sys-node[data-cat="memory"]::before {
    background: var(--accent-green);
}

.sys-node[data-cat="security"]::before {
    background: var(--accent-red);
}

.sys-node[data-cat="daemon"]::before {
    background: var(--accent-orange);
}

.sys-node[data-cat="agent"]::before {
    background: var(--accent-pink);
}

.sys-node[data-cat="tool"]::before {
    background: var(--accent-yellow);
}

.sys-node[data-cat="channel"]::before {
    background: var(--accent-cyan);
}

.sys-node[data-cat="infra"]::before {
    background: var(--text-secondary);
}

.node-tag.core {
    background: rgba(74, 142, 255, .12);
    color: var(--accent-blue);
}

.node-tag.lobe {
    background: rgba(139, 92, 246, .12);
    color: var(--accent-purple);
}

.node-tag.engine {
    background: rgba(6, 182, 212, .12);
    color: var(--accent-cyan);
}

.node-tag.memory {
    background: rgba(34, 197, 94, .12);
    color: var(--accent-green);
}

.node-tag.security {
    background: rgba(239, 68, 68, .12);
    color: var(--accent-red);
}

.node-tag.daemon {
    background: rgba(245, 158, 11, .12);
    color: var(--accent-orange);
}

.node-tag.agent {
    background: rgba(236, 72, 153, .12);
    color: var(--accent-pink);
}

.node-tag.tool {
    background: rgba(234, 179, 8, .12);
    color: var(--accent-yellow);
}

.node-tag.channel {
    background: rgba(6, 182, 212, .12);
    color: var(--accent-cyan);
}

.node-tag.infra {
    background: rgba(152, 152, 176, .12);
    color: var(--text-secondary);
}

/* ── Connection Arrows ────────────────────── */
.arch-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8px 0;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.arch-flow .flow-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.arch-flow .flow-label {
    padding: 2px 10px;
    border-radius: 99px;
    border: 1px solid var(--border);
    background: var(--bg-primary);
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

/* ── Live Pulse Animation ─────────────────── */
.sys-node.pulse {
    animation: node-pulse 1.5s ease;
}

@keyframes node-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 142, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(74, 142, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(74, 142, 255, 0);
    }
}