/* LegalExpert - Mobile Styles */

/* Mobile Sidebar Menu */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #0066CC 0%, #004999 100%);
    z-index: 1060;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
}

.mobile-sidebar.show {
    left: 0;
}

.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1059;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

body.mobile-menu-open {
    overflow: hidden;
}

.mobile-sidebar-header {
    padding: 1.5rem;
    background: rgba(0,0,0,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-item {
    display: block;
    padding: 1rem 1.5rem;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu-item:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    padding-left: 2rem;
}

.mobile-submenu {
    background: rgba(0,0,0,0.2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    display: block !important;
}

.mobile-submenu.show {
    max-height: 1000px;
}

.mobile-submenu-item-nested {
    padding-left: 2rem !important;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.mobile-submenu-item-nested:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.mobile-submenu-item {
    display: block;
    padding: 0.75rem 1.5rem 0.75rem 3rem;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.mobile-submenu-item:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    padding-left: 3.5rem;
}

/* FAB Menu */
.fab-item {
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    /* Hide desktop navbar collapse */
    .navbar-collapse {
        display: none !important;
    }
    
    /* Mobile-friendly buttons */
    .mobile-friendly-btn {
        bottom: 20px !important;
        right: 20px !important;
        z-index: 1020;
    }
    
    /* Tables - scrollable */
    .table-responsive {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Cards - full width on mobile */
    .card {
        margin-bottom: 1rem;
    }
    
    /* Hero sections - reduced padding */
    .hero-section {
        padding: 3rem 0 !important;
    }
    
    /* Text sizes */
    .display-1 {
        font-size: 2.5rem !important;
    }
    
    .display-2 {
        font-size: 2.2rem !important;
    }
    
    .display-3 {
        font-size: 2rem !important;
    }
    
    .display-4 {
        font-size: 1.8rem !important;
    }
    
    .display-5 {
        font-size: 1.6rem !important;
    }
    
    .lead {
        font-size: 1.1rem !important;
    }
    
    /* Buttons - full width on mobile */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Blog cards mobile */
    .blog-card .card-title {
        font-size: 1.1rem;
        line-height: 1.4;
        margin-top: 0.5rem;
    }
    
    .blog-card .card-text {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .category-badge {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }
    
    .blog-featured-image {
        height: 150px;
    }
    
    .blog-meta {
        font-size: 0.8rem;
        flex-wrap: wrap;
    }
    
    /* AI Chat - full screen on mobile */
    .ai-chat-widget {
        width: 100% !important;
        height: 100% !important;
        bottom: 0 !important;
        right: 0 !important;
        border-radius: 0 !important;
    }
    
    /* Forms - better spacing */
    .form-control, .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Modal - full screen on small devices */
    .modal-dialog {
        margin: 0.5rem;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    h1, .h1 {
        font-size: 1.75rem;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
    
    h3, .h3 {
        font-size: 1.25rem;
    }
}

