/* Mobile Bottom Navigation - Shared Styles for All Pages */
/* PWA App-like Navigation */

/* Hide header nav links on mobile */
@media (max-width: 768px) {
    .header .nav-links {
        display: none !important;
    }
    .header .connect-btn {
        padding: 0.4rem 0.75rem !important;
        font-size: 0.75rem !important;
    }
    .header-content {
        padding: 0 0.75rem !important;
    }
    .logo-text {
        font-size: 0.95rem !important;
    }
    .logo-section img {
        width: 32px !important;
        height: 32px !important;
    }
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 56px;
    background: linear-gradient(180deg, rgba(18, 18, 25, 0.98) 0%, rgba(10, 10, 15, 0.99) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(124, 58, 237, 0.25);
    display: none;
    justify-content: space-around;
    align-items: center;
    z-index: 99999;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.5);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 12px;
    color: #71717a;
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2px;
    transition: all 0.15s ease;
    position: relative;
    min-width: 64px;
    -webkit-tap-highlight-color: transparent;
}

.mobile-bottom-nav .nav-item i {
    font-size: 20px;
    transition: all 0.15s ease;
    margin-bottom: 1px;
}

.mobile-bottom-nav .nav-item span {
    line-height: 1;
}

.mobile-bottom-nav .nav-item.active {
    color: #a78bfa;
}

.mobile-bottom-nav .nav-item.active i {
    color: #7c3aed;
    transform: scale(1.05);
}

.mobile-bottom-nav .nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
    border-radius: 0 0 2px 2px;
}

.mobile-bottom-nav .nav-item:active {
    transform: scale(0.95);
    opacity: 0.8;
}

/* Show on mobile only */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex !important;
    }
    
    body {
        padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
    }
    
    .page-container {
        padding-bottom: 70px !important;
    }
}

/* Hide on desktop */
@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}

/* Mobile More Menu */
.mobile-more-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(20, 20, 30, 0.99) 0%, rgba(12, 12, 18, 1) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-top: 1px solid rgba(124, 58, 237, 0.3);
    z-index: 100000;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
    transform: translateY(100%);
    transition: transform 0.25s ease;
    max-height: 65vh;
    overflow-y: auto;
    display: none;
}

.mobile-more-menu.show {
    display: block;
    transform: translateY(0);
}

.mobile-more-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(124, 58, 237, 0.15);
    position: sticky;
    top: 0;
    background: inherit;
}

.mobile-more-menu-header span {
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
}

.mobile-menu-close {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a1a1aa;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-close:active {
    background: rgba(124, 58, 237, 0.3);
    color: #fff;
    transform: scale(0.95);
}

.mobile-more-menu-items {
    padding: 0.5rem 0 1rem;
}

.mobile-more-menu-items a {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.25rem;
    color: #a1a1aa;
    text-decoration: none;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-more-menu-items a:active {
    background: rgba(124, 58, 237, 0.15);
    color: #fff;
}

.mobile-more-menu-items a i {
    width: 22px;
    font-size: 1rem;
    color: #7c3aed;
}

.mobile-more-menu-items a span {
    font-size: 0.9rem;
    font-weight: 500;
}

.mobile-menu-divider {
    height: 1px;
    background: rgba(124, 58, 237, 0.12);
    margin: 0.5rem 1.25rem;
}

@media (min-width: 769px) {
    .mobile-more-menu {
        display: none !important;
    }
}
