/* Component Styles */
.component {
    position: absolute;
    transform-style: preserve-3d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.component:hover {
    filter: brightness(1.2);
    transform: translateZ(10px);
}

.component-face {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

/* Motherboard */
#motherboard {
    width: 200px;
    height: 150px;
    transform: translate3d(-100px, -75px, 0);
}
.motherboard-face {
    width: 200px;
    height: 150px;
    background: var(--success-color) !important;
}

/* CPU */
#cpu {
    width: 40px;
    height: 40px;
    transform: translate3d(-20px, -95px, 10px);
}
.cpu-face {
    width: 40px;
    height: 40px;
    background: var(--accent-color) !important;
}

/* RAM */
#ram {
    width: 18px;
    height: 80px;
    transform: translate3d(-169px, -55px, 5px);
}
.ram-face {
    width: 18px;
    height: 80px;
    background: var(--primary-color) !important;
}

/* Storage */
#storage {
    width: 60px;
    height: 40px;
    transform: translate3d(70px, -65px, 5px);
}
.storage-face {
    width: 60px;
    height: 40px;
    background: var(--warning-color) !important;
}

/* PSU */
#psu {
    width: 80px;
    height: 60px;
    transform: translate3d(-40px, 25px, 5px);
}
.psu-face {
    width: 80px;
    height: 60px;
    background: var(--purple-color) !important;
}

/* GPU */
#gpu {
    width: 60px;
    height: 80px;
    transform: translate3d(30px, -115px, 5px);
}
.gpu-face {
    width: 60px;
    height: 80px;
    background: var(--info-color) !important;
}

/* Responsive Components */
@media (max-width: 768px) {
    .component-face {
        font-size: 10px;
    }
    
    #motherboard {
        width: 160px;
        height: 120px;
        transform: translate3d(-80px, -60px, 0);
    }
    .motherboard-face {
        width: 160px;
        height: 120px;
    }
    
    /* Adjust other components for mobile */
    #cpu {
        transform: translate3d(-15px, -75px, 10px);
    }
    
    #ram {
        transform: translate3d(-135px, -45px, 5px);
    }
    
    #storage {
        transform: translate3d(55px, -50px, 5px);
    }
    
    #psu {
        transform: translate3d(-30px, 20px, 5px);
    }
    
    #gpu {
        transform: translate3d(25px, -90px, 5px);
    }
}