/* ============================================
   BOTTOM TAB BAR FIX - ULTRA AGGRESSIVE
   Force navigation bar to be visible
   ============================================ */

@media (max-width: 1023px) {
  /* Main tabbar container - ULTRA SPECIFIC */
  nav.tabbar,
  .tabbar {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    z-index: 999999 !important;
    background: rgba(0, 0, 0, 0.98) !important;
    backdrop-filter: blur(12px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom)) !important;
    height: auto !important;
    min-height: 62px !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-around !important;
    gap: 0 !important;
    pointer-events: auto !important;
    transform: none !important;
    clip: auto !important;
    clip-path: none !important;
  }
  
  /* Tab buttons */
  .tabbar .tab,
  .tabbar button.tab {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    flex: 1 !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 6px 8px !important;
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.5) !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    pointer-events: auto !important;
    position: relative !important;
    transform: none !important;
  }
  
  /* Active tab */
  .tabbar .tab.active,
  .tabbar button.tab.active {
    color: #ff6b1a !important;
  }
  
  /* Center create button */
  .tabbar .tab-create,
  .tabbar button.tab-create {
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #ff6b1a 0%, #ff4d8e 100%) !important;
    box-shadow: 0 4px 16px rgba(255, 107, 26, 0.4) !important;
    margin-top: -8px !important;
    flex: 0 0 56px !important;
  }
  
  .tabbar .tab-create svg,
  .tabbar button.tab-create svg {
    color: #ffffff !important;
    fill: #ffffff !important;
  }
  
  /* Tab icons */
  .tabbar .tab-icon,
  .tabbar .tab svg {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 24px !important;
    height: 24px !important;
    stroke: currentColor !important;
  }
  
  /* Tab labels */
  .tabbar .tab-label {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    letter-spacing: 0.02em !important;
    color: inherit !important;
  }
  
  /* Badges */
  .tabbar .tab-badge {
    position: absolute !important;
    top: 4px !important;
    right: calc(50% - 16px) !important;
    background: #ff4d5e !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 2px 5px !important;
    border-radius: 10px !important;
    min-width: 18px !important;
    text-align: center !important;
  }
  
  .tabbar .tab-badge.hidden {
    display: none !important;
  }
  
  /* Make sure feed has bottom padding */
  #view-feed,
  .view {
    padding-bottom: 80px !important;
  }
}

/* Force display on ALL screen sizes temporarily for debugging */
nav.tabbar,
.tabbar {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}
