/* =========================================================================
   BRODEUR'S BISTRO — "Me" page redesign · Direction 1b (Dark Hero)
   Turns the tall empty profile card into a dark hero band (Bronzetti name,
   progress ring, inline KPIs), a stat set, richer ADMIN icon cards, and a
   "recently completed" list.

   Additive & self-contained: every selector is new and prefixed .bb-me-*,
   so nothing existing is overridden. Reuses your existing design tokens
   (--bb-red, --bb-black, --bb-font-logo, --bb-r, --bb-shadow-*, --bb-good…),
   so it inherits the brand automatically. Safe to revert by removing the
   link tag + the markup block.

   HOW TO USE
   ----------
   1. Copy this file to  bbistro/static/css/bb-me-hero.css
      (and, if you also redo the mobile Me tab, to
       bbistro/static/mobile/bb-me-hero.css — same file).
   2. Link it AFTER app.css / mobile/app.css.
   3. Replace the profile-card markup on the Me page with the block in
      ME-REDESIGN.md. Preview: handoff/preview-me-redesign.html (option 1b).
   ========================================================================= */

/* ---------- hero band ---------- */
.bb-me-hero{
  background:linear-gradient(135deg,#1e1e1e 0%,var(--bb-black) 100%);
  border-radius:var(--bb-r);
  padding:30px 34px;
  display:flex; align-items:center; gap:26px;
  color:#fff;
  box-shadow:var(--bb-shadow-md);
}
.bb-me-ava{
  width:84px; height:84px; border-radius:50%;
  background:var(--bb-red); color:#fff;
  font-family:var(--bb-font-display); font-weight:800; font-size:34px;
  display:grid; place-items:center; flex-shrink:0;
  box-shadow:0 0 0 4px rgba(255,255,255,.12);
}
.bb-me-id{ min-width:0; }
.bb-me-chip{
  display:inline-block;
  font-size:11px; font-weight:700; letter-spacing:.12em; text-transform:uppercase;
  background:var(--bb-red); color:#fff;
  padding:4px 10px; border-radius:var(--bb-r-pill);
}
.bb-me-name{
  font-family:var(--bb-font-logo);   /* Bronzetti */
  font-weight:700; font-size:36px; letter-spacing:.01em; text-transform:uppercase;
  line-height:1; margin:10px 0 8px;
}
.bb-me-email{ font-size:13.5px; font-style:italic; color:#c2bcb4; }
.bb-me-actions{ display:flex; gap:10px; margin-top:14px; }
.bb-me-btn{
  font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  padding:11px 18px; border-radius:var(--bb-r); cursor:pointer;
  background:transparent; border:1px solid rgba(255,255,255,.45); color:#fff;
  text-decoration:none; display:inline-block;
  transition:background .12s, border-color .12s;
}
.bb-me-btn:hover{ background:rgba(255,255,255,.12); }

/* ---------- hero KPIs + progress ring ---------- */
.bb-me-kpis{ margin-left:auto; display:flex; align-items:center; gap:30px; }
.bb-me-kpi{ text-align:center; }
.bb-me-kpi-n{
  font-family:var(--bb-font-display);
  font-size:30px; font-weight:800; color:#fff; line-height:1;
}
.bb-me-kpi-lbl{
  font-size:9.5px; font-weight:700; letter-spacing:.13em; text-transform:uppercase;
  color:#efa9b2; margin-top:7px;
}
.bb-me-ring{
  position:relative; width:96px; height:96px; border-radius:50%;
  background:conic-gradient(var(--bb-red) calc(var(--bb-me-pct,50) * 1%), rgba(255,255,255,.16) 0);
  display:grid; place-items:center; flex-shrink:0;
}
.bb-me-ring-in{
  width:72px; height:72px; border-radius:50%;
  background:#141312; display:grid; place-items:center; text-align:center;
}
.bb-me-ring-pct{
  font-family:var(--bb-font-display);
  font-size:21px; font-weight:800; color:#fff; line-height:1;
}
.bb-me-ring-cap{
  font-size:8px; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:#efa9b2; margin-top:4px;
}

/* ---------- section heading ---------- */
.bb-me-sec{
  display:flex; align-items:center; gap:9px;
  font-family:var(--bb-font-display);
  font-size:13px; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:var(--bb-red); margin:26px 0 12px;
}
.bb-me-sec .bb-me-fleur{ font-size:16px; }
.bb-me-sec .bb-me-count{
  margin-left:auto; font-size:11px; font-weight:500; font-style:italic;
  letter-spacing:0; text-transform:none; color:var(--bb-muted);
}

/* ---------- ADMIN icon cards ---------- */
.bb-me-admin{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.bb-me-acard{
  display:flex; gap:14px; align-items:flex-start;
  background:var(--bb-paper); border:1px solid var(--bb-line); border-radius:var(--bb-r);
  padding:16px 18px; box-shadow:var(--bb-shadow-sm); text-decoration:none;
  transition:border-color .12s, box-shadow .12s, transform .12s;
}
.bb-me-acard:hover{ border-color:var(--bb-red); box-shadow:var(--bb-shadow-md); transform:translateY(-1px); }
.bb-me-aico{
  width:42px; height:42px; border-radius:var(--bb-r);
  background:var(--bb-cream); color:var(--bb-red);
  display:grid; place-items:center; flex-shrink:0;
}
.bb-me-aico svg{
  width:22px; height:22px;
  fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round;
}
.bb-me-aico svg .dot{ fill:currentColor; stroke:none; }
.bb-me-atitle{ display:block; font-size:15px; font-weight:700; color:var(--bb-ink); }
.bb-me-adesc{ display:block; font-size:12.5px; color:var(--bb-muted); margin-top:3px; line-height:1.4; }

/* ---------- stat strip (optional, if you want the 4 KPIs on paper too) ---------- */
.bb-me-stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.bb-me-stat{
  background:var(--bb-paper); border:1px solid var(--bb-line); border-radius:var(--bb-r);
  padding:18px 20px; box-shadow:var(--bb-shadow-sm);
}
.bb-me-stat-n{ font-family:var(--bb-font-display); font-size:34px; font-weight:800; color:var(--bb-red); line-height:1; }
.bb-me-stat-lbl{ font-size:11px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--bb-ink); margin-top:10px; }
.bb-me-stat-sub{ font-size:12px; font-style:italic; color:var(--bb-muted); margin-top:4px; }
.bb-me-bar{ height:5px; background:var(--bb-line); border-radius:var(--bb-r-pill); margin-top:12px; overflow:hidden; }
.bb-me-bar > i{ display:block; height:100%; background:var(--bb-red); border-radius:var(--bb-r-pill); }

/* ---------- recently completed ---------- */
.bb-me-recent{ display:grid; gap:8px; }
.bb-me-rrow{
  display:grid; grid-template-columns:28px 1fr auto; gap:13px; align-items:center;
  background:var(--bb-paper); border:1px solid var(--bb-line); border-radius:var(--bb-r);
  padding:12px 15px; box-shadow:var(--bb-shadow-sm); text-decoration:none;
}
.bb-me-rrow:hover{ border-color:var(--bb-red); }
.bb-me-rcheck{
  width:26px; height:26px; border-radius:50%;
  background:var(--bb-good); color:#fff; display:grid; place-items:center;
  font-size:13px; font-weight:800;
}
.bb-me-rtitle{ font-size:13.5px; font-weight:600; color:var(--bb-ink); }
.bb-me-rmeta{ font-size:11px; color:var(--bb-muted); margin-top:2px; }
.bb-me-rarrow{ color:var(--bb-muted); font-size:16px; }

/* ---------- responsive ---------- */
@media (max-width:1000px){ .bb-me-admin{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:720px){
  .bb-me-hero{ flex-direction:column; align-items:flex-start; gap:18px; padding:22px; }
  .bb-me-name{ font-size:30px; }
  .bb-me-kpis{ margin-left:0; width:100%; justify-content:space-between; gap:16px; flex-wrap:wrap; }
  .bb-me-admin, .bb-me-stats{ grid-template-columns:1fr 1fr; }
}

/* ── Mobile (Option B): compact bar + scrolling KPI chips ──────────────
   Under 700px the hero collapses to one slim bar (small avatar · name ·
   chip, ring pinned top-right), the KPIs become a swipeable chip row on
   a second line inside the band, and the admin cards go 2-across with
   their descriptions hidden. Desktop above 700px is untouched. */
@media (max-width: 700px) {
  .bb-me-hero { position: relative; flex-wrap: wrap; padding: 14px; gap: 12px; }
  .bb-me-ava { width: 44px; height: 44px; font-size: 18px; }
  .bb-me-id { flex: 1; padding-right: 64px; }
  .bb-me-name { font-size: 19px; }
  .bb-me-email { font-size: 10.5px; }
  .bb-me-chip { font-size: 8px; padding: 2px 8px; }
  .bb-me-actions { margin-top: 8px; gap: 6px; }
  .bb-me-btn { font-size: 10px; padding: 6px 10px; letter-spacing: .06em; }
  /* ring pinned to the bar's top-right, scaled down */
  .bb-me-ring { position: absolute; top: 12px; right: 12px;
                transform: scale(.62); transform-origin: top right; }
  /* KPIs: full-width second row of swipeable chips */
  .bb-me-kpis { order: 3; width: 100%; margin-left: 0; gap: 8px;
                overflow-x: auto; padding-bottom: 2px;
                -webkit-overflow-scrolling: touch; }
  .bb-me-kpi { flex: 0 0 auto; display: flex; align-items: baseline; gap: 6px;
               background: rgba(255,255,255,.06);
               border: 1px solid rgba(255,255,255,.12);
               border-radius: 99px; padding: 7px 12px; text-align: left; }
  .bb-me-kpi-n { font-size: 14px; }
  .bb-me-kpi-lbl { font-size: 9px; white-space: nowrap; }
  /* Admin: tight 2-across tiles, descriptions hidden */
  .bb-me-admin { grid-template-columns: 1fr 1fr; gap: 8px; }
  .bb-me-acard { flex-direction: column; text-align: center;
                 padding: 12px 8px; gap: 7px; align-items: center; }
  .bb-me-adesc { display: none; }
}
