/* Mobile Bottom Navigation Component Styles */

/* Main container */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: env(safe-area-inset-bottom, 0);
    padding-bottom: max(env(safe-area-inset-bottom), 8px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Navigation items */
.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    min-height: 60px;
    cursor: pointer;
}

.mobile-nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
    transition: transform 0.2s ease;
}

.mobile-nav-item span {
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

/* Hover state */
.mobile-nav-item:hover,
.mobile-nav-item:focus {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.mobile-nav-item:hover i {
    transform: scale(1.1);
}

/* Active state */
.mobile-nav-item.active {
    color: #2ECC71;
}

.mobile-nav-item.active i {
    transform: scale(1.05);
}

.mobile-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #2ECC71, #27AE60);
    border-radius: 0 0 3px 3px;
}

/* Show on mobile devices */
@media (max-width: 991.98px) {
    .mobile-bottom-nav {
        display: flex;
    }

    /* Add padding to body to prevent content from being hidden behind bottom nav */
    body {
        padding-bottom: 80px !important;
    }

    /* Ensure main content doesn't overlap */
    main,
    .container-fluid,
    #app,
    .page-content {
        padding-bottom: 80px;
    }

    /* Adjust footer if present */
    footer {
        margin-bottom: 80px;
    }
}

/* PWA Standalone Mode - Extra spacing for better UX */
@media (display-mode: standalone) {
    .mobile-bottom-nav {
        padding-bottom: max(env(safe-area-inset-bottom), 12px);
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    }

    body {
        padding-bottom: 90px !important;
    }
}

/* iOS Notch and Safe Area Support */
@supports (padding: max(0px)) {
    .mobile-bottom-nav {
        padding-left: max(env(safe-area-inset-left), 0);
        padding-right: max(env(safe-area-inset-right), 0);
    }
}

/* Landscape mode adjustments for smaller height */
@media (max-width: 991.98px) and (orientation: landscape) {
    .mobile-bottom-nav {
        padding-top: 6px;
        padding-bottom: max(env(safe-area-inset-bottom), 6px);
    }

    .mobile-nav-item {
        min-height: 50px;
        padding: 8px 6px;
    }

    .mobile-nav-item i {
        font-size: 18px;
        margin-bottom: 2px;
    }

    .mobile-nav-item span {
        font-size: 10px;
    }
}

/* Tablet view (hide on tablets in portrait mode if desired) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .mobile-nav-item span {
        font-size: 12px;
    }

    .mobile-nav-item i {
        font-size: 22px;
    }
}

/* Accessibility improvements */
.mobile-nav-item:focus-visible {
    outline: 2px solid #2ECC71;
    outline-offset: -2px;
}

/* Prevent text selection on tap */
.mobile-nav-item {
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
}

/* Animation for when nav appears */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.mobile-bottom-nav {
    animation: slideUp 0.3s ease-out;
}

/* Dark theme support (if implementing) */
@media (prefers-color-scheme: dark) {
    .mobile-bottom-nav {
        background: linear-gradient(135deg, #0a0a0f 0%, #0d1117 100%);
        box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.3);
    }
}
