/* components.css — shared header/nav, status banner, home tiles, modal. */

/* App header (rendered by shell.js) */
.appbar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: #1e3b33; color: #fff;
}
.appbar .brand { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.appbar .brand img { width: 26px; height: 26px; }
.appbar .title { font-size: .95rem; font-weight: 700; }
.appbar .spacer { flex: 1; }
.appbar a.home-link {
  color: #dff2eb; font-size: .8rem; text-decoration: none;
  border: 1px solid #7fc3af; border-radius: 16px; padding: 4px 12px;
}
.appbar a.home-link:hover { background: rgba(255,255,255,.08); }

/* Page build-status banner (building/soon/gap) */
.status-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 12px; margin-bottom: 16px;
  font-size: .88rem; font-weight: 600; border: 1px solid transparent;
}
.status-banner .chip {
  font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: 3px 8px; border-radius: 999px; color: #fff;
}
.status-banner.building { background: #eef3ff; color: #26356b; border-color: #cdd7f5; }
.status-banner.building .chip { background: var(--st-building); }
.status-banner.soon { background: var(--panel); color: var(--muted); border-color: var(--line); }
.status-banner.soon .chip { background: var(--st-soon); }
.status-banner.gap { background: #fbf1ea; color: var(--accent-d); border-color: rgba(183,121,31,.3); }
.status-banner.gap .chip { background: var(--st-gap); }

/* Home hub tiles */
.menu { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.mtile {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 13px;
  cursor: pointer; text-align: left; font: inherit; transition: border-color .15s, box-shadow .15s;
}
.mtile:hover:not(:disabled) { border-color: var(--brand-2); box-shadow: var(--shadow-sm); }
.mtile .mic { font-size: 24px; flex: none; width: 40px; text-align: center; }
.mtile .mtxt { flex: 1; display: flex; flex-direction: column; }
.mtile .mt { font-weight: 700; color: var(--ink); font-size: .98rem; }
.mtile .md { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.mtile .marrow { font-size: 1.4rem; color: var(--brand-2); flex: none; }
.mtile.disabled, .mtile:disabled { opacity: .72; cursor: default; }
.mtile.disabled:hover { border-color: var(--line); box-shadow: none; }
.mtile.disabled .marrow { color: var(--line); }

/* status chip inside a tile */
.tile-chip {
  display: inline-block; font-size: .62rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; border-radius: 9px; padding: 1px 6px; margin-left: 6px;
}
.tile-chip.building { color: #26356b; background: #e3e9fb; }
.tile-chip.soon { color: var(--muted); background: var(--panel); }
.tile-chip.gap { color: var(--accent-d); background: #fbf1ea; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal-overlay.hidden { display: none; }
.modal {
  background: #fff; border-radius: var(--radius-lg); padding: 22px 20px;
  width: 100%; max-width: 460px; max-height: 82vh; overflow-y: auto; box-shadow: var(--shadow);
}
