/* Dashboard page — OutRun theme (body.theme-outrun supplies tokens). */

/* width comes from wo-shared .container (600px, app-wide) */

.dash-hello { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dash-hello h1 { font-size: 26px; font-weight: 900; letter-spacing: -0.6px; margin: 0; }
.role-badge {
  font-size: 11px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--on-dark); background: rgba(247,239,228,0.08); border: 1px solid var(--line-d);
  padding: 4px 10px; border-radius: 999px;
}

/* stat cards */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-bottom: 16px; }
.stat {
  background: var(--ink2); border: 1px solid var(--line-d); border-radius: 16px; padding: 16px;
  color: var(--on-dark);
}
.stat .s-ico { font-size: 20px; }
.stat .s-n { font-size: 30px; font-weight: 900; letter-spacing: -1px; margin-top: 6px; line-height: 1; }
.stat .s-l { font-size: 12px; color: var(--on-dark-soft); margin-top: 4px; }

/* generic dark card */
.dash-card {
  background: var(--ink2); border: 1px solid var(--line-d); border-radius: 16px;
  padding: 16px 18px; margin-bottom: 12px; color: var(--on-dark); text-decoration: none; display: block;
}
.dc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 800; }
.dc-route { font-size: 12px; font-weight: 600; color: var(--on-dark-soft); }
.meter { margin-top: 14px; height: 8px; border-radius: 99px; background: rgba(247,239,228,0.08); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--a1), var(--a2)); transition: width 0.4s ease; }
.meter-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--on-dark-soft); margin-top: 7px; }

.crew-card .cc-current { margin-top: 10px; font-size: 14px; }
.crew-card .cc-select {
  margin-top: 10px; width: 100%;
  background: rgba(247,239,228,0.06); color: var(--on-dark);
  border: 1px solid var(--line-d); border-radius: 10px; padding: 10px 12px;
  font-family: inherit; font-size: 14px;
}
.crew-card .cc-hint { margin-top: 8px; font-size: 12px; color: var(--on-dark-soft); }

/* reward + avatar cards (clickable rows) */
.reward-card, .avatar-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rc-left, .ac-left { display: flex; align-items: center; gap: 12px; }
.rc-ico { width: 42px; height: 42px; border-radius: 12px; background: rgba(123,174,79,0.16); display: flex; align-items: center; justify-content: center; font-size: 21px; }
.rc-rank { font-size: 17px; font-weight: 900; }
.rc-sub, .ac-sub { font-size: 12px; color: var(--on-dark-soft); margin-top: 1px; }
.rc-go, .ac-go { font-size: 13px; font-weight: 800; color: var(--a1); white-space: nowrap; }
.ac-pic { width: 42px; height: 42px; border-radius: 50%; background: rgba(247,52,94,0.14); display: flex; align-items: center; justify-content: center; font-size: 20px; overflow: hidden; }
.ac-pic img { width: 100%; height: 100%; object-fit: cover; }
.ac-title { font-size: 15px; font-weight: 800; }

.dash-empty { background: var(--ink2); border: 1px solid var(--line-d); border-radius: 14px; padding: 18px; color: var(--on-dark-soft); font-size: 13.5px; text-align: center; }

/* WO?!-Real countdown card */
.woreal-card { background: linear-gradient(135deg, rgba(255,106,61,0.16), rgba(247,52,94,0.10)); border-color: rgba(255,106,61,0.35); }
.wr-head { display: flex; align-items: center; gap: 8px; }
.wr-ico { font-size: 18px; }
.wr-title { font-weight: 900; font-size: 15px; }
.wr-badge { margin-left: auto; font-size: 10px; font-weight: 900; letter-spacing: 1px; background: #5BE36A; color: #0E0F13; padding: 3px 8px; border-radius: 99px; }
.wr-sub { font-size: 12px; color: var(--on-dark-soft); margin-top: 4px; }
.wr-time { font-size: 30px; font-weight: 900; letter-spacing: 0.5px; margin-top: 6px; }
.wr-actions { display: flex; gap: 10px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.wr-go { background: #fff; color: var(--a2); font-weight: 800; font-size: 13px; padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.wr-notify { background: rgba(247,239,228,0.08); border: 1px solid var(--line-d); color: var(--on-dark); font-weight: 800; font-size: 13px; padding: 10px 16px; border-radius: 999px; cursor: pointer; font-family: inherit; }
.wr-notify:disabled { opacity: 0.5; }

/* training (future Strava analysis) teaser */
.training-card { position: relative; }
.tc-head { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 800; }
.tc-soon { font-size: 9px; font-weight: 900; letter-spacing: 0.8px; text-transform: uppercase; color: var(--on-dark-soft); background: rgba(247,239,228,0.08); border: 1px solid var(--line-d); padding: 3px 8px; border-radius: 99px; }
.tc-sub { font-size: 12px; color: var(--on-dark-soft); margin-top: 4px; }
.tc-chart { width: 100%; height: 64px; margin: 12px 0 8px; display: block; }
.tc-foot { font-size: 10.5px; color: var(--on-dark-soft); }
.tc-foot::first-letter { color: #FC5200; }
.tc-cta { display: block; text-align: center; margin-top: 12px; padding: 11px; border-radius: 12px; font-weight: 800; font-size: 13.5px; text-decoration: none; background: rgba(252,82,0,0.14); color: #FC5200; border: 1px solid rgba(252,82,0,0.4); }
.tc-cta.disabled { background: rgba(247,239,228,0.06); color: var(--on-dark-soft); border-color: var(--line-d); cursor: default; pointer-events: none; }
.tc-cta.connected { background: rgba(123,174,79,0.16); color: var(--sage); border-color: rgba(123,174,79,0.4); }
/* Strava-branded connect button (official Strava orange #FC4C02). */
.tc-cta.strava-connect { background: #FC4C02; color: #fff; border-color: #FC4C02; }
