/* ===== BASE STYLES - PEOPLE APP ===== */

/* ===== RESET & NORMALIZE ===== */

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

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

body {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY SYSTEM ===== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  margin: 0;
}

h1 {
  font-size: var(--font-size-6xl);
  margin-bottom: var(--space-4);
}

h2 {
  font-size: var(--font-size-5xl);
  margin-bottom: var(--space-3);
}

h3 {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-3);
}

h4 {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-2);
}

h5 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-2);
}

h6 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-2);
}

p {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-4);
  color: var(--color-text-secondary);
}

/* ===== INTERACTIVE ELEMENTS ===== */

button {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
}

button:focus-visible {
  outline: 2px solid var(--color-primary-blue);
  outline-offset: 2px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-base);
}

a:focus-visible {
  outline: 2px solid var(--color-primary-blue);
  outline-offset: 2px;
}

/* ===== MEDIA ELEMENTS ===== */

img {
  max-width: 100%;
  height: auto;
  display: block;
}

svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ===== UTILITY RESET ===== */

ul, ol {
  list-style: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ===== ACCESSIBILITY ===== */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-text-primary: #ffffff;
    --color-text-secondary: #ffffff;
    --color-bg-primary: #000000;
    --color-border-primary: #ffffff;
  }
}

/* ===== MAIN LAYOUT STRUCTURE ===== */

#main-content {
  position: relative;
  padding-top: var(--nav-height);
  min-height: 100vh;
}

/* ===== COMMON PATTERNS ===== */

/* Flexbox utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { justify-content: space-between; }
.flex-around { justify-content: space-around; }

/* Grid utilities */
.grid { display: grid; }
.grid-center { place-items: center; }

/* Position utilities */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

/* Text utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Spacing utilities */
.mt-auto { margin-top: auto; }
.mb-auto { margin-bottom: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Overflow utilities */
.overflow-hidden { overflow: hidden; }
.overflow-visible { overflow: visible; }

/* Pointer events */
.pointer-none { pointer-events: none; }
.pointer-auto { pointer-events: auto; }

/* Transitions */
.transition-base { transition: var(--transition-base); }
.transition-smooth { transition: var(--transition-smooth); }
