/* ============================================
   WAK PLONG - App Navigation
   Mobile: bottom tab bar
   Desktop: top bar
   ============================================ */

.app-nav {
  position: fixed;
  z-index: 999;
  display: flex;
  font-family: -apple-system, system-ui, 'Segoe UI', sans-serif;
}

.nav-brand {
  display: none;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: rgba(255,255,255,.4);
  transition: color .15s, background .15s;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

.nav-item svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  transition: stroke .15s;
}

.nav-item.active {
  color: #e74c3c;
}

/* ===== MOBILE: bottom tab bar ===== */
@media (max-width: 768px) {
  .app-nav {
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(60px + env(safe-area-inset-bottom, 0px));
    background: #1b2e4b;
    border-top: 1px solid rgba(255,255,255,.1);
    flex-direction: row;
    align-items: stretch;
  }

  .nav-item {
    flex: 1;
    flex-direction: column;
    gap: 3px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .2px;
    padding-bottom: env(safe-area-inset-bottom, 4px);
  }

  .nav-item svg {
    width: 22px;
    height: 22px;
  }

  .nav-item:active {
    color: rgba(231,76,60,.7);
  }
}

/* ===== DESKTOP: top bar ===== */
@media (min-width: 769px) {
  .app-nav {
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: #1b2e4b;
    border-bottom: 1px solid rgba(255,255,255,.1);
    flex-direction: row;
    align-items: center;
    padding: 0 24px;
    gap: 2px;
  }

  .nav-brand {
    display: block;
    margin-right: auto;
  }

  .nav-item {
    flex-direction: row;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
  }

  .nav-item svg {
    width: 15px;
    height: 15px;
  }

  .nav-item:hover {
    color: rgba(255,255,255,.85);
    background: rgba(255,255,255,.08);
  }

  .nav-item.active {
    color: #fff;
    background: rgba(231,76,60,.22);
  }
}
