/* ============================================================
   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 legacy mobile navigation elements */
  .mobile-menu-btn,
  .navbar-collapse,
  .nav-signup-link {
    display: none !important;
  }

  /* Prevent page content from hiding under floating bottom nav */
  body {
    padding-bottom: 20px !important;
  }

  /* =========================================================
     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: hidden;
    -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) */

