/* ============================================================
   🎈 FLOATING HEADER (owner order, Nov 27 2026 — voice call)
   Lands at: public/css/floating-header.css

   Asce: "Get rid of the bar from the top… get rid of the logo
   and the bar and just let everything float." Both bars go: the
   bottom tab bar floats via the tabbar-door piece; the top goes
   floating here. What stays, floating over the content in its
   usual places: the SlutCamp wordmark TEXT, the user's name,
   the money pill, Log out, and the bell. The lips logo leaves
   the header entirely (it was the header's backdrop, sitting
   inside the bar — bar gone, logo gone).

   DOORS rule: this sheet is the whole piece. No locked file is
   edited — the foundation's .header slab (styles.css), the
   skin's plum-glass dressing (facelift-v2.css), the home lips
   backdrop (styles.css body.in-home .header::before) and the
   flat 🔔 glyph renderBell() stamps (app.js) are all overridden
   or dressed from here, by cascade order: index.html links this
   sheet AFTER facelift-v2.css and value-rows.css.

   Legibility (owner refinements, same call): the shadow/glow
   behind the floating TEXT is SMALL and subtle — "not a big
   shadow, just a little shadow or a little glow behind it so
   that way you could see it when it's over pictures." And NO
   shadow/glow on icons anywhere (final correction): "the icons
   are bright enough, you could see them, so it's fine." So the
   small shadow touches only the floating text — wordmark, user
   name, money pill, Log out — and the bell below gets a clean
   face swap with no backing treatment added at all.
   ============================================================ */

/* ---------- The bar itself: gone ---------- */
.header {
  background: transparent;
  border-bottom: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ---------- The lips: out of the header ---------- */
/* The foundation paints the neon lips into the home header's
   background (body.in-home .header::before). No lips image
   anywhere in the header now — the wordmark is text only. */
body.in-home .header::before {
  content: none;
  background-image: none;
}

/* ---------- Floating legibility: a little shadow, a little glow ---------- */
.header h1 {
  text-shadow: 0 1px 3px rgba(0, 0, 0, .55), 0 0 10px rgba(255, 92, 158, .16);
}
.header .sub {
  text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}
.header .btn {
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}
/* Log out keeps its ghost-pill outline; a whisper of dark glass
   behind it so the label reads over a bright cover photo. */
.home-logout-btn {
  background: rgba(19, 8, 28, .38);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .28);
}
/* The money pill already carries its own tint; just the small
   shadow so it lifts off a busy photo. (The nameplate already
   has its own soft shadow in the foundation — untouched.) */
.balance-pill {
  box-shadow: 0 1px 6px rgba(0, 0, 0, .30);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}

/* ---------- The bell: the glossy family bell ---------- */
/* renderBell() (app.js) stamps the flat 🔔 glyph into
   #notif-bell, a <button> appended to <body> — outside the
   #app subtree every facelift dresser observes, which is why
   the header bell never got swapped when the rest of the app
   did. Dressed from here instead: the glyph text is hidden
   (font-size: 0 — the unread badge sets its own 11px and is
   untouched) and the approved glossy bell rides as the
   button's background. The asset is the facelift family's own
   bell (public/img/facelift-v1/bell.png, shipped with the
   profile-sheet icons, PR #193) — the same mark the dresser
   swaps in for 🔔 everywhere else. The button keeps its 44px
   circle, its fixed spot and all of the foundation's bell-drop
   positioning rules; ONLY the face changes — no shadow, no
   glow, no added backing on the icon (owner: the icons are
   bright enough as they are). */
.notif-bell {
  font-size: 0;
  background-image: url('/img/facelift-v1/bell.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 26px 30px;
}

/* ============================================================
   STATIONARY — the floating header never scrolls away
   (owner's-eye fix, Nov 27 2026: "make these stationary —
   when I scroll it goes up and doesn't float")

   The first cut of this sheet kept the foundation's
   position:sticky on .header. Sticky pins an element only
   inside its nearest scroll box — here #app, a flex-sized
   internal scroller — and in the installed app on the owner's
   iPhone the header rode up with the page instead of holding
   (his screenshot is the proof; the desktop-Chromium harness
   pinned it, which is why the first proof passed). So the pin
   no longer depends on sticky at all:

   - .header becomes position:fixed against the viewport,
     centred on the phone column exactly as #phone sits
     (max-width 480px). Fixed holds in every scroll state —
     rest, mid-scroll, bottom — on fan and model views alike.
   - Fixed takes the header out of flow, so the space it used
     to occupy at the top of #app is reserved exactly: the
     reserve sentinel in facelift-v1.js measures the CURRENT
     view's header height and sets it as #app's top padding.
     CSS alone cannot know that height — measured across views
     it runs 46px (h1 only) to 134px (model Chats) — so a
     static padding would gap on some screens and tuck content
     under the floating text on others. The sentinel keeps the
     at-rest geometry byte-for-byte what sticky gave: first
     content row fully clear below the floating items.
   - Seasonal strips (theme banner / promo) and the manager
     preview banner are in-flow children of #phone ABOVE #app;
     the sticky header used to sit below them, so the fixed
     header drops by the strips' measured heights (402pt:
     banner 52px + its safe-area padding, promo 29px, preview
     banner 41px + its safe-area padding). The banner carries
     the safe-area inset in its own padding, hence the env()
     term on every offset that includes it. Dismissing a strip
     removes it from #phone and :has() lets go — the header
     returns to the top on its own.
   - Desktop (>= 1024px) is untouched: the sidebar layout
     keeps the foundation's sticky header, exactly as today.

   The bell needs no help here: it is already position:fixed
   on <body> with its own strip offsets in the foundation.
   ============================================================ */
@media (max-width: 1023.98px) {
  .header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
  }
  /* Seasonal strips + preview banner: sit below them, the
     same place the sticky header rested. */
  #phone:has(> .sc-theme-promo) .header { top: 29px; }
  #phone:has(> .sc-theme-banner) .header { top: calc(env(safe-area-inset-top, 0px) + 52px); }
  #phone:has(> .sc-theme-banner):has(> .sc-theme-promo) .header { top: calc(env(safe-area-inset-top, 0px) + 81px); }
  #phone:has(> #preview-banner) .header { top: calc(env(safe-area-inset-top, 0px) + 41px); }
  #phone:has(> #preview-banner):has(> .sc-theme-promo) .header { top: calc(env(safe-area-inset-top, 0px) + 70px); }
  #phone:has(> #preview-banner):has(> .sc-theme-banner) .header { top: calc(env(safe-area-inset-top, 0px) + 93px); }
  #phone:has(> #preview-banner):has(> .sc-theme-banner):has(> .sc-theme-promo) .header { top: calc(env(safe-area-inset-top, 0px) + 122px); }
}
