/* ============================================================================
 * 183 PWA — shell.css
 * Split from the original single-file PWA. See styles/README.md for the
 * full layout map.
 * ========================================================================== */



/* ============================================================================
   App shell
   ========================================================================== */

#app {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  padding-top: var(--sa-top);
  padding-bottom: calc(76px + var(--sa-bot));
  position: relative;
}

.screen {
  flex: 1;
  padding: 12px 16px 24px;
  animation: fadeIn 240ms ease;
}

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

@keyframes glow {
  0%, 100% { box-shadow: 0 0 0 1px var(--line-glow), 0 0 16px rgba(0, 224, 255, 0.18); }
  50% { box-shadow: 0 0 0 1px var(--line-glow), 0 0 24px rgba(0, 224, 255, 0.32); }
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 4px;
}

.app-header .logo {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 1px;
}
.app-header .logo .accent {
  color: var(--accent);
  text-shadow: 0 0 16px rgba(0, 224, 255, 0.5);
}

/* Typographic-mark logo variant (PWA-026). Same composition as the
   splash mark, scaled to fit the header. The shared composition is
   what lets the splash morph cleanly into this header position when
   it dissolves — no different-shape jump-cut. */
.app-header .logo-mark {
  display: flex;
  align-items: center;
  height: 100%;
}

.app-header .icon-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  color: var(--text-soft);
  transition: all 160ms;
}
.app-header .icon-btn:hover { color: var(--accent); border-color: var(--line-strong); }
.app-header .icon-btn svg { width: 18px; height: 18px; }



/* ============================================================================
   Tab bar — bottom nav
   ========================================================================== */

.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  /* Use --bg-overlay so the tab bar follows the active theme.
     Light theme defines this as rgba(255,255,255,0.92), dark theme
     uses the dark-blue value baked in below for backwards compatibility
     with the original dark-only design. */
  background: var(--bg-overlay, rgba(10, 18, 32, 0.92));
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  border-top: 1px solid var(--line);
  display: flex;
  padding: 6px 8px calc(6px + var(--sa-bot));
  z-index: 50;
  max-width: 540px;
  margin: 0 auto;
}

.tab-bar .tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 200ms;
}

.tab-bar .tab svg {
  width: 22px; height: 22px;
  transition: transform 200ms;
}

.tab-bar .tab.active {
  color: var(--accent);
}
.tab-bar .tab.active svg {
  filter: drop-shadow(0 0 6px rgba(0, 224, 255, 0.55));
}


