
/* Menu Page Styles - Glass Morphism Style with Bottom Popup */
#menu-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    z-index: 1000;
    overflow: hidden;
    display: none;
}

.menu-page-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(25px);
    border-radius: 24px 24px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: none;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
}

.menu-drag-handle {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    margin: 12px auto;
    cursor: grab;
}

.menu-drag-handle:active {
    cursor: grabbing;
}

.menu-close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    z-index: 10;
}

.menu-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-content {
    padding: 16px 20px 24px;
    overflow-y: auto;
    height: calc(100% - 60px);
}

/* Hide scrollbar for Chrome, Safari and Opera */
.menu-content::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.menu-content {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.menu-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    min-height: 100px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.menu-option:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.menu-option-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Specific icon colors with glass effect */
.menu-option[data-action="manage-account"] .menu-option-icon {
    background: rgba(24, 119, 242, 0.8);
    color: white;
}

.menu-option[data-action="request-verification"] .menu-option-icon {
    background: rgba(29, 155, 240, 0.8);
    color: white;
}

.menu-option[data-action="help"] .menu-option-icon {
    background: rgba(69, 189, 98, 0.8);
    color: white;
}

.menu-option[data-action="privacy"] .menu-option-icon {
    background: rgba(247, 185, 40, 0.8);
    color: white;
}

.menu-option[data-action="terms"] .menu-option-icon {
    background: rgba(245, 83, 61, 0.8);
    color: white;
}

.menu-option[data-action="community-standards"] .menu-option-icon {
    background: rgba(147, 96, 247, 0.8);
    color: white;
}

.menu-option[data-action="contact"] .menu-option-icon {
    background: rgba(107, 107, 107, 0.8);
    color: white;
}

.menu-option-text {
    font-size: 14px;
    font-weight: 600;
    color: white;
    line-height: 1.3;
    text-align: center;
}

/* Verification badge icon */
.verification-badge-menu {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verification-badge-menu svg {
    width: 20px;
    height: 20px;
    fill: white;
}

/* Professional Logout Option */
.logout-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.logout-option {
    display: flex;
    align-items: center;
    padding: 16px;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    width: 100%;
    text-align: left;
    border-radius: 12px;
}

.logout-option:hover {
    background: rgba(255, 107, 107, 0.1);
}

.logout-option-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 18px;
    background: rgba(255, 107, 107, 0.8);
    color: white;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.logout-option-text {
    font-size: 16px;
    font-weight: 600;
    color: #ff6b6b;
    flex: 1;
}

.logout-option-arrow {
    color: #ff6b6b;
    font-size: 14px;
}

/* Dark mode styles */
@media (prefers-color-scheme: dark) {
    .menu-page-container {
        background: rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: none;
    }
    
    .menu-close-btn {
        color: #e4e6eb;
    }
    
    .menu-close-btn:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .menu-option {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .menu-option:hover {
        background: rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    }
    
    .menu-option-text {
        color: #e4e6eb;
    }
    
    /* Dark mode for logout */
    .logout-section {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .logout-option:hover {
        background: rgba(255, 107, 107, 0.15);
    }
    
    .logout-option-text {
        color: #f56565;
    }
    
    .logout-option-arrow {
        color: #f56565;
    }
}

/* Desktop responsive styles */
@media (min-width: 601px) {
    .menu-page-container {
        left: 50%;
        transform: translateX(-50%);
        max-width: 500px;
        border-radius: 24px;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .menu-grid {
        gap: 16px;
    }
    
    .menu-option {
        padding: 24px 16px;
        min-height: 120px;
    }
    
    .menu-option-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }
    
    .menu-option-text {
        font-size: 15px;
    }
}

/* Mobile optimization */
@media (max-width: 380px) {
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .menu-option {
        min-height: 90px;
        padding: 16px 12px;
    }
    
    .menu-option-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .menu-option-text {
        font-size: 13px;
    }
}

/* Dragging state */
#menu-container.dragging .menu-page-container {
    transition: none;
}
