/*
  MirNova Hub — app_nav.css
  Extracted from app_shell.css.
  Contains bottom nav, feed top header, desktop nav, mobile nav patches, profile alert dot.
*/

.app-nav {
            position:fixed;
            left:0;
            right:0;
            bottom:0;
            z-index:50;
            display:flex;
            align-items:center;
            justify-content:space-around;
            gap:6px;
            padding:8px 10px calc(8px + env(safe-area-inset-bottom));
            background:rgba(3,8,20,0.78);
            backdrop-filter:blur(18px);
            -webkit-backdrop-filter:blur(18px);
            border-top:1px solid var(--hub-border-soft);
        }
        .app-nav a {
            flex:1;
            text-align:center;
            padding:10px 8px;
            border-radius:14px;
            font-size:13px;
            font-weight:500;
            color:rgba(230,235,245,0.72);
            text-decoration:none;
            background:transparent;
            transition:background .18s ease, color .18s ease, transform .18s ease;
        }
        .app-nav a.app-nav-active {
            background:rgba(0,217,255,0.12);
            color:#fff;
            border:1px solid rgba(92,225,255,0.18);
            box-shadow:inset 0 1px 0 rgba(255,255,255,0.04), 0 4px 22px rgba(0,190,255,0.14);
        }
        .app-nav a:active {
            transform:scale(.98);
        }
        /* Hub feed: desktop marketplace shell */
        .hub-top-header {
            position:sticky; top:0; z-index:30;
            border-bottom:1px solid var(--hub-border-soft);
            background:rgba(3,8,20,0.78);
            backdrop-filter:saturate(140%) blur(12px);
            -webkit-backdrop-filter:saturate(140%) blur(12px);
        }
        .hub-top-header__inner {
            max-width:1700px; margin:0 auto; padding:0 16px;
            min-height:68px; display:flex; align-items:center; gap:16px; flex-wrap:wrap;
        }
        .hub-brand {
            font-family:Orbitron, Inter, system-ui, sans-serif; font-weight:700; font-size:1.02rem; letter-spacing:0.03em; color:#f4fbff; text-shadow:0 0 18px rgba(0,217,255,0.18);
            text-decoration:none; white-space:nowrap;
        }
        .hub-brand:hover { text-decoration:none; color:#fff; }
        .hub-search-ph {
            flex:1; min-width:120px; max-width:480px; margin:0 auto;
            padding:10px 14px; border-radius:10px; font-size:13px;
            border:1px solid rgba(92,225,255,0.14);
            background:rgba(3,12,28,0.42); color:rgba(220,245,255,0.42);
            pointer-events:none;
        }
        .hub-top-actions {
            display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-left:auto;
        }
        .hub-lang-pill, .hub-top-actions .hub-link-pill {
            font-size:12px; padding:7px 11px; border-radius:8px; border:1px solid rgba(255,255,255,0.12);
            text-decoration:none; color:#b8c6d9; background:rgba(255,255,255,0.04);
        }
        .hub-lang-pill.is-active { background:rgba(0,217,255,0.14); color:#fff; border-color:rgba(92,225,255,0.34); }
        .hub-top-actions .btn-create {
            font-size:12px; padding:8px 14px; border-radius:9px; font-weight:600;
            border:1px solid rgba(92,225,255,0.42);
            background:linear-gradient(180deg, rgba(0,217,255,0.26), rgba(25,72,150,0.34));
            color:#fff; text-decoration:none; white-space:nowrap;
        }
        .hub-top-actions .btn-create:hover { filter:brightness(1.08); text-decoration:none; box-shadow:0 0 24px rgba(0,190,255,0.18); }
        /* Desktop: hide bottom tab bar (all Hub pages); mobile/tablet unchanged */
        @media (min-width:1024px) {
            .app-nav { display:none !important; }
            .app-shell { padding-bottom:20px; }
            .app-shell--hub-feed { padding-bottom:20px; padding-top:0; }
        }
        /* Slim top bar on desktop when feed header is not shown (profile, create, dialogs, …) */
        .hub-desktop-nav {
            display:none;
            position:sticky; top:0; z-index:28;
            border-bottom:1px solid rgba(255,255,255,0.09);
            background:rgba(10,13,20,0.9);
            backdrop-filter:saturate(140%) blur(10px);
            -webkit-backdrop-filter:saturate(140%) blur(10px);
        }
        @media (min-width:1024px) {
            .hub-desktop-nav.is-visible { display:block; }
        }
        .hub-desktop-nav__inner {
            max-width:1700px; margin:0 auto; padding:0 16px;
            min-height:52px; display:flex; align-items:center; gap:10px; flex-wrap:wrap;
        }
        .hub-desktop-nav__inner a {
            font-size:12px; padding:8px 11px; border-radius:8px;
            border:1px solid rgba(255,255,255,0.1); color:#aebccf; text-decoration:none;
            background:rgba(255,255,255,0.03);
        }
        .hub-desktop-nav__inner a:hover { color:#e9eef7; background:rgba(255,255,255,0.06); text-decoration:none; }
        .hub-desktop-nav__inner a.is-active {
            border-color:rgba(120,160,230,0.4); color:#fff; background:rgba(90,130,230,0.22);
        }
  .profile-alert-dot {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:16px;
    height:16px;
    margin-left:5px;
    padding:0 4px;
    border-radius:999px;
    background:#ff9f43;
    color:#120804;
    font-size:10px;
    font-weight:900;
    line-height:1;
    vertical-align:middle;
    box-shadow:0 0 0 1px rgba(0,0,0,0.22);
  }


/* TOP_NAV_HUD_FINAL_V2 */
.hub-top-header .hub-top-actions {
  gap: 22px !important;
}

.hub-top-header .hub-top-actions .hub-link-pill,
.hub-top-header .hub-top-actions .btn-create,
.hub-top-header .hub-top-actions .hub-lang-pill {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 8px 0 10px !important;
  min-height: auto !important;

  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;

  color: rgba(245,250,255,0.92) !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.hub-top-header .hub-top-actions .hub-link-pill::before,
.hub-top-header .hub-top-actions .btn-create::before,
.hub-top-header .hub-top-actions .hub-lang-pill::before {
  content: none !important;
  display: none !important;
}

.hub-top-header .hub-top-actions .hub-link-pill::after,
.hub-top-header .hub-top-actions .btn-create::after,
.hub-top-header .hub-top-actions .hub-lang-pill::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: auto !important;
  height: 1px !important;
  margin: 0 !important;
  background: linear-gradient(90deg, transparent, rgba(99,244,255,.95), transparent) !important;
  opacity: 0 !important;
  transform: scaleX(.35) !important;
  transition: opacity .22s ease, transform .22s ease !important;
}

.hub-top-header .hub-top-actions .hub-link-pill:hover,
.hub-top-header .hub-top-actions .btn-create:hover,
.hub-top-header .hub-top-actions .hub-lang-pill:hover {
  color: #fff !important;
  text-shadow: 0 0 14px rgba(99,244,255,.30) !important;
  text-decoration: none !important;
  filter: none !important;
  transform: none !important;
}

.hub-top-header .hub-top-actions .hub-link-pill:hover::after,
.hub-top-header .hub-top-actions .btn-create:hover::after,
.hub-top-header .hub-top-actions .hub-lang-pill:hover::after {
  opacity: 1 !important;
  transform: scaleX(1) !important;
}

/* Mobile shell rules migrated from feed_mobile_rebuild.css */

/* =========================
   MOBILE REBUILD LAYER
   authoritative mobile shell
========================= */

@media (max-width: 899px) {

  /* top header */
  .hub-top-header{
    position: sticky !important;
    top: 0 !important;
    z-index: 60 !important;
  }

  .hub-top-header__inner{
    min-height: 56px !important;
    padding: 8px 14px !important;

    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:12px !important;
  }

  /* keep only brand + lang */
  .hub-search-ph,
  .hub-top-actions .hub-link-pill,
  .hub-top-actions .btn-create{
    display:none !important;
  }

  .hub-top-actions{
    margin-left:auto !important;
    display:flex !important;
    align-items:center !important;
    gap:8px !important;
  }

  .hub-top-actions .hub-lang-pill{
    display:inline-flex !important;
  }

  /* bottom nav fixed */
  .app-nav{
    position:fixed !important;
    left:0 !important;
    right:0 !important;
    bottom:0 !important;

    z-index:100 !important;

    display:flex !important;
    align-items:center !important;
    justify-content:space-around !important;

    min-height:58px !important;
    height:58px !important;

    padding:6px 8px calc(6px + env(safe-area-inset-bottom)) !important;

    transform:none !important;
  }

  .app-nav a{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    min-height:44px !important;
    height:44px !important;
  }

  /* feed spacing */
  .app-shell{
    padding-bottom:76px !important;
  }
}

/* MOBILE APP NAV FINAL OVERRIDE */
@media (max-width: 899px) {
  body .hub-top-header .hub-search-ph,
  body .hub-top-header .hub-top-actions .hub-link-pill,
  body .hub-top-header .hub-top-actions .btn-create {
    display: none !important;
  }

  body .hub-top-header .hub-top-actions .hub-lang-pill {
    display: inline-flex !important;
  }

  body .app-nav {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    z-index: 9999 !important;
    transform: none !important;
    translate: none !important;
    margin: 0 !important;
  }
}

/* MOBILE BOTTOM NAV WIDTH/FIXED HARDENING */
@media (max-width: 899px) {
  html,
  body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body .app-nav {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;

    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;

    box-sizing: border-box !important;
    overflow: hidden !important;

    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 4px !important;

    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)) !important;
    margin: 0 !important;

    transform: none !important;
  }

  body .app-nav a {
    min-width: 0 !important;
    width: auto !important;
    max-width: 100% !important;

    box-sizing: border-box !important;
    overflow: hidden !important;

    padding-left: 4px !important;
    padding-right: 4px !important;

    white-space: nowrap !important;
    text-overflow: ellipsis !important;
  }

  body .app-shell,
  body .hub-page {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
}
