/* ============================================================
   ULTRA-PREMIUM 2026 MOBILE BOTTOM NAVIGATION
   File: mobile-bottom-nav.css
   Scope: @media (max-width: 991px) ONLY
   ============================================================ */

/* ── Hidden on desktop ───────────────────────────────────────── */
.mobile-bottom-nav {
  display: none;
}

/* ── Active only on mobile ───────────────────────────────────── */
@media (max-width: 991px) {

  /* Hide desktop collapse, signup link, and top menu button on mobile */
  .navbar-collapse,
  .nav-signup-link,
  .mobile-menu-btn {
    display: none !important;
  }

  /* Clean flex positioning for brand and actions to eliminate overlap */
  .navbar-brand {
    position: relative !important;
    left: auto !important;
    transform: none !important;
    margin: 0 !important;
    max-width: 65% !important;
    z-index: 2 !important;
  }

  /* Position navbar actions on the right side cleanly */
  .navbar-actions {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    z-index: 2 !important;
  }

}

/* Premium Header Cart Button Styling (Icon & Badge Only) */
.mobile-header-cart-btn {
  background: rgba(216, 179, 91, 0.15) !important;
  border: 1px solid rgba(216, 179, 91, 0.4) !important;
  color: #F6E08A !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50px !important;
  padding: 5px 10px !important;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  text-decoration: none !important;
  font-weight: 600 !important;
  flex-shrink: 0 !important;
}

.mobile-header-cart-btn svg,
.mobile-header-cart-btn i {
  stroke: #F6E08A !important;
  color: #F6E08A !important;
}

.mobile-header-cart-btn:hover,
.mobile-header-cart-btn:active {
  background: rgba(216, 179, 91, 0.28) !important;
  border-color: rgba(246, 224, 138, 0.8) !important;
  color: #ffffff !important;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 0 16px rgba(216, 179, 91, 0.4);
}

.mobile-header-cart-btn:hover svg,
.mobile-header-cart-btn:hover i {
  stroke: #ffffff !important;
  color: #ffffff !important;
}

