/* Sidebar Navigation Scroll Fix */
/* Ensures all navigation items including the button are visible on all screen sizes */

/* Make the navigation container scrollable */
#navigation.navbar-collapse {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Smooth scrolling */
#navigation.navbar-collapse {
    scroll-behavior: smooth;
}

/* Custom scrollbar styling for better UX */
#navigation.navbar-collapse::-webkit-scrollbar {
    width: 6px;
}

#navigation.navbar-collapse::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

#navigation.navbar-collapse::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

#navigation.navbar-collapse::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Ensure the profile section doesn't take too much space on small screens */
@media (max-height: 800px) {
    .profile-section .bio {
        max-height: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .profile-image {
        width: 80px !important;
        height: 80px !important;
    }
}

/* Extra small screens - make even more compact */
@media (max-height: 600px) {
    .profile-section .bio {
        max-height: 80px;
        font-size: 0.85rem;
    }
    
    .profile-image {
        width: 60px !important;
        height: 60px !important;
    }
    
    .social-list {
        margin: 0.5rem 0 !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.4rem 0.5rem !important;
        font-size: 0.9rem;
    }
}

/* Ensure button is always visible and properly spaced */
.my-2.my-md-3 {
    margin-bottom: 1.5rem !important;
    padding-bottom: 1rem;
}

/* Mobile landscape fix */
@media (max-height: 500px) and (orientation: landscape) {
    #navigation.navbar-collapse {
        max-height: calc(100vh - 60px);
    }
    
    .profile-section {
        padding-top: 0.5rem !important;
    }
    
    .blog-name {
        padding-top: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }
}
