/* ─────────────────────────────────────────────
   layout.css — App shell, nav, view system
   ───────────────────────────────────────────── */

/* ── App Shell ──────────────────────────────── */

.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
}

/* ── Header ─────────────────────────────────── */

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

.app-logo {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.app-logo span {
  color: var(--accent);
}

/* ── Main Content ────────────────────────────── */

.app-main {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-5);
}

/* ── Views ──────────────────────────────────── */

.view {
  display: none;
  flex-direction: column;
  gap: var(--space-5);
  animation: fadeIn 180ms ease;
}

.view-active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Bottom Nav ─────────────────────────────── */

.app-nav {
  display: flex;
  border-top: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  bottom: 0;
  z-index: 10;
}

.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-2);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  transition: color var(--t-fast);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.nav-btn:hover       { color: var(--text-2); }
.nav-btn.nav-active  { color: var(--accent); }

/* ── Section Header ─────────────────────────── */

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}
