/**
 * Boutme Design System — Bottom Nav + Sheets
 */

/* ══════════════════════════════════════════════════════════
   MOBILE BOTTOM NAVIGATION
══════════════════════════════════════════════════════════ */
#bm-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bm-bottomnav-h);
  background: rgba(9,9,11,0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid var(--bm-border-subtle);
  z-index: var(--bm-z-topbar);
  padding: 0 var(--bm-space-2);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.bm-bottom-nav-inner {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
}
.bm-nav-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: var(--bm-space-2);
  border-radius: var(--bm-radius-md);
  cursor: pointer;
  border: none;
  background: transparent;
  transition: all var(--bm-dur-fast) var(--bm-ease-out);
  text-decoration: none;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.bm-nav-tab:active { transform: scale(0.92); }
.bm-nav-tab-icon {
  font-size: 20px;
  color: var(--bm-text-tertiary);
  transition: color var(--bm-dur-fast), transform var(--bm-dur-base) var(--bm-ease-spring);
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bm-nav-tab-label {
  font-size: 10px;
  font-weight: var(--bm-weight-medium);
  color: var(--bm-text-tertiary);
  transition: color var(--bm-dur-fast);
  letter-spacing: 0.02em;
}
.bm-nav-tab.active .bm-nav-tab-icon { color: var(--bm-accent); transform: scale(1.1); }
.bm-nav-tab.active .bm-nav-tab-label { color: var(--bm-accent); }

/* Center Tab (TapCard hero) */
.bm-nav-tab-center {
  position: relative;
  flex: 1.2;
}
.bm-nav-tab-center-btn {
  width: 52px;
  height: 52px;
  border-radius: var(--bm-radius-full);
  background: var(--bm-gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 4px 16px rgba(0,122,255,0.4);
  transition: all var(--bm-dur-base) var(--bm-ease-spring);
  margin-top: -20px;
}
.bm-nav-tab-center:active .bm-nav-tab-center-btn { transform: scale(0.9); }
.bm-nav-tab-center-btn i { font-size: 20px; color: #fff; }

/* Notification Badge */
.bm-nav-tab-badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 16px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--bm-red);
  border-radius: var(--bm-radius-full);
  font-size: 9px;
  font-weight: var(--bm-weight-bold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bm-bg-base);
}

@media (max-width: 768px) {
  #bm-bottom-nav { display: flex; }
}

/* ══════════════════════════════════════════════════════════
   DESKTOP PLUGIN SUB-NAV
   Horizontal tab strip under the topbar so users can switch
   between a plugin's pages without leaving it. Mobile users
   keep using #bm-bottom-nav instead.
══════════════════════════════════════════════════════════ */
#bm-plugin-tabs { display: none; }

@media (min-width: 769px) {
  #bm-plugin-tabs {
    display: flex;
    align-items: center;
    gap: var(--bm-space-1);
    position: fixed;
    top: var(--bm-topbar-h);
    left: var(--bm-sidebar-w);
    right: 0;
    height: 52px;
    padding: 0 var(--bm-space-6);
    background: rgba(9,9,11,0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--bm-border-subtle);
    z-index: calc(var(--bm-z-topbar) - 1);
    overflow-x: auto;
    transition: left var(--bm-dur-slow) var(--bm-ease-out);
  }
  #bm-plugin-tabs.sidebar-collapsed { left: var(--bm-sidebar-collapsed); }
  #bm-content.has-plugin-tabs { padding-top: calc(var(--bm-topbar-h) + 52px); }
}

.bm-plugin-tab {
  display: inline-flex;
  align-items: center;
  gap: var(--bm-space-2);
  padding: var(--bm-space-2) var(--bm-space-4);
  border-radius: var(--bm-radius-md);
  font-size: var(--bm-text-sm);
  font-weight: var(--bm-weight-medium);
  color: var(--bm-text-secondary);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  transition: color var(--bm-dur-fast) var(--bm-ease-out), background var(--bm-dur-fast) var(--bm-ease-out);
}
.bm-plugin-tab:hover  { color: var(--bm-text-primary); background: var(--bm-bg-hover); }
.bm-plugin-tab.active { color: var(--bm-accent); }
.bm-plugin-tab.active::after {
  content: '';
  position: absolute;
  left: var(--bm-space-3);
  right: var(--bm-space-3);
  bottom: -1px;
  height: 2px;
  border-radius: var(--bm-radius-full);
  background: var(--bm-accent);
}

/* ══════════════════════════════════════════════════════════
   BOTTOM SHEETS — fully defined in boutme-sheets.css
   (All bm-sheet-* definitions removed from this file)
══════════════════════════════════════════════════════════ */
