/* ============================================================================
   app-web.css — WEB-ONLY responsive desktop layer for The Pizza Review.

   Loaded AFTER the app's inline <style> so these rules win by cascade order.
   Kept in a separate file (not the inline styles) so the app HTML can be
   re-copied verbatim from the iOS source of truth with only the single
   <link> line re-added. Do not put mobile/phone rules here — the inline
   styles already handle phones; this file only reshapes >=1024px screens.

   Strategy: don't restructure the intricate phone components. Instead, on
   wide screens, lift the bottom tab-bar into a fixed left sidebar rail and
   give the content column real desktop width (and the Discover map full
   width). Everything <=1023px is untouched and renders exactly as on iOS.
   ============================================================================ */

/* Google sign-in button (web-only auth override — see app-web.js). Applies at
   all widths, so it lives outside the desktop media query below. */
.btn-google-signin {
  width: 100%;
  padding: 14px;
  background: #fff;
  color: #1f1f1f;
  border: none;
  border-radius: 8px;
  font-family: 'Lato', sans-serif;
  font-size: 1em;
  font-weight: 600;
  letter-spacing: .3px;
  cursor: pointer;
  transition: opacity .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-google-signin:hover { opacity: .9; }

@media (min-width: 1024px) {
  :root { --rail-w: 244px; --app-max: 820px; }

  /* Dark canvas so any gutter reads as intentional, not broken. */
  html, body { background: #060606; }

  /* ---- Left sidebar rail (was .bottom-nav) ---- */
  .bottom-nav {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--rail-w);
    height: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    padding: 26px 14px;
    border-top: none;
    border-right: 1px solid var(--card-border);
    background: linear-gradient(180deg, #151515, #0c0c0c);
    z-index: 100;
  }
  /* Brand wordmark at the very top of the rail (order below the -1 pill). */
  .bottom-nav::before {
    order: -2;
    content: "🍕  The Pizza Review";
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: .95rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 1.5px;
    padding: 4px 12px 22px;
    line-height: 1.3;
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 14px;
  }

  .nav-tab {
    flex: 0 0 auto;
    flex-direction: row;
    justify-content: flex-start;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    transition: background .15s, color .15s;
  }
  .nav-tab:hover { background: rgba(255,255,255,.05); }
  .nav-tab.active { background: rgba(212,175,55,.12); }
  .nav-icon { font-size: 1.25em !important; margin-bottom: 0; }
  .nav-label {
    font-size: .82em;
    text-transform: none;
    letter-spacing: .3px;
    color: var(--text-secondary);
  }
  .nav-tab.active .nav-label { color: var(--gold); }

  /* Center "+" FAB becomes a prominent gold "New Review" pill at the top. */
  .nav-center-btn {
    order: -1;
    width: auto;
    height: 46px;
    margin: 0 2px 18px;
    padding: 0 16px;
    border-radius: 11px;
    background: var(--gold);
    color: #1a1500;
    box-shadow: 0 4px 16px rgba(212,175,55,.32);
    font-size: 1.5em;
    font-weight: 400;
    line-height: 1;
    gap: 8px;
  }
  .nav-center-btn::after {
    content: "New Review";
    font-family: 'Lato', sans-serif;
    font-size: .46em;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
  }
  .nav-center-btn:hover { filter: brightness(1.05); }

  /* ---- Main app area: fill the space to the right of the rail ---- */
  .container {
    left: var(--rail-w);
    right: 0;
    max-width: none;
    margin: 0;
  }

  /* Full-width header bar, but keep its inner items on a centered measure. */
  .header {
    padding-left: 32px;
    padding-right: 32px;
    justify-content: center;
    gap: 10px;
  }
  .header .logo { font-size: 1.6em; }
  .header h1 { font-size: 1.15em; letter-spacing: 3px; }

  /* Scroller stays; content sits in a readable centered column. */
  .content {
    max-width: var(--app-max);
    margin: 0 auto;
    width: 100%;
    padding: 0 24px 48px;
  }
  /* The home search bar / feed header live outside .content — center them too. */
  .home-search-bar,
  #homeSearchBar,
  .offline-banner,
  .verify-banner {
    max-width: var(--app-max);
    margin-left: auto;
    margin-right: auto;
  }

  /* Discover (map) view wants ALL the width — opt it back out of the measure. */
  .content.disc-active { max-width: none; padding: 0; }

  /* Discover card strip: show a scrollbar so mouse users can tell it scrolls
     horizontally (pairs with the wheel→horizontal handler in the app JS). */
  .disc-sc-row { scrollbar-width: thin; scrollbar-color: var(--card-border) transparent; padding-bottom: 8px; }
  .disc-sc-row::-webkit-scrollbar { height: 8px; }
  .disc-sc-row::-webkit-scrollbar-thumb { background: var(--card-border); border-radius: 4px; }
  .disc-sc-row::-webkit-scrollbar-track { background: transparent; }
}

/* Extra breathing room on very wide monitors: widen the reading column a bit
   and let it breathe, without going full-bleed (keeps line lengths sane). */
@media (min-width: 1500px) {
  :root { --app-max: 900px; }
}