.mobile-header-cart-btn .cart-count-badge {
  background-color: #FFD700 !important;
  color: #030504 !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  padding: 2px 7px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

@media (max-width: 991px) {

  /* Complete hide of breadcrumb banner on mobile view across all pages */
  .breadcrumb-header-banner {
    display: none !important;
  }

  /* Clean top padding so page content starts right under top header */
  .team-page,
  .earnings-page,
  .wallet-page,
  .profile-page,
  .orders-page,
  .cart-page,
  .checkout-page,
  .shop-page,
  .notifications-page,
  .auth-page,
  .kyc-page,
  .account-page,
  .tree-page {
    padding-top: 85px !important;
  }

  /* Prevent page content from hiding under floating bottom nav */
  body {
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)) !important;
  }

  main {
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }

  /* =========================================================
     FLOATING FROSTED GLASS NAVIGATION BAR
     ========================================================= */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 28px);
    max-width: 420px;
    height: 72px;
    margin: 0 auto;

    /* Surface Color: rgba(18,28,20,0.78) with 24px Blur Glassmorphism */
    background: rgba(18, 28, 20, 0.78);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);

    /* Thin 1px Golden Border: rgba(216,179,91,0.35) & Highlight Top */
    border: 1px solid rgba(216, 179, 91, 0.35);
    border-top: 1px solid rgba(246, 224, 138, 0.45);

    /* Rounded Pill Container with 32px Radius */
    border-radius: 32px;

    /* Floating Effect: Multi-layered soft shadows & ambient golden glow */
    box-shadow:
      0 16px 40px -8px rgba(0, 0, 0, 0.75),
      0 6px 16px rgba(0, 0, 0, 0.4),
      inset 0 1px 1px rgba(255, 255, 255, 0.15),
      0 0 24px rgba(216, 179, 91, 0.12);

    /* Perfect Spacing & Alignment */
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));

    z-index: 1050;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  }

  /* Ambient Gold Gradient Reflection Border Effect */
  .mobile-bottom-nav::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 33px;
    padding: 1px;
    background: linear-gradient(
      135deg,
      rgba(246, 224, 138, 0.45) 0%,
      rgba(216, 179, 91, 0.15) 40%,
      rgba(8, 17, 11, 0) 70%,
      rgba(216, 179, 91, 0.3) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
  }

  /* =========================================================
     NAV ITEM BASE & INACTIVE STATE
     ========================================================= */
  .mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    cursor: pointer;
    border-radius: 24px;
    padding: 4px 6px;
    height: 60px;
    flex: 1;
    min-width: 0;
    overflow: visible;
    background: transparent;
    border: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;

    /* 300ms Spring Animation for Morphing Transitions */
    transition: flex 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                padding 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-color 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  /* Inactive Icon Container Box: Small Translucent Glass Tile */
  .mobile-bottom-nav .nav-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                background-color 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease;
  }

  /* Minimal Monochrome Icon styling */
  .mobile-bottom-nav .nav-icon-wrap svg,
  .mobile-bottom-nav .nav-icon-wrap i {
    width: 18px;
    height: 18px;
    stroke: #A7AEA5;
    stroke-width: 1.9;
    color: #A7AEA5;
    display: block;
    transition: stroke 0.3s ease, color 0.3s ease, filter 0.3s ease, transform 0.3s ease;
  }

  /* Inactive Label: Below icon in 13px medium font */
  .mobile-bottom-nav .nav-label {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Inter', 'Geist', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #A7AEA5;
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin-top: 3px;
    white-space: nowrap;
    text-align: center;
    transition: color 0.3s ease, opacity 0.3s ease, font-weight 0.3s ease, transform 0.3s ease;
  }

  /* Icon scale to 1.08x on Hover/Tap */
  @media (hover: hover) {
    .mobile-bottom-nav .nav-item:not(.active):hover .nav-icon-wrap {
      transform: scale(1.08);
      background: rgba(216, 179, 91, 0.12);
      border-color: rgba(216, 179, 91, 0.25);
    }
    .mobile-bottom-nav .nav-item:not(.active):hover .nav-icon-wrap svg,
    .mobile-bottom-nav .nav-item:not(.active):hover .nav-icon-wrap i {
      stroke: #D8B35B;
      color: #D8B35B;
    }
    .mobile-bottom-nav .nav-item:not(.active):hover .nav-label {
      color: #F8F8F5;
    }
  }

  /* Touch press scale feedback */
  .mobile-bottom-nav .nav-item:active .nav-icon-wrap {
    transform: scale(0.94);
  }

  /* =========================================================
     ACTIVE MENU ITEM — LARGE FLOATING PILL BUTTON
     ========================================================= */
  .mobile-bottom-nav .nav-item.active {
    flex: 1.65; /* Smoothly expands pill width */
    flex-direction: row;
    height: 48px;
    padding: 0 16px;
    border-radius: 24px;

    /* Rich Emerald-to-Gold Gradient Background */
    background: linear-gradient(
      135deg,
      rgba(216, 179, 91, 0.32) 0%,
      rgba(12, 32, 21, 0.95) 45%,
      rgba(216, 179, 91, 0.22) 100%
    );

    /* Thin 1px Animated Golden Border */
    border: 1px solid rgba(216, 179, 91, 0.75);

    /* Soft Inner Glow & Outer Pulsing Shadow */
    box-shadow:
      inset 0 0 14px rgba(216, 179, 91, 0.35),
      0 6px 20px rgba(8, 17, 11, 0.7),
      0 0 18px rgba(216, 179, 91, 0.3);

    animation: breathing-glow 3s infinite ease-in-out;
  }

  /* Active Icon Container integration */
  .mobile-bottom-nav .nav-item.active .nav-icon-wrap {
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    border-radius: 0;
    transform: scale(1.08);
  }

  /* Active Premium Icon with subtle glow */
  .mobile-bottom-nav .nav-item.active .nav-icon-wrap svg,
  .mobile-bottom-nav .nav-item.active .nav-icon-wrap i {
    stroke: #F6E08A;
    color: #F6E08A;
    stroke-width: 2.2;
    filter: drop-shadow(0 0 6px rgba(216, 179, 91, 0.75));
  }

  /* Active Text: White semi-bold text inside pill (No underline) */
  .mobile-bottom-nav .nav-item.active .nav-label {
    font-size: 14px;
    font-weight: 600;
    color: #F8F8F5;
    letter-spacing: -0.01em;
    margin-top: 0;
    margin-left: 8px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  }

  /* Elegant Shine Moving Across Active Button */
  .mobile-bottom-nav .nav-item.active::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(246, 224, 138, 0.35) 50%,
      transparent 100%
    );
    transform: rotate(25deg);
    animation: gold-shimmer 3.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
  }

  /* =========================================================
     ANIMATIONS & KEYFRAMES
     ========================================================= */
  @keyframes gold-shimmer {
    0% {
      left: -100%;
    }
    35%, 100% {
      left: 200%;
    }
  }

  @keyframes breathing-glow {
    0%, 100% {
      box-shadow:
        inset 0 0 12px rgba(216, 179, 91, 0.3),
        0 6px 20px rgba(8, 17, 11, 0.7),
        0 0 14px rgba(216, 179, 91, 0.22);
      border-color: rgba(216, 179, 91, 0.65);
    }
    50% {
      box-shadow:
        inset 0 0 18px rgba(246, 224, 138, 0.45),
        0 8px 24px rgba(8, 17, 11, 0.8),
        0 0 24px rgba(216, 179, 91, 0.48);
      border-color: rgba(246, 224, 138, 0.9);
    }
  }

  /* Touch Ripple Effect */
  .mobile-bottom-nav .nav-item .ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(246, 224, 138, 0.45) 0%, rgba(216, 179, 91, 0) 70%);
    transform: scale(0);
    animation: ripple 0.5s ease-out;
    pointer-events: none;
  }

  @keyframes ripple {
    to {
      transform: scale(3.5);
      opacity: 0;
    }
  }

} /* end @media (max-width: 991px) */

