/* === Layout Styles === */

/* App shell */
#app {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: var(--bg-primary);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-md);
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.header__title {
  font-size: 1.125rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header__btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
  font-size: 1.25rem;
}

.header__btn:hover { background: var(--bg-card); }

/* Main content area */
.main-content {
  padding-top: var(--header-height);
  padding-bottom: calc(var(--bottom-nav-height) + 16px);
  min-height: 100vh;
}

/* Bottom navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  height: var(--bottom-nav-height);
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--bg-bottom-nav);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  z-index: 100;
}

.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--space-xs) 4px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  font-size: 0.62rem;
  color: var(--text-muted);
  flex: 1;
  min-width: 0;
}

.bottom-nav__item.active {
  color: var(--primary);
}

.bottom-nav__item:hover {
  color: var(--text-primary);
}

.bottom-nav__icon {
  font-size: 1.35rem;
  line-height: 1;
}

/* Page transitions */
.page { animation: fadeSlideIn 300ms ease forwards; }

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

/* Section */
.section {
  padding: var(--space-md);
}

.section__title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}
