/**
 * Mobile Menu Fix
 * This file specifically fixes mobile menu layout issues
 */

/* Mobile menu styles */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 2000;
    overflow-y: auto;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.mobile-menu.active {
    display: block !important;
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eaeaea;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: #333;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav-list {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-nav-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 15px;
}

.mobile-nav-item:last-child {
    border-bottom: none;
}

/* Ensure mobile auth buttons are properly styled */
.mobile-nav-item.mobile-auth-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    padding-top: 20px !important;
    margin-top: 20px !important;
    border-top: 1px solid #eaeaea !important;
}

.mobile-nav-link {
    display: block;
    padding: 5px 0;
    color: #333;
    font-weight: 500;
    font-size: 1.1rem;
}

.mobile-nav-link.active {
    color: #4a80f0;
}

.mobile-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px 0;
    margin-top: 20px;
    border-top: 1px solid #eaeaea;
}

.mobile-auth-buttons .btn {
    width: 100%;
    text-align: center;
    margin-bottom: 5px;
    padding: 12px 15px;
    font-weight: 500;
    font-size: 16px;
    display: block;
}

.mobile-auth-buttons .btn-outline {
    border: 1px solid #3a7bd5;
    color: #3a7bd5;
}

.mobile-auth-buttons .btn-primary {
    background-color: #3a7bd5;
    color: white;
}

.mobile-auth-buttons .btn-secondary {
    background-color: #6c757d;
    color: white;
}