/* ============================================================
   layout.css — App shell, bottom nav, view containers
   ============================================================ */

/* ---- App container ---- */
.app-container {
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: var(--nav-height);
  min-height: 100vh;
  background: transparent;
}

/* ---- Views ---- */
.view {
  display: none;
  padding: var(--space-md);
  animation: fadeIn 0.15s ease;
}

.view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---- View header ---- */
.view-header {
  margin-bottom: var(--space-md);
}

.view-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-text);
}

/* ---- Bottom navigation ---- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--glass-border);
  box-shadow: 0 -4px 24px rgba(60,60,120,0.08);
  display: flex;
  z-index: 100;
}

.nav-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--color-neutral);
  font-size: var(--font-size-xs);
  min-height: 44px;
  transition: color 0.15s;
}

.nav-tab.active {
  color: var(--color-primary);
}

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

/* ---- Sheet overlay (food picker) ---- */
.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(40, 40, 80, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
}

.sheet {
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  max-height: 85vh;
  overflow-y: auto;
  padding: var(--space-md);
}

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

.sheet-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.sheet-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-lg);
  color: var(--color-neutral);
}
