/* Navigation shared styles for mobile menu and bottom tab bar */

/* Mobile menu */
.mobile-nav-menu {
  background: rgba(16, 20, 25, 0.98) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

.mobile-nav-menu a {
  color: #FFFFFF !important;
}

.mobile-nav-menu a:hover {
  background: #007aff !important;
  color: #FFFFFF !important;
}

@media (max-width: 768px) {
  body .navigation-wrapper,
  header[role="banner"] .navigation-wrapper {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 100% !important;
  }

  body .navigation-wrapper a,
  header[role="banner"] .navigation-wrapper a {
    display: none !important;
    visibility: hidden !important;
  }

  body nav,
  header[role="banner"] nav {
    width: 100% !important;
  }

  body .hamburger-menu,
  body .hamburger-icon,
  body .hamburger-menu.active,
  body .hamburger-menu.active .hamburger-icon span,
  body .hamburger-menu.active .hamburger-icon::before,
  body .hamburger-menu.active .hamburger-icon::after,
  body .mobile-nav-overlay,
  body .mobile-nav-overlay.active,
  body .mobile-nav-menu,
  body .mobile-nav-menu.active {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  header[role="banner"] > div {
    justify-content: center !important;
    padding: 0 20px !important;
  }

  header[role="banner"] img,
  header[role="banner"] .logo {
    margin: 0 auto !important;
  }
}

/* Menu mobile landscape - apenas emojis e avatar */
@media (max-width: 768px) {
  .invix-sidebar {
    width: 60px !important;
    transition: width 0.3s ease;
    cursor: pointer;
    pointer-events: auto !important;
    z-index: 50 !important;
    background: rgba(16, 20, 25, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    justify-content: center !important;
  }
  
  .invix-sidebar.expanded {
    width: 200px !important;
    z-index: 50 !important;
    background: rgba(16, 20, 25, 0.99) !important;
  }
  
  .invix-sidebar .user-name, 
  .invix-sidebar ul li .label { 
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    overflow: hidden !important;
  }
  
  .invix-sidebar.expanded .user-name, 
  .invix-sidebar.expanded ul li .label { 
    display: inline !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: auto !important;
    transition: all 0.3s ease 0.1s;
  }
  
  .invix-sidebar ul li { 
    justify-content: center !important;
    padding: 8px 5px !important;
    margin: 6px auto !important;
    margin: 8px auto !important;
    width: 48px !important;
    pointer-events: auto !important;
  }
  
  .invix-sidebar.expanded ul li { 
    justify-content: flex-start !important;
    padding: 10px 8px !important;
    margin: 6px 8px !important;
    width: auto !important;
  }
  
  .invix-sidebar ul li .emoji-icon { 
    margin-right: 0 !important;
  }
  
  .invix-sidebar.expanded ul li .emoji-icon { 
    margin-right: 8px !important;
  }
  
  .invix-main {
    margin-left: 60px !important;
    transition: margin-left 0.3s ease;
  }
  
  .invix-main.sidebar-expanded {
    margin-left: 200px !important;
  }

  .cards-section {
    grid-template-columns: 1fr !important;
  }
  .feature-card {
    min-height: 280px;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
  .cards-section .feature-card p,
  .cards-section .feature-card h3,
  .cards-section .feature-card i {
    margin-left: auto;
    margin-right: auto;
  }
  @media (max-width: 768px) {
    .cards-section .feature-card {
      min-height: auto;
    }
  }
}

/* Bottom tab bar */
.bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    height: 64px;
    background: rgba(23, 26, 33, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    align-items: center;
    justify-content: space-around;
    padding: 0 env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.3);
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1;
    height: 64px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s ease;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
    padding: 0;
  }

  .bottom-nav-item:active {
    transform: scale(0.92);
  }

  .bottom-nav-item.active {
    color: #007aff;
  }

  body.professional-mode .bottom-nav-item.active {
    color: #007aff !important;
  }

  .bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: #007aff;
    border-radius: 2px;
  }

  body.professional-mode .bottom-nav-item.active::before {
    background: #007aff !important;
  }

  .bottom-nav-item svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .bottom-nav-item.active svg {
    stroke-width: 2.2;
  }

  .bottom-nav-item span {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    white-space: nowrap;
  }

  body {
    padding-bottom: 72px;
  }

  body > div:first-child[style*="height: 60px"] {
    height: 50px !important;
  }

  body.lumnixapp-page .bottom-nav {
    display: none !important;
  }
  body.lumnixapp-page {
    padding-bottom: 0 !important;
  }
}

#entry-start {
  animation: lumnixEntryGlow 3s ease-in-out infinite;
}

@keyframes lumnixEntryGlow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(120, 80, 255, 0.1), 0 0 20px rgba(0, 180, 255, 0.05);
  }
  50% {
    box-shadow: 0 0 80px rgba(120, 80, 255, 0.8), 0 0 160px rgba(0, 180, 255, 0.5), 0 0 300px rgba(20, 184, 166, 0.25);
  }
}
