/* v2.3.15 — the website's Explore (index/explore-home), like the app's. Dark only.
   Canvas: https://claude.ai/artifact/XKSGTbxUSzWhm9zLzS1fS2. The navbar, the phone's bottom bar and the sidebar menu are
   the site's own; only the content column is styled here. Loaded with a filemtime stamp. */

.pbx-page {
  --pbx-green: #3de13d;
  --pbx-ink: #041004;
  --pbx-text: #f0f0f0;
  --pbx-muted: #a3a3a3;
  --pbx-soft: #b8b8b8;
  --pbx-line: rgba(255, 255, 255, 0.08);
  --pbx-line-2: rgba(255, 255, 255, 0.10);
  --pbx-fill: rgba(255, 255, 255, 0.05);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--pbx-text);
}

.pbx-main {
  display: flex;
  flex-direction: column;
  gap: 36px;
  min-width: 0;
  padding-bottom: 48px;
}

.pbx-page a,
.pbx-page a:hover,
.pbx-page a:focus { text-decoration: none; }

/* ── heading, phone search, sorts ─────────────────────────────── */

.pbx-head { display: flex; flex-direction: column; gap: 20px; }

.pbx-title-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; }

.pbx-title {
  margin: 0;
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #ffffff;
}

.pbx-tagline { margin: 0; color: var(--pbx-muted); font-size: 16px; }

