/* Yuni components. Requires tokens.css. Bubbly, 24px-rounded, hop on press. */
*,*::before,*::after { box-sizing: border-box; }
body { margin:0; background:var(--surface); color:var(--text); font:500 15px/1.5 var(--font-body); }
h1,h2,h3 { font-family:var(--font-display); margin:0; }
h1 { font-size:40px; font-weight:800; letter-spacing:-.03em; }
h2 { font-size:24px; font-weight:700; }
.display { font:800 56px/1.05 var(--font-display); letter-spacing:-.03em; }
@media (max-width:480px) { .display { font-size:36px; } h1 { font-size:30px; } }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline:3px solid var(--yuni-sky); outline-offset:2px; }

/* buttons: min 44px touch target */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:var(--space-2);
  min-height:44px; padding:0 24px; border:1px solid transparent; border-radius:var(--radius-btn);
  font:700 14px var(--font-body); cursor:pointer; transition:transform .15s ease-out, box-shadow .15s; }
.btn:active { transform:translateY(1px) scale(.97); }          /* the "hop" */
.btn--primary { background:var(--grad-focus); color:#fff; box-shadow:var(--shadow-cta); }
.btn--ink     { background:var(--ink); color:#fff; }
.btn--ghost   { background:var(--surface); color:var(--text); border-color:var(--border); }
.btn--joy     { background:var(--grad-joy); color:var(--ink); }   /* yellow only as a fill behind ink text */
.btn[disabled] { opacity:.5; cursor:default; transform:none; }

/* chips (campus filters) */
.chip { display:inline-flex; align-items:center; min-height:36px; padding:0 14px; border-radius:999px;
  border:1px solid var(--border); background:var(--surface-2); color:var(--text-muted); font:600 13px var(--font-body); cursor:pointer; }
.chip[aria-pressed="true"], .chip--active { background:var(--ink); color:#fff; border-color:var(--ink); }

/* input */
.input { width:100%; min-height:44px; padding:0 16px; border-radius:999px; border:1px solid var(--border);
  background:var(--surface-2); color:var(--text); font:500 14px var(--font-body); }
.input::placeholder { color:var(--text-faint); }

/* card */
.card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-card);
  padding:var(--space-4); box-shadow:var(--shadow-card); }
.card--urgent { border-color:var(--yuni-alert); }

/* badges and sync state (always visible on queued items) */
.badge { display:inline-flex; align-items:center; gap:6px; padding:2px 10px; border-radius:999px; font:700 12px var(--font-body); }
.badge--scope   { background:var(--surface-2); color:var(--text-muted); border:1px solid var(--border); }
.badge--synced  { background:#F0FDF4; color:var(--yuni-teal-deep); }
.badge--pending { background:#FEF9C3; color:#854D0E; }
.badge--failed  { background:#FEE2E2; color:#B91C1C; }
.badge--live    { background:var(--yuni-alert); color:#fff; }

/* poll option */
.poll-option { position:relative; display:flex; justify-content:space-between; width:100%; min-height:44px; padding:10px 16px;
  border:1px solid var(--border); border-radius:var(--radius-btn); background:var(--surface); color:var(--text);
  font:600 14px var(--font-body); text-align:left; cursor:pointer; overflow:hidden; }
.poll-option[aria-checked="true"] { border-color:var(--yuni-blue); box-shadow:0 0 0 2px var(--yuni-blue) inset; }
.poll-option__fill { position:absolute; inset:0 auto 0 0; background:var(--yuni-sky); opacity:.18; width:var(--pct,0%); }

/* agent proposal: nothing changes until Approve */
.proposal { border:1px dashed var(--yuni-blue); border-radius:var(--radius-card); padding:var(--space-4); background:var(--surface-2); }
.proposal__actions { display:flex; gap:var(--space-2); margin-top:var(--space-3); }

/* bottom nav: Home, Study, Map, Feed, Me */
.bottom-nav { position:fixed; left:0; right:0; bottom:0; display:flex; justify-content:space-around;
  padding:8px 8px calc(8px + var(--safe-bottom)); background:var(--surface); border-top:1px solid var(--border); }
.bottom-nav a { flex:1; min-height:44px; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:2px; color:var(--text-faint); font:700 11px var(--font-body); text-decoration:none; }
.bottom-nav a[aria-current="page"] { color:var(--yuni-blue); }

@media (prefers-reduced-motion: reduce) { .btn { transition:none; } .btn:active { transform:none; } }
