/* ────────────────────────────────────────────────────────────────────────────
   PBF Shell — shared header + footer + hamburger drawer.
   Loaded on every public page and every member page. Only injected markup
   reaches DOM (header/footer/drawer); no global resets, no body styling.
   Brand vars fall back if a page hasn't defined them.
   ──────────────────────────────────────────────────────────────────────────── */
:root {
  --pbfsh-black: #070a0f;
  --pbfsh-navy:  #0d1526;
  --pbfsh-navy2: #131c33;
  --pbfsh-gold:  #c9a84c;
  --pbfsh-gold2: #e8c84a;
  --pbfsh-line:  #1e2a48;
  --pbfsh-text:  #e2e8f0;
  --pbfsh-muted: #6b7587;
}

/* ── Header ───────────────────────────────────────────────────────────────── */
.pbfsh-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--pbfsh-line);
}
.pbfsh-nav {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
}
.pbfsh-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--pbfsh-text);
}
.pbfsh-brand img {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  object-fit: cover;
}
.pbfsh-brand-name {
  font-family: 'Bebas Neue', 'Segoe UI', sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  line-height: 1;
}
.pbfsh-mainnav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
  justify-content: center;
}
.pbfsh-mainlink {
  color: var(--pbfsh-muted);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
  white-space: nowrap;
}
.pbfsh-mainlink:hover { color: var(--pbfsh-gold); }
.pbfsh-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
@media (max-width: 900px) {
  .pbfsh-mainnav { display: none; }
}
.pbfsh-cta {
  display: inline-block;
  background: var(--pbfsh-gold);
  color: var(--pbfsh-black);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 7px;
  font-family: 'Bebas Neue', 'Segoe UI', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  transition: background 0.15s ease;
}
.pbfsh-cta:hover { background: var(--pbfsh-gold2); }
.pbfsh-burger {
  width: 40px;
  height: 40px;
  border: 1px solid var(--pbfsh-line);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.pbfsh-burger:hover { border-color: var(--pbfsh-gold); background: rgba(201,168,76,0.06); }
.pbfsh-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--pbfsh-text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.pbfsh-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pbfsh-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.pbfsh-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 480px) {
  .pbfsh-nav { padding: 12px 16px; gap: 10px; }
  .pbfsh-brand-name { font-size: 1.1rem; }
  .pbfsh-brand img { width: 32px; height: 32px; }
  .pbfsh-cta { padding: 7px 12px; font-size: 0.85rem; }
}

/* ── Drawer ───────────────────────────────────────────────────────────────── */
.pbfsh-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 10, 15, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.pbfsh-drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.pbfsh-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 100vw);
  background: var(--pbfsh-navy);
  border-left: 1px solid var(--pbfsh-line);
  z-index: 1002;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
  padding: 24px 22px 36px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pbfsh-drawer.open { transform: translateX(0); }
.pbfsh-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--pbfsh-line);
}
.pbfsh-drawer-head .label {
  font-family: 'Bebas Neue', 'Segoe UI', sans-serif;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: var(--pbfsh-gold);
}
.pbfsh-drawer-close {
  background: transparent;
  border: 0;
  color: var(--pbfsh-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}
.pbfsh-drawer-close:hover { color: var(--pbfsh-text); }
.pbfsh-drawer .group-label {
  font-family: 'Bebas Neue', 'Segoe UI', sans-serif;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  color: var(--pbfsh-muted);
  margin: 14px 0 4px;
  padding: 0 4px;
}
.pbfsh-drawer a {
  display: block;
  padding: 11px 14px;
  color: var(--pbfsh-text);
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: background 0.12s ease, color 0.12s ease;
}
.pbfsh-drawer a:hover { background: var(--pbfsh-navy2); color: var(--pbfsh-gold); }
.pbfsh-drawer a.member { color: var(--pbfsh-gold2); }
.pbfsh-drawer hr {
  border: 0;
  border-top: 1px solid var(--pbfsh-line);
  margin: 8px 0;
}
body.pbfsh-locked { overflow: hidden; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.pbfsh-footer {
  background: var(--pbfsh-navy);
  border-top: 1px solid var(--pbfsh-line);
  margin-top: 60px;
  padding: 36px 24px 24px;
  color: var(--pbfsh-muted);
  font-size: 0.88rem;
}
.pbfsh-foot-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: start;
}
.pbfsh-foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pbfsh-foot-brand img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}
.pbfsh-foot-title {
  font-family: 'Bebas Neue', 'Segoe UI', sans-serif;
  letter-spacing: 0.06em;
  font-size: 1.1rem;
  color: var(--pbfsh-text);
  line-height: 1;
}
.pbfsh-foot-tag {
  color: var(--pbfsh-gold);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  margin-top: 4px;
}
.pbfsh-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: flex-end;
}
.pbfsh-foot-links a {
  color: var(--pbfsh-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.pbfsh-foot-links a:hover { color: var(--pbfsh-gold); }
.pbfsh-foot-meta {
  grid-column: 1 / -1;
  border-top: 1px solid var(--pbfsh-line);
  padding-top: 16px;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--pbfsh-muted);
  text-align: center;
}
@media (max-width: 640px) {
  .pbfsh-foot-inner { grid-template-columns: 1fr; gap: 18px; }
  .pbfsh-foot-links { justify-content: flex-start; }
  .pbfsh-footer { padding: 28px 18px 20px; margin-top: 40px; }
}
