/* zolski.net — app shell (header, layout, page-panel) */

.header {
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-left { display: flex; align-items: center; gap: 2rem; }
.header h1 {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  letter-spacing: -0.3px;
  line-height: 1;
  margin: 0;
}

/* Fallback when brand-aura markup is absent */
.header h1:not(.brand-aura) {
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-tabs { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.nav-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: var(--weight-medium);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  display: inline-block;
}
.nav-tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav-tab.active {
  color: var(--accent, var(--brand-light));
  background: var(--brand-dim);
  font-weight: var(--weight-semibold);
}
.nav-tab:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.user-badge { display: flex; align-items: center; gap: 0.75rem; }
.user-info { text-align: right; }
.user-info .name { font-size: 0.85rem; font-weight: var(--weight-medium); color: var(--text); }
.user-info .user-code {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-bold);
  font-size: 0.8rem;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  flex-shrink: 0;
}
.settings-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  font-size: 1rem;
  text-decoration: none;
  flex-shrink: 0;
}
.settings-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--border-strong);
}
.settings-btn.active {
  color: var(--accent, var(--brand-light));
  background: var(--brand-dim);
  border-color: var(--brand-border);
}
.settings-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.content {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-5) var(--space-7) var(--space-8);
}
.content--wide { max-width: var(--content-wide); }
.content--narrow { max-width: var(--content-narrow); }

.page-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: var(--space-6) var(--space-7) var(--space-7);
  box-shadow: var(--shadow-panel);
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: 1.35rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--border);
}
.page-head h1 {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  letter-spacing: -0.4px;
  color: var(--text);
}
.page-sub {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--space-1);
  line-height: 1.45;
}

/* Mobile bottom navigation */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.22rem;
  padding: 0.55rem 0.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.6rem;
  font-weight: var(--weight-medium);
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: color 0.15s;
  min-height: 52px;
  text-decoration: none;
}
.mobile-nav-item svg { width: 21px; height: 21px; }
.mobile-nav-item.active { color: var(--accent, var(--brand-light)); }
.mobile-nav-item span { line-height: 1; }
.mobile-nav-item:focus-visible { outline: none; box-shadow: var(--focus-ring); }

body.has-mobile-nav { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
