/* app.css — shared styles for the mobile mockup pages (/app/…).
   Colors/radii/shadows come from gozo-tokens.css variables. */

/* ── Page scaffolding (outside the phone) ─────────────────────── */
body.mock {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--gozo-text);
  background: var(--gozo-bg);
  -webkit-font-smoothing: antialiased;
}
.stage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 32px 16px 48px;
  box-sizing: border-box;
}
.caption { text-align: center; }
.caption h1 { margin: 0; font-size: 18px; font-weight: 700; }
.caption p { margin: 4px 0 0; font-size: 13px; color: var(--gozo-text-soft); }
.pagenav {
  display: flex;
  gap: 18px;
  font-size: 13px;
  font-weight: 700;
}
.pagenav a { color: var(--gozo-teal); text-decoration: none; }
.pagenav a:hover { text-decoration: underline; }

/* ── Phone frame (per gozo-shared.jsx MobileFrame) ────────────── */
.phone {
  width: 390px;
  height: 780px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--gozo-bg-mobile);
  border: 6px solid #CBD5E1; /* bezel — slate-300 */
  box-shadow: 0 0 0 1px #E2E8F0, 0 24px 60px -24px rgba(15,23,42,0.18);
  display: flex;
  flex-direction: column;
  position: relative;
  box-sizing: border-box;
}
.phone *, .phone *::before, .phone *::after { box-sizing: border-box; }
.phone, .phone * { scrollbar-width: none; }
.phone::-webkit-scrollbar, .phone *::-webkit-scrollbar { width: 0; height: 0; }
.phone a { color: inherit; text-decoration: none; }
.phone button { font-family: inherit; cursor: pointer; }
/* Primary button keeps its on-accent ink — otherwise `.phone a{color:inherit}`
   (more specific than .gz-btn) pulls slate-900 text onto the slate-900 button. */
.phone a.gz-btn { color: var(--gozo-text-on-teal); }

.statusbar {
  height: 32px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #0F172A; /* slate-900 — status bar on white phone */
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.statusbar .sicons { display: flex; align-items: center; gap: 5px; }
.statusbar svg { fill: currentColor; }
.battery {
  width: 22px;
  height: 11px;
  border: 1.2px solid currentColor;
  border-radius: 3px;
  padding: 1px;
}
.battery span { display: block; width: 78%; height: 100%; background: currentColor; border-radius: 1px; }

.phone-body { flex: 1; overflow: hidden; position: relative; display: flex; flex-direction: column; }
.screen { flex: 1; overflow: auto; }
.screen--column { display: flex; flex-direction: column; overflow: hidden; }

.gesture { height: 22px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.gesture span { width: 120px; height: 4px; border-radius: 2px; background: rgba(15,23,42,0.25); }

/* ── Icons ────────────────────────────────────────────────────── */
.ic {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.ic-teal { color: var(--gozo-teal); }
.ic-muted { color: var(--gozo-text-muted); }
.ic-soft { color: var(--gozo-text-soft); }

/* ── Tab bar ──────────────────────────────────────────────────── */
.tabbar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: var(--gozo-card);
  border-top: 1px solid var(--gozo-border);
  padding: 10px 8px 6px;
  display: flex;
  justify-content: space-around;
}
.tabbar a, .tabbar .tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  color: var(--gozo-text-soft);
  font-size: 10px;
  font-weight: 700;
}
.tabbar .active { color: var(--gozo-teal); }

/* ── Mobile header ────────────────────────────────────────────── */
.m-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 12px;
  color: var(--gozo-text);
}
.m-header .back {
  background: transparent;
  border: none;
  padding: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: inherit;
}
.m-header .titles { flex: 1; text-align: center; margin-right: 32px; }
.m-header--noback .titles { text-align: left; margin-right: 0; }
.m-header h1 { margin: 0; font-size: 18px; font-weight: 700; }
.m-header .sub { font-size: 12px; opacity: 0.7; margin-top: 2px; }

.iconbtn {
  background: transparent;
  border: none;
  padding: 0;
  display: grid;
  place-items: center;
  color: inherit;
  position: relative;
}

