/* ============================================
   ZIEN FIT — Base Styles & Reset
   ============================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--text-primary);
  background-color: var(--bg-void);
  line-height: 1.6;
  letter-spacing: var(--ls-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-void);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* ── Selection ── */
::selection {
  background: rgba(201,168,76,0.3);
  color: var(--text-primary);
}

/* ── Links ── */
a {
  color: var(--gold-primary);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-snap);
}
a:hover {
  color: var(--gold-light);
}

/* ── Images ── */
img, svg {
  max-width: 100%;
  display: block;
}

/* ── Lists ── */
ul, ol {
  list-style: none;
}

/* ── Inputs ── */
input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

/* ── Headings ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
}

/* ── Display Text ── */
.text-display {
  font-family: var(--font-display);
  letter-spacing: var(--ls-display);
  text-transform: uppercase;
}

/* ── Mono Text ── */
.text-mono {
  font-family: var(--font-mono);
}

/* ── App Container ── */
#app {
  min-height: 100vh;
  position: relative;
}

/* ── Page Container ── */
.page {
  display: none;
  min-height: 100vh;
}
.page.active {
  display: block;
}

/* ── App Layout (sidebar + content) ── */
.app-layout {
  display: flex;
  min-height: 100vh;
}
.app-content {
  flex: 1;
  padding: var(--space-lg);
  padding-bottom: calc(var(--bottom-nav-height) + var(--space-lg));
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 1024px) {
  .app-content {
    padding: var(--space-xl) var(--space-2xl);
    padding-bottom: var(--space-xl);
    margin-left: var(--sidebar-width);
  }
}

/* ── Utility: Screen Reader Only ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Utility: Gold Divider ── */
.gold-divider {
  height: 1px;
  background: linear-gradient(90deg, var(--border-gold) 0%, transparent 100%);
  border: none;
  margin: var(--space-lg) 0;
}

/* ── Utility: Container ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 80px);
}
