/* mobile-premium.css - OVR Production Mobile x1000 */

/* -------------------------------------------
   MOBILE OPTIMIZATIONS (Max-width: 860px)
------------------------------------------- */
@media (max-width: 860px) {

  /* 1. Global & Fluid Typography */
  html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }
  html {
    overscroll-behavior-y: none; 
    overscroll-behavior-x: none;
  }
  
  body {
    padding-bottom: 90px !important; /* Space for bottom nav */
  }

  .hero__title {
    font-size: clamp(2.2rem, 8vw, 3rem) !important;
    line-height: 1.1 !important;
    padding: 0 10px;
  }
  
  .section__head h2 {
    font-size: clamp(1.8rem, 6vw, 2.2rem) !important;
  }

  /* 2. Premium Fullscreen Glass Menu (Overrides current mobile menu) */
  body.has-mobile-menu .nav__links {
    width: 100% !important;
    background: rgba(5, 8, 10, 0.65) !important;
    backdrop-filter: blur(25px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
    border-left: none !important;
    padding: 6rem 2rem 4rem !important;
    align-items: center !important; /* Center links for premium feel */
  }

  body.has-mobile-menu .nav__links a {
    font-size: 1.4rem !important;
    margin-bottom: 0.8rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.2s ease !important;
  }

  /* Staggered animation when menu opens */
  body.has-mobile-menu .nav.is-open .nav__links a {
    opacity: 1;
    transform: translateY(0);
  }
  
  body.has-mobile-menu .nav.is-open .nav__links a:nth-child(1) { transition-delay: 0.1s !important; }
  body.has-mobile-menu .nav.is-open .nav__links a:nth-child(2) { transition-delay: 0.15s !important; }
  body.has-mobile-menu .nav.is-open .nav__links a:nth-child(3) { transition-delay: 0.2s !important; }
  body.has-mobile-menu .nav.is-open .nav__links a:nth-child(4) { transition-delay: 0.25s !important; }

  .nav__dropdown {
    align-items: center !important;
  }
  
  .nav__dropdown-content {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid var(--line-strong) !important;
    border-radius: 16px !important;
    margin-left: 0 !important;
    padding: 10px !important;
    text-align: center;
  }
  
  .nav__dropdown-content a {
    font-size: 1.1rem !important;
  }

  /* 3. Swipeable Carousels for Grids */
  .packs__grid, 
  .hexgrid__row, 
  .reviews__grid,
  .portfolio-grid { 
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    gap: 1.5rem !important;
    padding-bottom: 1.5rem !important; 
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none; 
    margin-left: -1.5rem; 
    margin-right: -1.5rem;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  
  .packs__grid::-webkit-scrollbar, 
  .hexgrid__row::-webkit-scrollbar, 
  .reviews__grid::-webkit-scrollbar,
  .portfolio-grid::-webkit-scrollbar {
    display: none;
  }

  .pack, .hex, .review, .portfolio-card {
    scroll-snap-align: center;
    flex: 0 0 85% !important; 
    max-width: 340px !important; 
  }

  /* 4. Glassmorphism Hero Buttons */
  .hero__cta .btn {
    width: 100%;
    justify-content: center;
  }
  
  .btn--primary {
    box-shadow: 0 8px 25px -8px rgba(79,240,221,.4) !important;
  }

  /* 5. Mobile Bottom Navigation */
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding-top: 14px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
    background: rgba(10, 17, 20, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(140, 205, 203, 0.15);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.4);
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  .mobile-bottom-nav.is-hidden {
    transform: translateY(100%);
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--ink-dim);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    width: 100%;
    gap: 5px;
    transition: color 0.3s ease, transform 0.2s ease;
  }

  .mobile-nav-item svg {
    width: 22px;
    height: 22px;
    transition: stroke 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .mobile-nav-item.is-active,
  .mobile-nav-item:active {
    color: var(--cyan);
  }

  .mobile-nav-item.is-active svg,
  .mobile-nav-item:active svg {
    transform: translateY(-3px) scale(1.1);
  }

  .mobile-nav-cart-badge {
    position: absolute;
    top: 10px;
    margin-left: 20px;
    background: var(--cyan);
    color: #04211e;
    font-weight: 700;
    font-size: 0.65rem;
    border-radius: 50%;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 0 10px rgba(79, 240, 221, 0.5);
  }

  /* Hide default header elements that are now redundant */
  .user-profile { display: none !important; }
  .nav__inner > a[href="cart.php"] { display: none !important; }
}

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