/**
 * Base Styles - CSS Reset, Tipografia e Utilitários
 * Sistema de Design: Fluent Focus
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  font-family: var(--font-family-body);
  font-size: 14px;
  line-height: 22px;
  color: var(--color-on-surface);
  background-color: var(--color-background);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Material Symbols Icon Configuration */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
  user-select: none;
}

/* Tipografia Estruturada */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-headline);
  color: var(--color-on-surface);
  font-weight: 700;
  line-height: 1.25;
}

.display-title {
  font-family: var(--font-family-headline);
  font-size: 32px;
  font-weight: 800;
  line-height: 38px;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .display-title {
    font-size: 40px;
    line-height: 48px;
  }
}

.headline-lg {
  font-family: var(--font-family-headline);
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: -0.015em;
}

@media (min-width: 768px) {
  .headline-lg {
    font-size: 28px;
    line-height: 36px;
  }
}

.headline-md {
  font-family: var(--font-family-headline);
  font-size: 20px;
  font-weight: 600;
  line-height: 26px;
  letter-spacing: -0.01em;
}

.headline-sm {
  font-family: var(--font-family-headline);
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  letter-spacing: -0.005em;
}

.body-lg {
  font-size: 16px;
  line-height: 26px;
  font-weight: 400;
}

.body-md {
  font-size: 14px;
  line-height: 22px;
  font-weight: 400;
}

.body-sm {
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
}

.label-lg {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.label-md {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.label-sm {
  font-size: 11px;
  line-height: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Cores de Texto e Estados */
.text-muted {
  color: var(--color-on-surface-variant);
}

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

.text-secondary {
  color: var(--color-secondary);
}

.text-tertiary {
  color: var(--color-tertiary);
}

.text-error {
  color: var(--color-error);
}

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

/* Flexbox Utilitários */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-row { display: flex; flex-direction: row; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }

/* Espaçamento Flex */
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* Visibilidade e Acessibilidade */
.hidden {
  display: none !important;
}

.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;
}

/* Foco de Acessibilidade */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
