/**
 * Mobile Navigation - Modern & Clean Design
 * Shows at bottom on mobile devices
 */

.mobile-nav {
  /* Hide on desktop, show on mobile */
  display: none;
}

@media (max-width: 768px) {
  .mobile-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    
    /* Positioning */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    
    /* Spacing */
    padding: 8px 0;
    gap: 4px;
    
    /* Modern design */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  /* Dark mode support */
  @media (prefers-color-scheme: dark) {
    .mobile-nav {
      background: rgba(30, 30, 30, 0.95);
      border-top-color: rgba(255, 255, 255, 0.1);
    }
  }
  
  .mobile-nav-link {
    /* Layout */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    /* Sizing */
    flex: 1;
    min-width: 0;
    padding: 6px 4px;
    
    /* Style */
    text-decoration: none;
    color: #64748b;
    transition: all 0.2s ease;
    border-radius: 8px;
    
    /* Touch-friendly */
    -webkit-tap-highlight-color: transparent;
  }
  
  .mobile-nav-link:hover,
  .mobile-nav-link:focus {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.05);
    outline: none;
  }
  
  .mobile-nav-link:active {
    transform: scale(0.95);
  }
  
  .mobile-nav-icon {
    /* Icon styling */
    font-size: 24px;
    line-height: 1;
    margin-bottom: 2px;
    
    /* Emoji optimization */
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  }
  
  .mobile-nav-label {
    /* Label styling */
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    
    /* Prevent wrapping on very small screens */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  
  /* Extra small screens - smaller icons */
  @media (max-width: 360px) {
    .mobile-nav-icon {
      font-size: 20px;
    }
    
    .mobile-nav-label {
      font-size: 10px;
    }
    
    .mobile-nav-link {
      padding: 4px 2px;
    }
  }
  
  /* Add spacing at bottom of body so content isn't hidden */
  body {
    padding-bottom: 70px;
  }
}

/* Ensure mobile nav is always on top */
.mobile-nav {
  pointer-events: auto;
}

.mobile-nav * {
  pointer-events: auto;
}
