/* Mobile PWA Styles - Only for mobile devices */

/* Hide top navbar on mobile */
@media (max-width: 991.98px) {
    /* Hide desktop navbar */
    .navbar {
        display: none !important;
    }
    
    /* Add padding to body for bottom nav */
    body {
        padding-bottom: 80px;
    }
    
    /* Bottom Navigation Bar - PWA Style */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #ffffff;
        border-top: 1px solid #e0e0e0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        padding: 8px 0;
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
        display: flex;
        justify-content: space-around;
        align-items: center;
    }
    
    .mobile-bottom-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 8px 4px;
        text-decoration: none;
        color: #666;
        font-size: 10px;
        transition: all 0.3s ease;
        position: relative;
        min-height: 60px;
    }
    
    .mobile-bottom-nav-item i {
        font-size: 20px;
        margin-bottom: 4px;
        transition: all 0.3s ease;
    }
    
    .mobile-bottom-nav-item span {
        font-size: 10px;
        font-weight: 500;
    }
    
    .mobile-bottom-nav-item.active {
        color: #1cafad;
    }
    
    .mobile-bottom-nav-item.active i {
        color: #1cafad;
        transform: scale(1.1);
    }
    
    .mobile-bottom-nav-item:active {
        transform: scale(0.95);
        background-color: rgba(28, 175, 173, 0.1);
        border-radius: 8px;
    }
    
    /* Burger Menu Button */
    .mobile-menu-toggle {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 8px 4px;
        text-decoration: none;
        color: #666;
        font-size: 10px;
        transition: all 0.3s ease;
        position: relative;
        min-height: 60px;
        cursor: pointer;
        border: none;
        background: transparent;
    }
    
    .mobile-menu-toggle i {
        font-size: 20px;
        margin-bottom: 4px;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle.active {
        color: #1cafad;
    }
    
    .mobile-menu-toggle.active i {
        color: #1cafad;
        transform: scale(1.1);
    }
    
    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 80px;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .mobile-menu-overlay.active {
        display: block;
        opacity: 1;
    }
    
    /* Mobile Menu Sidebar */
    .mobile-menu-sidebar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100%;
        background: #ffffff;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        overflow-y: auto;
        transition: right 0.3s ease;
        padding-top: env(safe-area-inset-top);
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }
    
    .mobile-menu-sidebar.active {
        right: 0;
    }
    
    .mobile-menu-header {
        padding: 20px;
        border-bottom: 1px solid #e0e0e0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-menu-header img {
        height: 40px;
    }
    
    .mobile-menu-close {
        background: none;
        border: none;
        font-size: 24px;
        color: #666;
        cursor: pointer;
        padding: 0;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-menu-content {
        padding: 20px 0;
    }
    
    .mobile-menu-section {
        padding: 0 20px;
        margin-bottom: 20px;
    }
    
    .mobile-menu-section-title {
        font-size: 12px;
        font-weight: 700;
        color: #1cafad;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 12px;
        padding-bottom: 8px;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .mobile-menu-link {
        display: block;
        padding: 12px 0;
        color: #333;
        text-decoration: none;
        font-size: 15px;
        font-weight: 500;
        border-bottom: 1px solid #f0f0f0;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-link:last-child {
        border-bottom: none;
    }
    
    .mobile-menu-link:hover,
    .mobile-menu-link:active {
        color: #1cafad;
        padding-left: 8px;
    }
    
    .mobile-menu-link i {
        margin-right: 12px;
        width: 20px;
        text-align: center;
        color: #1cafad;
    }
    
    .mobile-menu-submenu {
        padding-left: 32px;
        margin-top: 8px;
    }
    
    .mobile-menu-submenu .mobile-menu-link {
        font-size: 14px;
        font-weight: 400;
        padding: 10px 0;
        color: #666;
    }
    
    /* EAP Button in Mobile Menu */
    .mobile-menu-eap-button {
        margin: 20px;
        padding: 16px;
        background: linear-gradient(135deg, #1cafad 0%, #159a98 100%);
        color: white;
        text-align: center;
        border-radius: 12px;
        text-decoration: none;
        font-weight: 600;
        display: block;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-eap-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(28, 175, 173, 0.3);
    }
    
    /* Optimize content for mobile PWA */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Hero section mobile optimization */
    .hero-section {
        padding-top: 20px;
        min-height: auto;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    /* Cards and sections */
    .card {
        margin-bottom: 20px;
    }
    
    /* Buttons */
    .btn-lg {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    /* Spacing adjustments */
    section {
        padding: 40px 0;
    }
    
    /* Safe area for notched devices */
    @supports (padding: max(0px)) {
        .mobile-bottom-nav {
            padding-bottom: max(8px, env(safe-area-inset-bottom));
        }
        
        .mobile-menu-sidebar {
            padding-top: max(0px, env(safe-area-inset-top));
            padding-bottom: max(80px, calc(80px + env(safe-area-inset-bottom)));
        }
    }
}

/* Desktop - Hide mobile nav */
@media (min-width: 992px) {
    .mobile-bottom-nav,
    .mobile-menu-overlay,
    .mobile-menu-sidebar {
        display: none !important;
    }
}


