/* Barback web app (/app) — styles layered on top of site.css. Reuses the
   site's tokens, card classes (.rcard/.rgrid/.chip/.filters) and spec/steps
   classes, so the installable app matches the rest of thebarbacks.com. */

.app-shell-wrap { padding-top: clamp(32px, 5vw, 56px); }
.bb-app { min-height: 50vh; }
.bb-loading { text-align: center; padding: 3rem 0; }
.bb-app .empty { text-align: center; padding: 2rem 0; }

.bb-back { display: inline-flex; margin-bottom: 1.4rem; }

/* Nav between the app's two sections (cocktails / plan a night) */
.bb-nav { display: flex; gap: 1.4rem; margin-bottom: 1.6rem; border-bottom: 1px solid var(--line-strong); }
.bb-nav a { padding: .6rem 0; color: var(--color-text-muted); text-decoration: none; border-bottom: 2px solid transparent; }
.bb-nav a[aria-current="page"] { color: var(--color-text); border-color: var(--color-primary); }

/* "Plan a bar night" concierge */
.bb-plan-custom { margin-top: 2.6rem; padding-top: 2rem; border-top: 1px solid var(--line-strong); }
.bb-night { border: 1px solid var(--line-strong); background: linear-gradient(160deg, var(--color-surface-2), var(--color-surface)); padding: 1.3rem 1.5rem; margin-bottom: 1.2rem; }
.bb-night h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; margin: 0 0 .2rem; }
.bb-night-stops { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .9rem; }
.bb-night-stops li { padding-left: 1rem; border-left: 2px solid var(--line-strong); }
.bb-night-stops a { font-weight: 500; }
.bb-night-time { display: inline-block; font-family: var(--font-display); color: var(--color-primary); margin-right: .5rem; }
.bb-plan-custom .app-form input[type=text] { background: var(--color-surface); border: 1px solid var(--line-strong); color: var(--color-text); font: 300 1rem var(--font-body); padding: .9rem 1rem; }

.bb-detail-img { aspect-ratio: 16 / 10; background: var(--img, none) center/cover, var(--photo-fallback); margin-bottom: 1.2rem; box-shadow: var(--shadow); }
.bb-detail h2 { margin-top: .1rem; }
.bb-detail .steps { margin-bottom: 1.5rem; }

/* Make-it mode: one big step, full-bleed, nothing else competing for the eye */
.bb-make { display: grid; min-height: 56vh; align-content: center; justify-content: stretch; text-align: center; gap: 1.4rem; }
.bb-make-count { text-align: center; }
.bb-make-body { font: italic 500 var(--step-2)/1.35 var(--font-display); max-width: 32ch; margin: 0 auto; }
.bb-make-nav { display: flex; justify-content: center; gap: .8rem; }
.bb-make-nav .btn, .bb-make-nav .btn-ghost { min-width: 9rem; justify-content: center; }

/* Batch scaler */
.bb-batch-stepper { display: flex; align-items: center; gap: 1rem; margin: 1.2rem 0 1.6rem; }
.bb-batch-stepper button { width: 2.6rem; height: 2.6rem; justify-content: center; font-size: 1.3rem; padding: 0; }
.bb-batch-n { font: italic 500 1.8rem/1 var(--font-display); color: var(--color-primary); min-width: 2ch; text-align: center; }

/* Add-to-home-screen instructions */
.install-cols { display: grid; gap: 1.2rem; }
@media (min-width: 700px) { .install-cols { grid-template-columns: 1fr 1fr; } }
.install-col { border: 1px solid var(--line-strong); background: linear-gradient(160deg, var(--color-surface-2), var(--color-surface)); padding: 1.3rem 1.5rem; }
.install-col h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.install-col ol { margin: 0; padding-left: 1.2rem; color: var(--color-text-muted); }
.install-col li { padding: .25rem 0; }
.install-col b { color: var(--color-text); }

/* Launched from the home screen: drop the marketing chrome and start right on
   the app, same way a native app would. Visiting /app in an ordinary browser
   tab still gets the full page with nav, hero, install steps and the ask. */
@media (display-mode: standalone) {
  .nav, .hero, .foot, #install, #ask, #install + section.foot { display: none; }
  main { padding-top: 0; }
  .app-shell-wrap { padding-top: max(16px, env(safe-area-inset-top)); }
}
