/* --- START OF FILE static/architecture.css --- */

/* --- VARIABLES --- */
:root {
    --arch-bg: rgba(12, 12, 12, 0.95);
    --arch-border: #333;
    --neon-green: #00ff9d;
    --neon-blue: #00a8ff;
    --neon-orange: #ff9f43;
    --neon-red: #ff5e57;
}

/* --- CONTAINER --- */
.arch-window {
    background-color: var(--arch-bg);
    backdrop-filter: blur(5px);
    border: 1px solid var(--arch-border);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
    height: 220px; /* Совпадает с терминалом Linux */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.arch-window:hover {
    border-color: #555;
    transform: translateY(-2px);
}

/* --- HEADER --- */
.arch-header-ui {
    background-color: #1a1b1c;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--arch-border);
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.arch-status {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--neon-green);
}

.arch-dot {
    width: 6px;
    height: 6px;
    background: var(--neon-green);
    border-radius: 50%;
    animation: arch-blink 2s infinite;
    box-shadow: 0 0 5px var(--neon-green);
}

@keyframes arch-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* --- SCENE LAYOUT --- */
.arch-scene {
    flex-grow: 1;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px; /* Отступы по бокам */
}

/* SVG WIRES LAYER */
.arch-wires-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: visible;
}

.wire-path {
    fill: none;
    stroke: #333;
    stroke-width: 2px;
    stroke-linecap: round;
}

/* PACKETS (PARTICLES) */
.packet {
    fill: white;
    filter: drop-shadow(0 0 4px white);
    opacity: 0;
}
.packet.type-req { fill: var(--neon-green); filter: drop-shadow(0 0 6px var(--neon-green)); }
.packet.type-db { fill: var(--neon-blue); filter: drop-shadow(0 0 6px var(--neon-blue)); }
.packet.type-cache { fill: var(--neon-orange); filter: drop-shadow(0 0 6px var(--neon-orange)); }
.packet.type-err { fill: var(--neon-red); filter: drop-shadow(0 0 6px var(--neon-red)); }

/* --- NODES --- */
.arch-node {
    background: #111;
    border: 1px solid #333;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 60px;
    position: relative;
    z-index: 1;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.arch-node i {
    font-size: 1.4rem;
    color: #555;
    margin-bottom: 4px;
    transition: color 0.3s;
}

.arch-node span {
    font-size: 10px;
    color: #666;
    font-weight: 600;
    transition: color 0.3s;
}

/* Small nodes group (Right column) */
.arch-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

.arch-node.sm {
    height: 40px;
    width: 80px;
    flex-direction: row; /* Иконка рядом с текстом */
    gap: 8px;
}
.arch-node.sm i { font-size: 1.1rem; margin-bottom: 0; }
.arch-node.sm span { font-size: 9px; }


/* --- ACTIVE STATES --- */
.arch-node.active {
    transform: scale(1.08);
    border-color: #777;
    z-index: 2;
}

/* Green Pulse */
.arch-node.pulse-green { border-color: var(--neon-green); box-shadow: 0 0 15px rgba(0, 255, 157, 0.15); }
.arch-node.pulse-green i { color: var(--neon-green); text-shadow: 0 0 8px var(--neon-green); }
.arch-node.pulse-green span { color: white; }

/* Blue Pulse */
.arch-node.pulse-blue { border-color: var(--neon-blue); box-shadow: 0 0 15px rgba(0, 168, 255, 0.15); }
.arch-node.pulse-blue i { color: var(--neon-blue); text-shadow: 0 0 8px var(--neon-blue); }
.arch-node.pulse-blue span { color: white; }

/* Orange Pulse */
.arch-node.pulse-orange { border-color: var(--neon-orange); box-shadow: 0 0 15px rgba(255, 159, 67, 0.15); }
.arch-node.pulse-orange i { color: var(--neon-orange); text-shadow: 0 0 8px var(--neon-orange); }
.arch-node.pulse-orange span { color: white; }

/* Red Pulse */
.arch-node.pulse-red { border-color: var(--neon-red); box-shadow: 0 0 15px rgba(255, 94, 87, 0.15); }
.arch-node.pulse-red i { color: var(--neon-red); text-shadow: 0 0 8px var(--neon-red); }
.arch-node.pulse-red span { color: white; }


/* --- LOGS --- */
.arch-logs {
    height: 36px;
    background: #0a0a0a;
    border-top: 1px solid var(--arch-border);
    padding: 0 12px;
    display: flex;
    align-items: center;
    font-family: 'Fira Code', monospace;
    font-size: 10px;
    color: #777;
    overflow: hidden;
    white-space: nowrap;
}

.arch-log-line {
    animation: arch-slide-up 0.3s ease-out;
}
.arch-log-line span { margin-right: 8px; }
.log-method { color: #bbb; font-weight: bold; }
.c-green { color: var(--neon-green); }
.c-blue { color: var(--neon-blue); }
.c-orange { color: var(--neon-orange); }
.c-red { color: var(--neon-red); }

@keyframes arch-slide-up {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}