/* OutRun home hub — the post-sign-up landing. Mobile-first single column.
   Tokens come from outrun-theme.css (body.theme-outrun). This sheet only does
   layout + the page-specific components (app bar, event teaser, tile grid,
   tab bar). Ported from mockups/onboarding/mockup-1-hub.html. */

.home {
  max-width: var(--app-maxw);   /* matches .container app-wide so pages don't jump */
  margin: 0 auto;
  /* wo-shared.css already pads the body for the safe-area; keep the column flush */
}

/* --- dark OutRun app bar --- */
.appbar {
  background: radial-gradient(420px 220px at 88% -30%, rgba(255,106,61,0.35), transparent 62%), var(--ink);
  color: var(--on-dark);
  border-radius: 22px;
  padding: 18px 18px 20px;
  margin-bottom: 16px;
}
.appbar-top { display: flex; align-items: center; justify-content: space-between; }

/* the avatar doubles as the menu button */
.appbar .menu-btn { padding: 0; overflow: hidden; width: 40px; height: 40px; }
.home-avatar { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 19px; }
.home-avatar img { width: 100%; height: 100%; object-fit: cover; }

.greet { margin-top: 18px; font-size: 24px; font-weight: 900; letter-spacing: -0.6px; }
.greet-sub { font-size: 13px; color: var(--on-dark-soft); margin-top: 3px; }

/* WO?!-Real / event countdown pill */
.countdown {
  margin-top: 16px; display: flex; align-items: center; gap: 11px; text-decoration: none;
  background: rgba(247,239,228,0.06); border: 1px solid rgba(247,239,228,0.14);
  border-radius: 14px; padding: 11px 13px; color: var(--on-dark);
}
.countdown .pip { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(22,179,163,0.25); flex-shrink: 0; }
.countdown .cd-text { line-height: 1.2; }
.countdown .cd-label { font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--on-dark-soft); }
.countdown .cd-time { font-size: 16px; font-weight: 900; letter-spacing: 0.5px; margin-top: 1px; color: var(--a1); }
.countdown .cd-cta { margin-left: auto; font-size: 12px; font-weight: 800; color: var(--a1); white-space: nowrap; }
.countdown.is-live .pip { background: #5BE36A; box-shadow: 0 0 0 4px rgba(91,227,106,0.3); }

/* --- light body --- */
.home-body {
  background: var(--paper);
  color: var(--on-light);
  border-radius: 22px;
  padding: 16px 14px 20px;
}
.sec-label { font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--on-light-soft); margin: 6px 2px 10px; }
.sec-label:not(:first-child) { margin-top: 20px; }

/* featured event card — WO?! sunset peek */
.event {
  display: block; text-decoration: none; border-radius: 20px; position: relative; color: var(--wo-cream);
  background: linear-gradient(160deg, var(--wo-night) 0%, var(--wo-blue) 38%, #7A6A7E 62%, var(--wo-gold) 84%, var(--wo-coral) 100%);
  box-shadow: 0 16px 36px rgba(217,106,58,0.30); padding: 18px;
}
.event .live { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase; background: rgba(10,20,48,0.45); padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(245,226,199,0.25); }
.event .live .pip { width: 7px; height: 7px; border-radius: 50%; background: #5BE36A; box-shadow: 0 0 0 3px rgba(91,227,106,0.3); }
.event .live.soon .pip { background: var(--wo-gold); box-shadow: 0 0 0 3px rgba(232,166,84,0.3); }
.event h3 { font-size: 25px; font-weight: 900; letter-spacing: 1px; margin: 12px 0 0; }
.event .route { font-size: 13px; opacity: 0.92; margin-top: 3px; }
.event .meter { margin-top: 14px; height: 7px; border-radius: 99px; background: rgba(10,20,48,0.35); overflow: hidden; }
.event .meter i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--wo-gold), #fff); transition: width 0.4s ease; }
.event .meter-row { display: flex; justify-content: space-between; font-size: 11px; opacity: 0.85; margin-top: 6px; }
.event .e-actions { display: flex; gap: 9px; margin-top: 15px; }
.btn { border: none; font-family: inherit; cursor: pointer; border-radius: 999px; font-weight: 800; font-size: 13.5px; padding: 11px 16px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
.event .enter { background: #fff; color: var(--wo-coral); flex: 1; box-shadow: 0 8px 20px rgba(0,0,0,0.25); }
.event .gallery { background: rgba(10,20,48,0.30); color: var(--wo-cream); border: 1px solid rgba(245,226,199,0.4); }
.event .switch-note { font-size: 10.5px; opacity: 0.8; margin-top: 11px; }

/* tile grid */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.tile { background: var(--card); border: 1px solid var(--line-l); border-radius: 18px; padding: 15px 14px; box-shadow: 0 8px 22px rgba(27,23,20,0.06); position: relative; min-height: 112px; display: flex; flex-direction: column; text-decoration: none; color: var(--on-light); transition: transform 0.12s ease, box-shadow 0.12s ease; }
.tile:active { transform: translateY(1px); }
a.tile:hover { box-shadow: 0 12px 28px rgba(27,23,20,0.12); }
.tile .ico { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 21px; margin-bottom: auto; }
.tile.avatar .ico { background: rgba(247,52,94,0.12); }
.tile.install .ico { background: rgba(22,179,163,0.14); }
.tile.cheer .ico { background: rgba(255,106,61,0.14); }
.tile.rewards .ico { background: rgba(123,174,79,0.16); }
.tile.dash .ico { background: rgba(255,106,61,0.12); }
.tile.social .ico { background: rgba(110,99,87,0.14); }
.tile h4 { font-size: 14.5px; font-weight: 800; margin: 12px 0 0; letter-spacing: -0.2px; }
.tile p { font-size: 11.5px; color: var(--on-light-soft); margin: 3px 0 0; line-height: 1.35; }
.tile .soon { position: absolute; top: 12px; right: 12px; font-size: 9px; font-weight: 900; letter-spacing: 0.8px; text-transform: uppercase; color: var(--on-light-soft); background: var(--paper2); padding: 3px 7px; border-radius: 99px; }
.tile.muted { opacity: 0.72; }

/* bottom tab bar styles now live in outrun-theme.css (shared, auto-mounted) */
