/* ── hub.css — app launcher page (icon grid) ────────────────────────────────
   iOS-style icon tiles on the shared Anaesthesia Hub tokens. Static orbs
   only, no backdrop-filter on repeating tiles (same perf rules as roster). */

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

.bg-orb {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.10;
  pointer-events: none;
}
.bg-orb-1 { width: 380px; height: 380px; background: #6aa4ff; left: -130px; top: -90px; }
.bg-orb-2 { width: 320px; height: 320px; background: #57c6ff; right: -110px; top: 60px; }

.hub-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.6rem 3rem;
}

.hub-head h1 { margin: 0 0 4px; font-size: 24px; font-weight: 800; letter-spacing: -0.3px; }
.hub-sub { margin: 0 0 1.4rem; color: var(--muted); font-size: 14.5px; }

.hub-section { margin-top: 1.8rem; }
.hub-h {
  margin: 0 0 0.9rem;
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 20px 10px;
}

.hub-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
}
.hub-tile-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: linear-gradient(140deg, rgba(255,255,255,0.85), rgba(232,240,249,0.6));
  border: 1px solid rgba(255,255,255,0.8);
  border-top: 3px solid var(--accent);
  box-shadow: 0 4px 12px rgba(12,29,48,0.10), inset 0 1px 0 rgba(255,255,255,0.5);
  color: var(--navy);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.hub-tile:hover .hub-tile-icon {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(12,29,48,0.15), inset 0 1px 0 rgba(255,255,255,0.5);
}
.hub-tile-label {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
}

/* Roster quick links carry the navy edge, apps the accent edge */
.hub-tile--roster .hub-tile-icon { border-top-color: var(--navy); }

@media (max-width: 640px) {
  .hub-shell { padding: 1.2rem 1rem 2.4rem; }
  .hub-grid { grid-template-columns: repeat(4, 1fr); gap: 16px 6px; }
  .hub-tile-icon { width: 56px; height: 56px; font-size: 24px; border-radius: 16px; }
}

/* ── App tiles: accent-blue filled icons; roster subtabs stay glass ── */
.hub-tile-icon {
  background: linear-gradient(140deg, #2b7cb6, #1e4a7a);
  border-top-color: rgba(255,255,255,0.30);
  box-shadow: 0 5px 12px rgba(12,29,48,0.20), inset 0 1px 0 rgba(255,255,255,0.25);
}
.hub-tile--roster .hub-tile-icon {
  background: linear-gradient(140deg, rgba(255,255,255,0.85), rgba(232,240,249,0.6));
  border-top-color: var(--navy);
  box-shadow: 0 4px 12px rgba(12,29,48,0.10), inset 0 1px 0 rgba(255,255,255,0.5);
}

/* ── Tile badges (next CME session, unread, pending) ── */
.hub-tile-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(30,111,168,0.10);
  border-radius: 99px;
  padding: 2px 8px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
