/* ===================================================
   Meno Ativa — app.css
   Reset + CSS Custom Properties + Tipografia base
   =================================================== */

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
}

/* ===================================================
   Variáveis — Paleta Light (padrão)
   =================================================== */
:root {
  --bg: #FAF7F2;
  --bg2: #ffffff;
  --bg3: #EDE6DC;
  --card: #ffffff;
  --text1: #1C1118;
  --text2: #6B5A6B;
  --text3: #A890A8;
  --border: #EDE6DC;

  --roxo: #8B2E8B;
  --roxo-pale: #F5ECF5;
  --roxo-light: #B55BB5;

  --verde: #7BAB7B;
  --verde-pale: #EBF3EB;

  --dourado: #C9A84C;
  --dourado-pale: #FBF5E6;

  /* Streak bg — fixo, nunca inverte */
  --streak-bg: #2A1F2E;
}

/* ===================================================
   Paleta Dark
   =================================================== */
body.dark {
  --bg: #0D0A10;
  --bg2: #1C1520;
  --bg3: #261E2A;
  --card: #1C1520;
  --text1: #E8E0EE;
  --text2: #A890A8;
  --text3: #6B5A6B;
  --border: #2E2434;

  --roxo: #B55BB5;
  --roxo-pale: rgba(181, 91, 181, 0.12);
  --roxo-light: #D07AD0;

  --verde: #8DC48D;
  --verde-pale: rgba(141, 196, 141, 0.1);

  --dourado: #D4B56A;
  --dourado-pale: rgba(212, 181, 106, 0.1);

  /* --streak-bg permanece #2A1F2E — declarado em :root, não sobrescrito aqui */
}

/* ===================================================
   Tipografia base
   =================================================== */
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text1);
  transition: background 0.2s, color 0.2s;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Classe utilitária para Playfair Display */
.font-display {
  font-family: 'Playfair Display', serif;
}

/* ===================================================
   Utilitários
   =================================================== */
.hidden {
  display: none !important;
}

/* Acessibilidade — visualmente oculto mas lido por leitores de tela */
.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;
}

/* ===================================================
   Ponto de montagem do SPA
   =================================================== */
#app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ===================================================
   Layout do app autenticado
   =================================================== */

/* Mobile: padding bottom para o bottom nav (64px) */
.app-layout {
  flex: 1;
  padding-bottom: 64px;
}

/* Desktop: sidebar lateral (220px), sem bottom nav */
@media (min-width: 768px) {
  .app-layout {
    padding-bottom: 0;
    padding-left: 220px;
  }
}
