/* ============================================
   MOBILE LAYOUT (< 768px)
   ============================================ */

.app-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  /* Support for mobile browser UI (address bar) */
  height: 100dvh;
  background-color: var(--bg-primary);
}

.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px 80px 16px; /* 80px bottom padding for the fixed nav */
  -webkit-overflow-scrolling: touch;
}

/* Bottom Navigation (Mobile Sidebar equivalent) */
.sidebar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-color: var(--bg-sidebar);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: var(--z-sidebar);
  padding-bottom: env(safe-area-inset-bottom); /* iPhone notch support */
}

/* Mobile Nav Items */
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.625rem;
  font-weight: 500;
  gap: 4px;
  flex: 1;
  height: 100%;
}

.nav-item svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
  transition: all var(--transition);
}

.nav-item.active {
  color: var(--accent);
}

.nav-item.active svg {
  stroke: var(--accent);
}

/* Mobile FAB (Floating Action Button) */
.fab-mobile {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  background-color: var(--gold);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--bg-primary);
  z-index: calc(var(--z-sidebar) + 1);
}

.fab-mobile svg {
  width: 24px;
  height: 24px;
}

/* Hide desktop logo in mobile sidebar */
.sidebar-logo {
  display: none !important;
}

/* Loading screen */
.loading-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-weight: 500;
  color: var(--text-secondary);
}
