/* styles/navigation.css
   Tabs (desktop) + Tabbar (mobile) and responsive toggles
   Extracted from style.css
*/

/* Desktop tabs */
.tabs-desktop {
  display: flex;
  gap: 20px;
  padding: 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin: 12px;
  align-items: center
}

.tabs-desktop .nav-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  color: #6b4a33;
  cursor: pointer;
  transition: background .15s
}

.tabs-desktop .nav-item .ico {
  width: 18px;
  height: 18px;
  display: inline-flex
}

.tabs-desktop .nav-item.active {
  background: #6b4a33;
  color: #fff;
  box-shadow: 0 6px 16px rgba(107, 74, 51, .25)
}

/* Mobile Tabbar */
.tabbar-mobile {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: none
}

.tabbar-mobile .tabbar-inner {
  margin: 0 auto;
  width: 100%;
  max-width: none;
  /* Remove max-width on mobile for full-width bottom nav */
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 24px rgba(128, 98, 72, .12);
  border-top: 1px solid var(--line);
  height: var(--tabbar-h);
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 4px;
  padding: 0 8px 10px 8px
}

/* On larger screens (tablet+), limit bottom nav width for better aesthetics */
@media (min-width: 768px) {
  .tabbar-mobile .tabbar-inner {
    max-width: 720px;
  }
}

.tabbar-mobile .tabtab {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: #8b7e74;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  padding: 8px 6px;
  border-radius: 10px;
  touch-action: manipulation
}

.tabbar-mobile .tabtab .ico {
  width: 22px;
  height: 22px;
  display: inline-flex
}

.tabbar-mobile .tabtab .indicator {
  position: absolute;
  top: -2px;
  width: 38px;
  height: 4px;
  border-radius: 8px;
  background: #6b4a33;
  opacity: 0;
  transition: opacity .15s
}

.tabbar-mobile .tabtab.active {
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
  color: #6b4a33
}

.tabbar-mobile .tabtab.active .indicator {
  opacity: 1
}

/* Responsive toggles for navigation */
@media (max-width: 980px) {
  .tabs-desktop {
    display: none
  }

  .tabbar-mobile {
    display: block
  }
}