/* ============================================================================
   VELVIXIE UNIFIED SHELL — ARCHITECTURAL NAVBAR, MOBILE BOTTOM NAV & COMPACT FOOTER
   Shared cleanly across index.html, explore.html, community.html, leaderboard.html, messages.html
   Light Mode + Dark Mode (html.dark-mode / body.dark-mode) 100% Parity.
   ============================================================================ */

/* 1. Architectural Full-Width Sticky Navbar */
nav.navbar {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 12px 0 !important;
    border-radius: 0 !important;
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: none !important;
    border-bottom: 1px solid rgba(107, 159, 255, 0.20) !important;
    box-shadow: 0 4px 20px -12px rgba(67, 97, 208, 0.16) !important;
    box-sizing: border-box !important;
}

nav.navbar .nav-content {
    max-width: 1180px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
    box-sizing: border-box !important;
}

nav.navbar .user-nav-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 2px;
}

html.dark-mode nav.navbar,
body.dark-mode nav.navbar {
    background: rgba(12, 18, 32, 0.94) !important;
    border-bottom: 1px solid rgba(125, 173, 255, 0.16) !important;
    box-shadow: 0 4px 22px -10px rgba(0, 0, 0, 0.52) !important;
}

/* Mobile Bottom Nav Dark Mode Parity across ALL pages */
html.dark-mode .vx-bottom-nav,
body.dark-mode .vx-bottom-nav {
    background: rgba(13, 20, 36, 0.96) !important;
    border-top: 1px solid rgba(125, 173, 255, 0.18) !important;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.45) !important;
}

html.dark-mode .vx-bnav-item,
body.dark-mode .vx-bnav-item,
html.dark-mode .vx-bnav-center-label,
body.dark-mode .vx-bnav-center-label {
    color: #94a3b8 !important;
}

html.dark-mode .vx-bnav-item.active,
body.dark-mode .vx-bnav-item.active {
    color: #7dacff !important;
}

/* 2. Ultra-Compact Boxed Footer (Zero bloat, SEO-safe visible copy) */
footer.footer {
    width: 100% !important;
    max-width: 1132px !important;
    margin: 22px auto 26px !important;
    padding: 13px 20px !important;
    border-radius: 15px !important;
    background: rgba(255, 255, 255, 0.88) !important;
    border: 1px solid rgba(107, 159, 255, 0.22) !important;
    box-shadow: 0 2px 10px -2px rgba(67, 97, 208, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04) !important;
    text-align: left !important;
    box-sizing: border-box !important;
}

body.vx-home-page footer.footer {
    width: calc(100% - 48px) !important;
}

html.dark-mode footer.footer,
body.dark-mode footer.footer {
    background: rgba(19, 27, 46, 0.92) !important;
    border-color: rgba(125, 173, 255, 0.18) !important;
    box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.45) !important;
}

footer.footer .footer-inner {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px 18px !important;
}

footer.footer .footer-brand {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    gap: 10px !important;
    margin: 0 !important;
    min-width: 0 !important;
}

footer.footer .footer-mascot {
    width: 30px !important;
    height: auto !important;
    max-height: 38px !important;
    object-fit: contain !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    filter: drop-shadow(0 3px 8px rgba(107, 159, 255, 0.25)) !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    display: block !important;
}

footer.footer .footer-brand-copy {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    gap: 2px !important;
    min-width: 0 !important;
}

footer.footer .footer-logo-text {
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.98rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    background: linear-gradient(135deg, #6B9FFF, #B8A4FF) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-decoration: none !important;
    display: inline-block !important;
}

footer.footer .footer-desc {
    display: block !important;
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
    font-size: 0.71rem !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}

html.dark-mode footer.footer .footer-desc,
body.dark-mode footer.footer .footer-desc {
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
}

footer.footer .footer-links {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px 14px !important;
    margin: 0 !important;
}

footer.footer .footer-links a {
    color: #334155 !important;
    -webkit-text-fill-color: #334155 !important;
    font-size: 0.74rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: color 0.18s ease !important;
}

footer.footer .footer-links a:hover {
    color: #5b8def !important;
    -webkit-text-fill-color: #5b8def !important;
}

html.dark-mode footer.footer .footer-links a,
body.dark-mode footer.footer .footer-links a {
    color: #cbd5e1 !important;
    -webkit-text-fill-color: #cbd5e1 !important;
}

html.dark-mode footer.footer .footer-links a:hover,
body.dark-mode footer.footer .footer-links a:hover {
    color: #93c5fd !important;
    -webkit-text-fill-color: #93c5fd !important;
}

footer.footer .footer-copy {
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
    font-size: 0.70rem !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

html.dark-mode footer.footer .footer-copy,
body.dark-mode footer.footer .footer-copy {
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
}

/* 3. Responsive Mobile Adjustment */
@media (max-width: 768px) {
    nav.navbar {
        padding: 8px 0 !important;
        border-radius: 0 !important;
    }

    nav.navbar .nav-content {
        padding: 0 12px !important;
        height: 44px !important;
        max-width: 100% !important;
        gap: 6px !important;
    }

    footer.footer {
        width: 100% !important;
        margin: 14px auto 84px !important;
        padding: 11px 12px !important;
        border-radius: 14px !important;
        text-align: center !important;
    }

    body.vx-home-page footer.footer {
        width: calc(100% - 24px) !important;
    }

    footer.footer .footer-inner {
        flex-direction: column !important;
        align-items: center !important;
        gap: 6px !important;
    }

    footer.footer .footer-brand {
        justify-content: center !important;
        text-align: left !important;
        gap: 8px !important;
    }

    footer.footer .footer-mascot {
        width: 26px !important;
        max-height: 34px !important;
    }

    footer.footer .footer-logo-text {
        font-size: 0.92rem !important;
    }

    footer.footer .footer-desc {
        font-size: 0.66rem !important;
        line-height: 1.3 !important;
    }

    footer.footer .footer-links {
        gap: 4px 10px !important;
        margin: 0 !important;
    }

    footer.footer .footer-links a {
        font-size: 0.69rem !important;
    }

    footer.footer .footer-copy {
        font-size: 0.66rem !important;
    }
}

/* Tablet Navbar Containment (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    nav.navbar .nav-content {
        padding: 0 14px !important;
        gap: 10px !important;
    }

    nav.navbar .logo {
        flex: 0 0 auto !important;
    }

    nav.navbar .logo-text {
        font-size: 1.35rem !important;
    }

    nav.navbar .nav-menu {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        gap: 14px !important;
        justify-content: center !important;
    }

    nav.navbar .nav-link {
        font-size: 0.8rem !important;
    }

    nav.navbar .nav-buttons {
        flex: 0 0 auto !important;
        gap: 8px !important;
    }

    nav.navbar .nav-buttons .btn-primary,
    nav.navbar .nav-buttons .btn-secondary {
        padding: 0.45rem 0.95rem !important;
        font-size: 0.8rem !important;
    }
}