/* ── Cards & rows ─────────────────────────────────────────────── */
.card {
  background: var(--gozo-card);
  border: 1px solid var(--gozo-border);
  border-radius: 16px;
}
.row { display: flex; align-items: center; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.spacer { height: 100px; }

/* Hero / balance surfaces — flat light card in sketch mode (was dark DS 2.0 hero) */
.grad {
  background: #F8FAFC; /* slate-50 */
  border: 1px solid #E2E8F0; /* slate-200 */
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
  color: #0F172A; /* slate-900 */
}
.glass {
  background: #FFFFFF;
  color: #0F172A;
  border: 1px solid #E2E8F0;
}

/* ── Tinted tiles & avatars (JSX color + '22' tints) ─────────── */
/* Sketch mode: category chips mapped to a monochrome slate ramp so
   different categories stay faintly distinguishable without adding hues. */
.tc-teal   { --tc: var(--gozo-teal); }
.tc-sage   { --tc: #94A3B8; } /* slate-400 */
.tc-sand   { --tc: #64748B; } /* slate-500 */
.tc-purple { --tc: #475569; } /* slate-600 */
.tc-orange { --tc: #334155; } /* slate-700 */
.tc-blue   { --tc: #64748B; } /* slate-500 */
.tc-success{ --tc: var(--gozo-success); }
.tc-info   { --tc: var(--gozo-info); }
.tc-danger { --tc: var(--gozo-danger); }

.tile {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 14px;
  background: color-mix(in srgb, var(--tc) 13%, transparent);
  color: var(--tc);
}
.tile-56 { width: 56px; height: 56px; }
.tile-52 { width: 52px; height: 52px; }
.tile-44 { width: 44px; height: 44px; border-radius: 12px; }
.tile-42 { width: 42px; height: 42px; border-radius: 12px; }
.tile-38 { width: 38px; height: 38px; border-radius: 10px; }
.tile-36 { width: 36px; height: 36px; border-radius: 10px; }
.tile-32 { width: 32px; height: 32px; border-radius: 10px; }

/* Photo tile: same square as `.tile` but filled with a cover image
   instead of a tinted icon (e.g. group/community cover photos). */
.tile-photo {
  overflow: hidden;
  background: var(--gozo-divider);
}
.tile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar {
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--tc) 13%, transparent);
  color: var(--tc);
}
.av-48 { width: 48px; height: 48px; font-size: 19px; }
.av-38 { width: 38px; height: 38px; font-size: 15px; }
.av-36 { width: 36px; height: 36px; font-size: 14px; }
.av-32 { width: 32px; height: 32px; font-size: 13px; }
.av-28 { width: 28px; height: 28px; font-size: 11px; }

/* ── Chips ────────────────────────────────────────────────────── */
.chips { display: flex; gap: 8px; overflow-x: auto; }
.chip {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--gozo-card);
  color: var(--gozo-text-muted);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--gozo-border);
  white-space: nowrap;
  flex-shrink: 0;
}
.chip.on { background: var(--gozo-teal); color: var(--gozo-text-on-teal); border-color: var(--gozo-teal); }
.chip.on-soft { background: var(--gozo-teal-soft); color: var(--gozo-teal-hover); border-color: rgba(15,23,42,0.2); }

/* ── Small text helpers ───────────────────────────────────────── */
.label {
  font-size: 11px;
  color: var(--gozo-text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.muted { color: var(--gozo-text-muted); }

/* ── Pills / badges ───────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: 700;
}
.badge--warning { background: var(--gozo-warning-bg); color: var(--gozo-warning-text); }
.badge--success { background: var(--gozo-success-bg); color: var(--gozo-success-text); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

/* ── Bottom CTA bar ───────────────────────────────────────────── */
.ctabar {
  padding: 12px 20px 30px;
  background: var(--gozo-card);
  border-top: 1px solid var(--gozo-border);
  flex-shrink: 0;
}
.cta {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  font-size: 16px;
  justify-content: center;
}

/* Dashed “add more” button */
.dashed-btn {
  width: 100%;
  padding: 14px;
  background: transparent;
  border: 1.5px dashed var(--gozo-border-strong);
  border-radius: 14px;
  color: var(--gozo-text-muted);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Notification dot on bell buttons */
.notif-dot {
  position: absolute;
  top: 8px; right: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gozo-danger);
  border: 2px solid var(--gozo-card);
}
