/* 
 * phone.css
 * Mobile-specific styles for XenoArt Gallery
 * This file contains styles that only apply to mobile devices
 */

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.mobile-nav-toggle:hover {
    background: rgba(255,255,255,0.1);
}

.mobile-nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    display: none;
}

.mobile-nav-menu.active {
    transform: translateY(0);
    display: block;
}

.mobile-nav-menu .nav {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
}

.mobile-nav-menu .nav a {
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 18px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

/* Mobile-specific layout adjustments */
@media (max-width: 767px) {
    .nft-grid {
        grid-template-columns: 1fr !important;
        gap: 8px;
        padding: 0 6px;
        max-width: 100%;
        margin: 0 auto 24px auto;
    }
    
    .header {
        padding: 12px 15px;
    }
    
    .feature-btn {
        width: 40px;
        height: 40px;
    }
    
    /* Scale down ALL popup menus on mobile */
    .popup-menu {
        width: 90vw !important;
        max-width: 280px !important;
        min-width: 200px !important;
        padding: 15px !important;
        font-size: 13px !important;
        max-height: 60vh !important;
        overflow-y: auto !important;
    }
    
    .popup-menu h3 {
        font-size: 14px !important;
        margin-bottom: 10px !important;
    }
    
    .popup-menu div {
        font-size: 12px !important;
    }
    
    .popup-menu button {
        padding: 6px 10px !important;
        font-size: 11px !important;
        min-height: 30px !important;
    }
    
    .popup-menu input,
    .popup-menu select,
    .popup-menu textarea {
        font-size: 12px !important;
        padding: 6px 8px !important;
    }
    
    /* Avatar panel mobile */
    #avatar-menu {
        width: 85vw !important;
        max-width: 270px !important;
    }
    
    /* Chat menu mobile */
    #chat-menu {
        width: 85vw !important;
        max-width: 270px !important;
        max-height: 55vh !important;
    }
    
    /* Audio menu mobile */
    #audio-menu {
        width: 85vw !important;
        max-width: 270px !important;
    }
    
    /* Status menu mobile */
    #status-menu {
        width: 85vw !important;
        max-width: 270px !important;
    }
    
    /* Social panel mobile */
    #social-panel {
        width: 85vw !important;
        max-width: 270px !important;
    }
    
    /* XenoArt popup mobile */
    #xenoart-popup {
        width: 85vw !important;
        max-width: 270px !important;
    }
}


/* Camera toggle for mobile */
.camera-toggle-mobile {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    color: white;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}


/* Hide gallery-specific buttons when gallery is not active */
#three-gallery:not([style*="display: block"]) #canvas-btn,
#three-gallery:not([style*="display: block"]) #toggle-claude-btn,
body:not(.gallery-active) #canvas-btn,
body:not(.gallery-active) #toggle-claude-btn {
    display: none !important;
}

/* Show buttons only when gallery is active */
#three-gallery[style*="display: block"] #canvas-btn,
#three-gallery[style*="display: block"] #toggle-claude-btn,
body.gallery-active #canvas-btn,
body.gallery-active #toggle-claude-btn {
    display: flex !important;
}

