/* CANONICAL SOURCE for public/theme.css in hub-service and events-service.
   Edit here, then run `node scripts/sync-public-assets.mjs` from the repo
   root to copy it into both services' public/ dirs (also done automatically
   by scripts/deploy-service.sh before a deploy) — see docs/family-hub-plan.md
   decision D-H8 (Family Hub Phase 4). */
:root {
  --bg: #faf9f7;
  --card: #fff;
  --ink: #1c1a17;
  --muted: #6b6459;
  --line: #e5e0d8;
  --accent: #3a5a40;
  --accent-soft: #c5d6c8;
}

[data-theme="harbor"] {
  --accent: #2c5f73;
  --accent-soft: #c3d9e0;
}

[data-theme="plum"] {
  --accent: #6b3f5e;
  --accent-soft: #ddc7d5;
}

[data-theme="terracotta"] {
  --accent: #8a4520;
  --accent-soft: #e6cdb9;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

.theme-picker {
  display: flex;
  gap: 0.6rem;
}

.swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--bg);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.swatch[data-theme="forest"] { background: #3a5a40; }
.swatch[data-theme="harbor"] { background: #2c5f73; }
.swatch[data-theme="plum"] { background: #6b3f5e; }
.swatch[data-theme="terracotta"] { background: #8a4520; }
.swatch:hover { transform: scale(1.15); }
.swatch.active { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }

.btn {
  font: inherit;
  font-size: 0.9rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease, opacity 0.15s ease;
}
.btn:hover { border-color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn:disabled { cursor: not-allowed; opacity: 0.55; transform: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--accent-soft); }

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
