/*
 * App shell styles — layout, top nav, page containers, empty states.
 * Extracted from specs/v2-profile-prototype-APR-23.html (nav block only).
 * Page-specific styles land in later tickets.
 */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--gf-font-primary);
  font-size: var(--gf-font-base);
  background: var(--ugf-bg-primary);
  color: var(--ugf-text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ugf-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Top nav (prototype lines 57-69) */
.topnav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--ugf-surface);
  border-bottom: 1px solid var(--ugf-border);
}
.topnav-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.brand {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ugf-ink);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand .brand-dot { color: var(--ugf-accent); }

.main-tabs { display: flex; gap: 2px; }
.main-tab {
  padding: 0.4rem 0.9rem;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ugf-slate);
  cursor: pointer;
  border-radius: 6px;
  text-decoration: none;
}
.main-tab:hover {
  background: var(--ugf-surface-muted);
  color: var(--ugf-ink);
  text-decoration: none;
}
.main-tab.active {
  color: var(--ugf-accent);
  background: var(--ugf-accent-tint);
}

.topnav-right { display: flex; align-items: center; gap: 0.5rem; }
.topnav-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  font-family: inherit;
  border: none;
  cursor: pointer;
}
.topnav-chip:hover { text-decoration: none; }
.chip-saved {
  background: var(--ugf-star-bg);
  color: var(--ugf-star);
}
.chip-location {
  background: var(--ugf-surface-muted);
  color: var(--ugf-slate);
}
.chip-demo {
  background: var(--ugf-locked-bg);
  color: var(--ugf-locked);
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
}

/* Main + pages (prototype lines 71-73) */
main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
.page { display: none; }
.page.active { display: block; }

/* Hero (prototype lines 74-76) */
.hero { margin-bottom: 1.5rem; }
.hero h1 {
  margin: 0 0 0.25rem;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ugf-ink);
}
.hero p {
  margin: 0;
  color: var(--ugf-slate);
  font-size: 0.9375rem;
}

/* Empty state — scaffold placeholder, lives until page content fills in */
.empty-state {
  background: var(--ugf-surface);
  border: 1px solid var(--ugf-border);
  border-radius: var(--ugf-radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--ugf-shadow-card);
}
.empty-title {
  margin: 0 0 0.375rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ugf-ink);
}
.empty-body {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ugf-slate);
  line-height: 1.55;
}

/* Responsive (prototype lines 171-180) */
@media (max-width: 640px) {
  .topnav-inner {
    padding: 0 0.875rem;
    flex-wrap: wrap;
    height: auto;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  .main-tabs {
    order: 3;
    width: 100%;
    justify-content: space-between;
    margin-top: 0.375rem;
  }
  .main-tab {
    font-size: 0.8125rem;
    padding: 0.3rem 0.5rem;
  }
  main { padding: 1.25rem 0.875rem 4rem; }
  .hero h1 { font-size: 1.5rem; }
}
