/* ===== Light Mode (default) ===== */
:root {
  --bg: #fafafa;
  --bg-secondary: #f0f0f0;
  --text: #1a1a1a;
  --text-secondary: #555555;

  --accent: #9455ad;
  --accent-hover: #7d4894;
  --accent-text: #ffffff;

  /* Category pastels — derived from app's Swift pastel formula:
     light = base + (1 - base) * 0.82  */
  --habitat-pastel: rgb(225, 238, 229);
  --pokemon-pastel: rgb(247, 236, 220);
  --items-pastel: rgb(222, 235, 248);

  /* Category label colors — darkened from brand colors for contrast on pastels */
  --habitat-color: #397049;
  --pokemon-color: #8a5e15;
  --items-color: #2d6aa6;

  --progress-pastel: rgb(237, 225, 241);
  --progress-color: #7b4a8f;

  --card-bg: #ffffff;
  --card-border: rgba(0, 0, 0, 0.06);
  --nav-bg: rgba(250, 250, 250, 0.85);
  --footer-bg: var(--bg-secondary);
}

/* ===== Dark Mode ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --bg-secondary: #1a1a1a;
    --text: #f0f0f0;
    --text-secondary: #aaaaaa;

    --accent: #b87fd4;
    --accent-hover: #c994e0;
    --accent-text: #ffffff;

    /* Category pastels — dark = base * 0.18 */
    --habitat-pastel: rgb(16, 29, 20);
    --pokemon-pastel: rgb(38, 27, 10);
    --items-pastel: rgb(13, 26, 39);

    --habitat-color: #6fb885;
    --pokemon-color: #e0a84e;
    --items-color: #5ea2e8;

    --progress-pastel: rgb(28, 16, 32);
    --progress-color: #c49cdb;

    --card-bg: #1e1e1e;
    --card-border: rgba(255, 255, 255, 0.08);
    --nav-bg: rgba(18, 18, 18, 0.85);
    --footer-bg: var(--bg-secondary);
  }
}
