/* Simple Architecture Design */
.architecture-container {
    min-height: 100vh;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}



.architecture-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
    align-items: center;
    position: relative;
    
    /* Elevated glassy container */
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 3rem;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 10px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    
    /* Decorative border effect */
    position: relative;
    overflow: visible;
}

.architecture-grid::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(255,255,255,0.2) 0%, 
        rgba(255,255,255,0.1) 25%, 
        rgba(255,255,255,0.05) 50%, 
        rgba(255,255,255,0.1) 75%, 
        rgba(255,255,255,0.2) 100%);
    border-radius: 32px;
    z-index: -1;
    animation: borderGlow 4s ease-in-out infinite alternate;
}

@keyframes borderGlow {
    0% { opacity: 0.5; }
    100% { opacity: 0.8; }
}

.layer {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.layer-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
}

.node {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
    border: 2px solid rgba(255,255,255,0.3);
    z-index: 2;
}

.node:hover {
    transform: scale(1.1);
}

.node i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.node-label {
    font-size: 0.7rem;
    text-align: center;
    font-weight: 500;
}

/* Node Colors */
.oracle-fusion { background: linear-gradient(135deg, #ef4444, #dc2626); }
.oracle-ebs { background: linear-gradient(135deg, #f97316, #ea580c); }
.postgresql { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.sharepoint { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.sftp { background: linear-gradient(135deg, #10b981, #059669); }

.matillion { background: linear-gradient(135deg, #f59e0b, #d97706); }
.python { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.sql { background: linear-gradient(135deg, #06b6d4, #0891b2); }

.incoming { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.silver { background: linear-gradient(135deg, #64748b, #475569); }
.goldstg { background: linear-gradient(135deg, #eab308, #ca8a04); }
.gold { background: linear-gradient(135deg, #f59e0b, #d97706); }

.powerbi { background: linear-gradient(135deg, #eab308, #ca8a04); }
.datascience { background: linear-gradient(135deg, #a855f7, #9333ea); }

/* Snowflake Special Layout */
.snowflake-layer {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.arrow {
    font-size: 1.5rem;
    color: #10b981;
    font-weight: bold;
}

/* Snowflake layer positioning */
.snowflake-layer {
    position: relative;
}

.tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.node:hover .tooltip {
    opacity: 1;
}

/* Custom Info Popup */
.info-popup {
    position: fixed;
    width: 400px;
    max-width: 90vw;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    z-index: 9999;
    font-family: 'Georgia', serif;
}

.popup-header {
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 13px 13px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header h5 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    font-style: normal;
}

.popup-close {
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.popup-close:hover {
    opacity: 1;
}

.popup-body {
    padding: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    color: white;
    background: rgba(0,0,0,0.1);
    border-radius: 0 0 13px 13px;
}

.popup-body p {
    margin-bottom: 1rem;
    font-style: italic;
}

.popup-body ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.popup-body li {
    margin-bottom: 0.5rem;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .info-popup {
        width: 350px;
        font-size: 0.9rem;
    }
}

/* Tablet Portrait */
@media (max-width: 1024px) {
    .architecture-container {
        padding: 2rem;
    }
    
    .architecture-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        padding: 2rem;
    }
    
    .node {
        width: 80px;
        height: 80px;
        font-size: 1.8rem;
    }
    
    .node-label {
        font-size: 0.6rem;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) {
    .architecture-container {
        padding: 1.5rem;
    }
    
    .architecture-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
        border-radius: 20px;
    }
    
    .architecture-grid::before {
        border-radius: 22px;
    }
    
    .layer-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .node {
        width: 70px;
        height: 70px;
        font-size: 1.5rem;
    }
    
    .info-popup {
        width: 350px;
        font-size: 0.9rem;
    }
}

/* Mobile Portrait */
@media (max-width: 576px) {
    .architecture-container {
        padding: 1rem;
        min-height: auto;
    }
    
    .architecture-grid {
        gap: 1.5rem;
        padding: 1rem;
        border-radius: 15px;
    }
    
    .architecture-grid::before {
        border-radius: 17px;
    }
    
    .layer {
        gap: 1rem;
    }
    
    .layer-title {
        font-size: 0.9rem;
    }
    
    .node {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    
    .node-label {
        font-size: 0.5rem;
    }
    
    .info-popup {
        width: 300px;
        font-size: 0.8rem;
    }
    
    .popup-header {
        padding: 0.8rem 1rem;
    }
    
    .popup-body {
        padding: 1rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .architecture-grid {
        padding: 0.8rem;
        gap: 1rem;
    }
    
    .node {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .info-popup {
        width: 280px;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 600px) {
    .architecture-container {
        padding: 1rem;
    }
    
    .architecture-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .layer {
        gap: 1rem;
    }
    
    .node {
        width: 60px;
        height: 60px;
    }
}