.pbx-search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  background: var(--pbx-fill);
  border: 1px solid var(--pbx-line-2);
  color: #cfcfcf;
}
/* The site's dark theme boxes every input (!important); this one sits inside the rounded field instead. */
.pbx-page .pbx-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none;
  color: var(--pbx-text);
  font: 500 15px 'Plus Jakarta Sans', system-ui, sans-serif;
}
.pbx-search input::placeholder { color: #8f8f8f; }
.pbx-search:focus-within { border-color: rgba(61, 225, 61, 0.55); }

.pbx-sorts { display: flex; flex-wrap: wrap; gap: 10px; }

.pbx-page .pbx-sort {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--pbx-line-2);
  background: var(--pbx-fill);
  color: var(--pbx-text);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease;
}
.pbx-page .pbx-sort:hover { background: rgba(255, 255, 255, 0.09); color: #ffffff; }
/* v2.3.16 (owner, 2026-11-08: "its a bit hard to read the words when they are selected"): for a signed-in member in
   dark mode, css_general.blade.php makes every link white with !important (`body a:not(...) { color: #FFF !important }`),
   so the selected pill's text was white on the bright green. The selected pill's text is dark in every state, with
   !important and a stronger selector. */
.pbx-page .pbx-sort.is-on,
.pbx-page .pbx-sort.is-on:hover,
.pbx-page .pbx-sort.is-on:focus,
.pbx-page .pbx-sort.is-on:active,
.pbx-page .pbx-sort.is-on:visited {
  background: var(--pbx-green) !important;
  border-color: var(--pbx-green) !important;
  color: var(--pbx-ink) !important;
  font-weight: 700;
  box-shadow: 0 0 24px rgba(61, 225, 61, 0.35);
}

/* ── sections ─────────────────────────────────────────────────── */

.pbx-section { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pbx-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.pbx-label {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pbx-muted);
}

.pbx-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pbx-verified { flex: none; }

/* Fallback covers for a Booki without a cover picture (id % 6). */
.pbx-tone-0 { background-color: #10307e; background-image: linear-gradient(135deg, #1b3fa0 0%, #10307e 55%, #0a1f55 100%); }
.pbx-tone-1 { background-color: #0f3a12; background-image: linear-gradient(135deg, #1d5a1d 0%, #0f3a12 55%, #071a08 100%); }
.pbx-tone-2 { background-color: #3a1a7a; background-image: linear-gradient(135deg, #5b2bb5 0%, #3a1a7a 100%); }
.pbx-tone-3 { background-color: #5b2176; background-image: linear-gradient(135deg, #b23a8a 0%, #5b2176 100%); }
.pbx-tone-4 { background-color: #0a2a24; background-image: linear-gradient(135deg, #0f5a4a 0%, #0a2a24 100%); }
.pbx-tone-5 { background-color: #3d2008; background-image: linear-gradient(135deg, #8a4b12 0%, #3d2008 100%); }

.pbx-live {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e5342d;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── featured carousel ────────────────────────────────────────── */

.pbx-arrows { display: flex; gap: 8px; }
.pbx-arrows[hidden] { display: none; }
.pbx-arrow {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--pbx-fill);
  border: 1px solid var(--pbx-line-2);
  color: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.pbx-arrow:hover:not(:disabled) { background: rgba(255, 255, 255, 0.10); }
.pbx-arrow:disabled { opacity: .35; cursor: default; }
.pbx-arrow:focus-visible, .pbx-page a:focus-visible { outline: 2px solid var(--pbx-green); outline-offset: 2px; }

.pbx-featured {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 20px) / 2);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.pbx-featured::-webkit-scrollbar { display: none; }

.pbx-page .pbx-feat {
  position: relative;
  display: block;
  height: 280px;
  border-radius: 26px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--pbx-line);
  scroll-snap-align: start;
  color: #ffffff;
}
.pbx-feat-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 20%, rgba(0, 0, 0, 0.85) 100%); }
.pbx-feat-body {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pbx-feat-bio {
  color: #e6e6e6;
  font-size: 15px;
  line-height: 1.45;
  max-width: 480px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pbx-feat-who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pbx-feat-avatar {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.85);
  background: #151515;
}
.pbx-feat-names { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pbx-feat-name { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 21px; color: #ffffff; min-width: 0; }
.pbx-feat-meta { color: #c8c8c8; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── posts link ───────────────────────────────────────────────── */

.pbx-page .pbx-posts {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 26px;
  border-radius: 24px;
  background: var(--pbx-fill);
  border: 1px solid var(--pbx-line);
  color: var(--pbx-text);
  transition: background-color .15s ease, border-color .15s ease;
}
.pbx-page .pbx-posts:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(61, 225, 61, 0.35); }
.pbx-posts > svg:first-child { flex: none; }
.pbx-posts-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pbx-posts-title { font-weight: 700; font-size: 19px; color: #ffffff; }
.pbx-posts-sub { color: #b5b5b5; font-size: 15px; }
.pbx-chev { flex: none; color: #9a9a9a; }

/* ── categories ───────────────────────────────────────────────── */

.pbx-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.pbx-page .pbx-chip {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--pbx-fill);
  border: 1px solid var(--pbx-line-2);
  color: var(--pbx-text);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}
.pbx-page .pbx-chip:hover { background: rgba(255, 255, 255, 0.09); color: #ffffff; }

/* ── the Bookis grid ──────────────────────────────────────────── */

.pbx-grid { display: grid; gap: 18px; } /* columns: see "widths" below */

.pbx-page .pbx-card {
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  background: var(--pbx-fill);
  border: 1px solid var(--pbx-line);
  color: var(--pbx-text);
  min-width: 0;
  transition: border-color .15s ease, transform .15s ease;
}
.pbx-page .pbx-card:hover { border-color: rgba(61, 225, 61, 0.35); }
@media (prefers-reduced-motion: no-preference) {
  .pbx-page .pbx-card:hover { transform: translateY(-2px); }
}

.pbx-card-cover {
  position: relative;
  display: block;
  height: 110px;
  background-size: cover;
  background-position: center;
}
.pbx-card-avatar {
  position: absolute;
  left: 18px;
  bottom: -32px;
  width: 70px;
  height: 70px;
  border-radius: 999px;
  object-fit: cover;
  border: 4px solid #151515;
  background: #151515;
}
.pbx-card-body { padding: 42px 18px 20px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pbx-card-name { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 17px; color: #ffffff; min-width: 0; }
.pbx-card-handle { color: #9e9e9e; font-size: 14px; }
.pbx-card-bio {
  margin-top: 8px;
  color: var(--pbx-soft);
  font-size: 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pbx-card-members { margin-top: 6px; color: #8f8f8f; font-size: 13px; font-variant-numeric: tabular-nums; }

.pbx-page .pbx-more {
  align-self: center;
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid rgba(61, 225, 61, 0.55);
  color: var(--pbx-green) !important; /* the same white-link rule as the selected pill */
  font-weight: 700;
  font-size: 15px;
}
.pbx-page .pbx-more:hover { background: rgba(61, 225, 61, 0.08); color: var(--pbx-green) !important; }

.pbx-empty { margin: 0; padding: 28px; border-radius: 22px; background: var(--pbx-fill); border: 1px solid var(--pbx-line); color: var(--pbx-muted); text-align: center; }

/* ── widths ───────────────────────────────────────────────────── */

/* The site's signed-in desktop row (playbooki-redesign.css, min-width 992px) orders the menu column 1 and the feed 2;
   this content column takes the feed's place: after the menu, the rest of the width. */
/* Owner, 2026-11-08: "fix the empty space gap at the top and make sure the side bar with the buttons on desktop mode
   doesnt scroll with the page". Both causes are the ones the home feed fixed in playbooki-redesign.css
   (.pb-home-session-page), scoped there to the feed, so repeated here for this page:
   - the gap: <body> already clears the 62px navbar, then .pb-page cleared it again (62px) and .pt-lg-5 added 48px.
     The page now starts --pb-feed-gap (32px) under the navbar, the same as Home.
   - the menu: body { overflow-x: hidden } makes <body> the menu's scroll container, and <body> never scrolls, so
     position: sticky never engaged. overflow-x: clip clips the same way without being a scroll container. The menu's
     top is --pb-rail-top (navbar + 32px), so its resting place and its sticky place are the same. */
/* v2.3.16: the page is public, and a signed-out visitor's <body> has the same 62px clearance and overflow-x: hidden,
   so both fixes apply to everyone (they were scoped to body.pb-authenticated). */
@media (min-width: 992px) {
  body:has(.pbx-page) {
    overflow-x: clip !important;
    overflow-y: visible !important;
  }
  body .pbx-page.pb-page {
    padding-top: var(--pb-feed-gap, 32px) !important;
  }
  body .pbx-page .container-lg-3.pt-lg-5 {
    padding-top: 0 !important;
  }
  .pbx-guest-menu { top: var(--pb-rail-top, 94px) !important; }
}

/* Phones: the same double clearance (62px .pb-page + 16px .pt-3) left ~80px of empty space under the top bar. */
@media (max-width: 991.98px) {
  body .pbx-page.pb-page {
    padding-top: 0 !important;
  }
}

/* The signed-out side menu: the member menu's look (menu-left-home), and a Sign up card under it. */
.pbx-guest-menu ul { margin: 0; padding: 0; }
.pbx-guest-join {
  margin-top: 22px;
  padding: 18px 16px;
  border-radius: 18px;
  background: var(--pbx-fill);
  border: 1px solid var(--pbx-line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pbx-guest-join p { margin: 0; color: var(--pbx-soft); font-size: 14px; line-height: 1.45; }
.pbx-page .pbx-guest-signup,
.pbx-page .pbx-guest-signup:hover,
.pbx-page .pbx-guest-signup:focus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  border-radius: 999px;
  background: var(--pbx-green);
  color: var(--pbx-ink) !important;
  font-weight: 700;
  font-size: 15px;
}

.pbx-guest-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--pbx-fill);
  border: 1px solid var(--pbx-line);
}
.pbx-guest-bar p { flex: 1 1 200px; margin: 0; color: var(--pbx-soft); font-size: 14px; line-height: 1.45; }
.pbx-guest-bar-actions { display: flex; gap: 10px; flex: none; }
.pbx-guest-bar .pbx-guest-signup { padding: 0 20px; height: 40px; }
.pbx-page .pbx-guest-login,
.pbx-page .pbx-guest-login:hover,
.pbx-page .pbx-guest-login:focus {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--pbx-line-2);
  background: var(--pbx-fill);
  color: var(--pbx-text) !important;
  font-weight: 600;
  font-size: 15px;
}

.pbx-search-clear { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 999px; color: #b5b5b5; flex: none; }
.pbx-search-clear:hover { background: rgba(255, 255, 255, 0.08); color: #ffffff; }

.pbx-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

@media (min-width: 992px) {
  body.pb-authenticated .container-lg-3 > .row > .pbx-main {
    order: 2;
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

/* v2.3.16 (owner, 2026-11-08: "theres a lot of abrupt cuts in these sizes ... it should look good in all sizes"):
   - Between a phone and desktop (768-991px) Bootstrap kept the empty menu column (col-md-2, its menu is hidden below
     992px), so the content stopped at 83% of the screen and the sideways rows were chopped there; and from 576 to
     767px the container is a centred 540px box. Below 992px the content now takes the full width, and the sideways
     rows (sorts, Featured, categories) run to the screen's edges, so a card goes off the edge instead of being cut.
   - The grid fits as many cards as the width allows instead of fixed column counts. */
.pbx-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }

@media (max-width: 991.98px) {
  /* (!important, and as specific: playbooki-ui-v229.css pads body .container-lg-3 20px at tablet widths with !important.) */
  body .pbx-page > .container.container-lg-3 { max-width: none !important; padding-left: 0 !important; padding-right: 0 !important; }
  .pbx-page > .container > .row { margin-left: 0 !important; margin-right: 0 !important; }
  .pbx-page .pbx-side { display: none; }
  .pbx-page .pbx-main { flex: 0 0 100%; max-width: 100%; }
  .pbx-main { gap: 28px; padding-left: 16px; padding-right: 16px; padding-bottom: 120px; }
  .pbx-title { font-size: 44px; }
  .pbx-tagline { font-size: 15px; }
  .pbx-head { gap: 16px; }
  /* Sorts and categories scroll sideways on a phone instead of wrapping into a wall of pills. */
  .pbx-sorts, .pbx-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -16px;
    padding: 0 16px;
  }
  .pbx-sorts::-webkit-scrollbar, .pbx-chips::-webkit-scrollbar { display: none; }
  /* A scrolling row clips what spills out of it: room above and below, so the selected pill's glow is not cut into a
     hard-edged box. */
  .pbx-sorts { padding-top: 14px; padding-bottom: 14px; margin-top: -14px; margin-bottom: -14px; }
  .pbx-page .pbx-sort, .pbx-page .pbx-chip { flex: none; height: 40px; padding: 0 18px; font-size: 14px; }
  .pbx-arrows { display: none; }
  /* One card and the start of the next, so it reads as a row you can swipe; never wider than 460px. */
  .pbx-featured { grid-auto-columns: min(86%, 460px); gap: 14px; margin: 0 -16px; padding: 0 16px; scroll-padding: 0 16px; }
  .pbx-page .pbx-feat { height: 240px; border-radius: 22px; }
  .pbx-feat-body { left: 18px; right: 18px; bottom: 18px; gap: 10px; }
  .pbx-feat-bio { font-size: 14px; }
  .pbx-feat-avatar { width: 48px; height: 48px; }
  .pbx-feat-name { font-size: 18px; }
  .pbx-page .pbx-posts { padding: 18px 18px; gap: 16px; border-radius: 20px; }
  .pbx-posts-title { font-size: 17px; }
  .pbx-posts-sub { font-size: 14px; }
  .pbx-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 158px), 1fr)); gap: 12px; }
  .pbx-page .pbx-card { border-radius: 18px; }
  .pbx-card-cover { height: 84px; }
  .pbx-card-avatar { left: 12px; bottom: -26px; width: 56px; height: 56px; border-width: 3px; }
  .pbx-card-body { padding: 34px 12px 14px; }
  .pbx-card-name { font-size: 15px; }
  .pbx-card-handle { font-size: 13px; }
  .pbx-card-bio { font-size: 13px; }
}
