/* Workflow Animation Styles - Enhanced */
.agent-workflow {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.agent-workflow svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Background glow pulse */
.bg-glow {
    animation: bgPulse 4s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 0.02; transform: scale(1); }
    50% { opacity: 0.05; transform: scale(1.1); }
}

/* Node base styles */
.node {
    transition: transform 0.3s ease;
    /* Cursor pointer removed as interactivity is disabled */
}

/* Hover effects removed */

/* Node icons */
.node-icon {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Node label */
.node-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    fill: #e6edf3;
    text-anchor: middle;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

/* Core node auras - double layer animation */
.core .aura {
    fill: none;
    stroke: #14b8a6;
    stroke-width: 2;
    opacity: 0.15;
    animation: auraPulse 3s ease-in-out infinite;
}

.core .aura-pulse {
    fill: none;
    stroke: #00f5ff;
    stroke-width: 1.5;
    opacity: 0.2;
    animation: auraPulse2 3s ease-in-out infinite 0.5s;
}

@keyframes auraPulse {
    0%, 100% {
        opacity: 0.1;
        transform: scale(1);
        stroke-width: 2;
    }
    50% {
        opacity: 0.25;
        transform: scale(1.15);
        stroke-width: 1;
    }
}

@keyframes auraPulse2 {
    0%, 100% {
        opacity: 0.15;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.2);
    }
}

/* Connector lines - gradient flow */
.connector {
    stroke-width: 2.5;
    fill: none;
    opacity: 0.5;
    transition: all 0.4s ease;
    filter: drop-shadow(0 0 8px rgba(0, 245, 255, 0.3));
}

.connector.active {
    opacity: 1;
    stroke-width: 3;
    animation: flowPulse 1.2s ease-in-out;
    filter: drop-shadow(0 0 12px rgba(0, 245, 255, 0.8));
}

@keyframes flowPulse {
    0% { opacity: 0.5; stroke-width: 2.5; }
    50% { opacity: 1; stroke-width: 4; }
    100% { opacity: 0.5; stroke-width: 2.5; }
}

/* Node hover and focus states removed */

.node.flash .node-inner {
    animation: nodeFlash 0.8s ease;
    transform-origin: 0px 0px;
}

@keyframes nodeFlash {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(0, 245, 255, 0));
    }
    50% {
        transform: scale(1.2);
        filter: drop-shadow(0 0 30px rgba(0, 245, 255, 1));
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(0, 245, 255, 0));
    }
}

/* Dim effect removed */

/* Tooltip styles removed */

/* Responsive adjustments */
@media (max-width: 768px) {
    .agent-workflow {
        max-width: 100%;
        padding: 0 1rem;
    }

    .section-label {
        font-size: 6px;
    }

    .node text {
        font-size: 7px;
    }

    /* Hide tooltip on mobile for better UX */
    .workflow-tooltip {
        display: none;
    }
}

@media (max-width: 480px) {
    .agent-workflow svg {
        max-height: 500px;
    }

    .section-label {
        font-size: 5px;
    }

    .node text {
        font-size: 6px;
    }
}

/* Animation preferences */
@media (prefers-reduced-motion: reduce) {
    .connector.active {
        animation: none;
    }

    .core .aura {
        animation: none;
    }

    .node.flash circle {
        animation: none;
    }

    .node:hover circle,
    .node.focus circle {
        transition: none;
    }
}
