/* Mobile-friendly Architecture Diagram Styles */

.architecture-diagram {
    width: 100%;
    height: 400px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}

/* Mobile adjustments for architecture diagram */
@media (max-width: 768px) {
    .architecture-diagram {
        height: 500px; /* Taller on mobile to accommodate vertical layout */
    }
    
    /* Component adjustments for mobile */
    .component-circle {
        r: 30 !important; /* Smaller circles on mobile */
    }
    
    .component-label {
        font-size: 12px !important; /* Smaller text on mobile */
    }
    
    /* Tooltip adjustments for mobile */
    .component-tooltip rect {
        width: 180px !important;
        x: calc(50% - 90px) !important;
    }
    
    .component-tooltip text {
        font-size: 10px !important;
    }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
    .architecture-diagram {
        height: 600px; /* Even taller on small mobile */
    }
    
    .component-circle {
        r: 25 !important; /* Even smaller circles on small mobile */
    }
    
    /* Adjust animation for mobile */
    @keyframes mobileDotMovement {
        0% { transform: translateY(0); }
        50% { transform: translateY(-10px); }
        100% { transform: translateY(0); }
    }
    
    .architecture-component {
        animation: mobileDotMovement 3s infinite ease-in-out;
    }
    
    /* Stagger animations */
    .architecture-component:nth-child(odd) {
        animation-delay: 0.5s;
    }
}

/* Architecture diagram animation effects */
.architecture-component {
    transition: transform 0.3s ease;
}

.architecture-component:hover {
    transform: scale(1.1);
}

.connection-path {
    stroke-dasharray: 5;
    animation: flowAnimation 30s infinite linear;
}

@keyframes flowAnimation {
    to {
        stroke-dashoffset: 1000;
    }
}

/* Architecture stages navigation */
.architecture-stages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.architecture-stage {
    padding: 10px 15px;
    background-color: #f5f5f5;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.architecture-stage.active {
    background: linear-gradient(135deg, #4a00e0, #8e2de2);
    color: white;
}

/* Mobile adjustments for stages */
@media (max-width: 768px) {
    .architecture-stages {
        flex-direction: column;
        align-items: center;
    }
    
    .architecture-stage {
        width: 80%;
        text-align: center;
    }
}
