/* =========================================================================
   MachiYou wireframes — PER-SCREEN TOP NAV BAR
   Fixed top, 44px, semi-transparent z backdrop blur.
   Auto-injected przez scripts/wf-nav.js.
   ========================================================================= */

.wf-nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 44px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 13px;
  color: #1a1a1a;
}

.wf-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: #555;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 0;
  background: transparent;
  transition: background 0.12s, color 0.12s;
  font-family: inherit;
  white-space: nowrap;
}

.wf-nav-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #1a1a1a;
}

.wf-nav-btn:active {
  background: rgba(0, 0, 0, 0.1);
}

.wf-nav-btn-icon {
  font-size: 14px;
  line-height: 1;
}

.wf-nav-title {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  color: #555;
}

.wf-nav-title a {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 5px;
  transition: background 0.12s;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wf-nav-title a:hover { background: rgba(0, 0, 0, 0.05); color: #1a1a1a; }

.wf-nav-id {
  background: #1a1a1a;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  flex-shrink: 0;
}

.wf-nav-name {
  font-weight: 600;
  color: #1a1a1a;
}

.wf-nav-pkg {
  opacity: 0.55;
  font-weight: 500;
}

.wf-nav-spacer {
  width: 100px;
  flex-shrink: 0;
}

/* === BODY PADDING — wireframes muszą się zmieścić pod paskiem === */

body {
  padding-top: 44px;
}

/* === RESPONSIVE === */

@media (max-width: 600px) {
  .wf-nav-bar { padding: 0 8px; gap: 6px; }
  .wf-nav-btn { padding: 6px 8px; font-size: 12px; }
  .wf-nav-btn .wf-nav-btn-label { display: none; } /* tylko ikona */
  .wf-nav-name, .wf-nav-pkg { display: none; } /* tylko ID badge */
  .wf-nav-spacer { width: 32px; }
}