/* =========================================================
   PREMIUM OFFCANVAS SLIDE BAR DRAWER
   ========================================================= */
.mobile-slide-drawer {
  background: linear-gradient(180deg, rgba(8, 16, 11, 0.98) 0%, rgba(14, 24, 17, 0.99) 100%) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-left: 1px solid rgba(212, 175, 55, 0.3) !important;
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.95) !important;
  width: 320px !important;
  max-width: 85vw !important;
  z-index: 1060 !important;
}

.offcanvas-backdrop {
  z-index: 1055 !important;
}

.mobile-slide-drawer .offcanvas-header {
  border-bottom: 1px solid rgba(212, 175, 55, 0.25) !important;
  background: rgba(4, 12, 7, 0.6);
}

.mobile-slide-drawer .drawer-user-card {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(12, 28, 18, 0.95) 100%) !important;
  border: 1px solid rgba(212, 175, 55, 0.35) !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.mobile-slide-drawer .drawer-user-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.6), transparent);
}

.mobile-slide-drawer .drawer-avatar {
  background: linear-gradient(135deg, #D4AF37 0%, #8BC34A 100%) !important;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.mobile-slide-drawer .drawer-nav-link {
  color: #c5d3c8;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.mobile-slide-drawer .drawer-nav-link .icon-box {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8BC34A;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.mobile-slide-drawer .drawer-nav-link .icon-box svg,
.mobile-slide-drawer .drawer-nav-link .icon-box i {
  width: 17px;
  height: 17px;
}

.mobile-slide-drawer .drawer-nav-link:hover,
.mobile-slide-drawer .drawer-nav-link.active {
  background: linear-gradient(135deg, rgba(139, 195, 74, 0.16) 0%, rgba(212, 175, 55, 0.1) 100%);
  border-color: rgba(139, 195, 74, 0.35);
  color: #ffffff;
  transform: translateX(3px);
}

.mobile-slide-drawer .drawer-nav-link:hover .icon-box,
.mobile-slide-drawer .drawer-nav-link.active .icon-box {
  background: linear-gradient(135deg, #8BC34A 0%, #689f38 100%);
  color: #030504;
  border-color: #8BC34A;
  box-shadow: 0 0 14px rgba(139, 195, 74, 0.5);
}
