/* Custom Background Setup */
body { 
    background-image: url('ADEULL.png'); 
    background-size: cover; 
    background-position: center; 
    background-attachment: fixed;
    background-color: #050505;
    margin: 0;
    overflow: hidden; /* Bilgisayarda kaydırma çubuğunu gizler */
}

/* Glassmorphism Panel */
.glass-panel { 
    background: rgba(255, 255, 255, 0.05); 
    backdrop-filter: blur(30px); 
    -webkit-backdrop-filter: blur(30px); 
    border: 1px solid rgba(255, 255, 255, 0.15); 
}

/* Landing Page Darkening Overlay */
.bg-overlay {
    background-color: rgba(0, 0, 0, 0.6); 
    position: absolute;
    inset: 0;
    z-index: -1;
}

/* Menu Items */
.menu-item { 
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
    letter-spacing: 0.3em; 
    font-weight: 700; 
    font-size: 0.85rem; 
    padding: 1rem 1.5rem; 
    border-radius: 1rem; 
    border: 1px solid transparent; 
    background: transparent;
    transform-origin: left center;
    color: rgba(255, 255, 255, 0.8);
}
.menu-item:hover { 
    background: rgba(255, 255, 255, 0.08); 
    backdrop-filter: blur(12px); 
    border: 1px solid rgba(255, 255, 255, 0.2); 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); 
    transform: translateX(10px) scale(1.02); 
    color: #ffffff;
}

/* Side Menu Items */
.side-menu-item {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
    letter-spacing: 0.25em; 
    font-weight: 700; 
    font-size: 0.75rem; 
    padding: 0.8rem 1.2rem; 
    border-radius: 0.8rem; 
    border: 1px solid transparent; 
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    text-align: left;
    width: 100%;
    display: flex; 
    justify-content: space-between;
    align-items: center;
}
.side-menu-item:hover {
    background: rgba(255, 255, 255, 0.08); 
    border: 1px solid rgba(255, 255, 255, 0.2); 
    transform: translateX(8px); 
    color: #ffffff;
}

/* Transitions & States */
#dashboard { opacity: 0; pointer-events: none; transition: opacity 1s ease; }
#dashboard.active { opacity: 1; pointer-events: auto; }
#landing { transition: opacity 1s ease; }
#landing.hidden { opacity: 0; pointer-events: none; }

#userSidePanel { transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
#userSidePanel.open { transform: translateX(0); }

#loginScreen { transition: opacity 0.8s ease; }
#appContent { opacity: 0; pointer-events: none; transition: opacity 1s ease; }
#appContent.active { opacity: 1; pointer-events: auto; }

/* Render Image Container */
.render-img-container { 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease; 
    cursor: zoom-in; 
}
.render-img-container.fullscreen { position: fixed; inset: 0; z-index: 200; background: black; border-radius: 0; padding: 0; border: none; cursor: zoom-out; }

/* ADEUL AI Watermark Styles */
.adeul-watermark {
    bottom: 2rem;
    right: 2rem;
    opacity: 0.5;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* Material Board specific override to keep text crisp when downloaded */
.mood-board {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1a1a1a;
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; }


/* ==============================================================
// 📱 MOBİL UYUMLULUK (TELEFON VE TABLET EKRANLARI İÇİN)
// ============================================================== */
@media screen and (max-width: 1024px) {
    /* Telefonda içeriğin aşağıya kaydırılabilmesini sağla */
    body {
        overflow-y: auto !important; 
        overflow-x: hidden !important;
        height: auto !important;
        min-height: 100vh;
    }

    /* Ana dashboard'u alt alta diz (Yan yana binmeyi engeller) */
    #dashboard > div.flex {
        flex-direction: column !important;
        height: auto !important;
    }

    /* Tailwind genişlik sınıflarını telefonda %100 yap */
    .w-1\/4, .w-1\/3, .w-1\/2, .w-2\/3, .w-3\/4 {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Yükleme alanlarını (Sol ve Sağ Kutu) alt alta diz */
    #dualUpload, #designUpload, #singleUpload {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    /* Sağdaki "Üretici Ağı" panelini aşağıya it ve üst üste binmesini engelle */
    #netwrolerPanel {
        position: relative !important; /* Tasarımın üzerine binmesini engeller */
        width: 100% !important;
        margin-top: 2rem !important;
        height: auto !important;
    }

    /* Sol menüyü mobil için yatay veya alt alta düzenle */
    #dashboard .flex-col {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Menü butonlarını küçült ve ekrana sığdır */
    .menu-item {
        font-size: 0.75rem;
        padding: 0.8rem 1rem;
        letter-spacing: 0.15em;
        text-align: center;
        transform: none !important; /* Telefondaki garip kaymaları engeller */
    }
    
    .menu-item:hover {
        transform: scale(1.02) !important;
    }

    /* Yükleme kutularının yüksekliğini telefona uygun hale getir */
    .border-dashed {
        min-height: 250px !important;
        height: 250px !important;
    }

    /* Panellerin arasındaki boşluklar */
    .glass-panel {
        margin-bottom: 1.5rem !important;
    }

    /* Telefondaki Render Alanı (Pop-up) */
    .render-img-container.fullscreen {
        padding: 1rem !important;
    }
}