/* padelclub-header-shell 1.0.0 · eigen vanilla nabouw van 21st.dev @shadcnblockscom/shadcnblocks-com-navbar1.
   Maten uit de bron: py-4, gap-6 tussen merk en menurij, triggers en links h-10 px-4 text-sm, paneel w-80 p-3
   op 6 px onder de balk, regels gap-4 p-3, uitschuifpaneel w-3/4 max 384 px p-6 (0,5 s open, 0,3 s dicht). */
.msm-padelclub-header-shell {
  --pn-ease: cubic-bezier(.4, 0, .2, 1);
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  background: var(--m-surface, #ffffff);
  border-bottom: 1px solid var(--m-line, #d5dce8);
  color: var(--m-ink, #0c1a3a);
  font-family: var(--m-font-body, 'Red Hat Text', ui-sans-serif, system-ui, sans-serif);
  font-size: 14px;
  line-height: 20px;
}
.msm-padelclub-header-shell *,
.msm-padelclub-header-shell *::before,
.msm-padelclub-header-shell *::after { box-sizing: border-box; }
.msm-padelclub-header-shell [hidden] { display: none !important; }
.msm-padelclub-header-shell svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.msm-padelclub-header-shell a { color: inherit; text-decoration: none; }
.msm-padelclub-header-shell ul { margin: 0; padding: 0; list-style: none; }
.msm-padelclub-header-shell button { font: inherit; color: inherit; cursor: pointer; }
.msm-padelclub-header-shell a:focus-visible,
.msm-padelclub-header-shell button:focus-visible { outline: 2px solid var(--m-primary, #1c49d8); outline-offset: 2px; border-radius: 4px; }

.msm-padelclub-header-shell .pn-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 16px;
}
.msm-padelclub-header-shell .pn-left { display: flex; align-items: center; gap: 24px; min-width: 0; }
.msm-padelclub-header-shell .pn-brand,
.msm-padelclub-header-shell .pn-sheet-brand {
  margin: 0;
  font-family: var(--m-font-display, 'Big Shoulders Display', 'Arial Narrow', sans-serif);
  font-size: 26px;
  line-height: 44px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--m-ink, #0c1a3a);
}
.msm-padelclub-header-shell .pn-brand { display: inline-flex; align-items: center; min-height: 44px; }

/* Menurij vanaf 1024 px. */
.msm-padelclub-header-shell .pn-menu { position: relative; display: none; }
.msm-padelclub-header-shell .pn-list { display: flex; align-items: center; gap: 4px; }
.msm-padelclub-header-shell .pn-item { position: relative; }
.msm-padelclub-header-shell .pn-trigger,
.msm-padelclub-header-shell .pn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 8px 16px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--m-muted, #53617e);
  white-space: nowrap;
  transition: background-color .15s var(--pn-ease), color .15s var(--pn-ease);
}
.msm-padelclub-header-shell .pn-trigger:hover,
.msm-padelclub-header-shell .pn-link:hover,
.msm-padelclub-header-shell .pn-trigger[aria-expanded="true"] { background: var(--m-bg, #f1f4f8); color: var(--m-ink, #0c1a3a); }
.msm-padelclub-header-shell .pn-chevron { width: 12px; height: 12px; margin-left: 4px; stroke-width: 2.5; transition: transform .3s var(--pn-ease); }
.msm-padelclub-header-shell [aria-expanded="true"] > .pn-chevron { transform: rotate(180deg); }

/* Paneel: 320 px breed, 12 px binnenruimte. Zonder script hangt het onder de eigen trigger. */
.msm-padelclub-header-shell .pn-panel { width: 320px; padding: 12px; }
.msm-padelclub-header-shell .pn-item > .pn-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  display: none;
  border: 1px solid var(--m-line, #d5dce8);
  border-radius: 4px;
  background: var(--m-surface, #ffffff);
}
.msm-padelclub-header-shell .pn-item:hover > .pn-panel,
.msm-padelclub-header-shell .pn-item:focus-within > .pn-panel { display: block; }
.msm-padelclub-header-shell .pn-row {
  display: flex;
  gap: 16px;
  padding: 12px;
  border-radius: 4px;
  color: var(--m-ink, #0c1a3a);
  transition: background-color .15s var(--pn-ease);
}
.msm-padelclub-header-shell .pn-row:hover,
.msm-padelclub-header-shell .pn-row:focus-visible { background: var(--m-bg, #f1f4f8); }
.msm-padelclub-header-shell .pn-row svg { color: var(--m-primary, #1c49d8); }
.msm-padelclub-header-shell .pn-row span { display: block; min-width: 0; }
.msm-padelclub-header-shell .pn-row strong { display: block; font-size: 14px; line-height: 20px; font-weight: 600; }
.msm-padelclub-header-shell .pn-row small { display: block; font-size: 14px; line-height: 1.375; color: var(--m-muted, #53617e); }

/* Met script: één gedeeld venster 6 px onder de balk; de panelen schuiven erin opzij. */
.msm-padelclub-header-shell .pn-viewport {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  width: 322px;
  overflow: hidden;
  border: 1px solid var(--m-line, #d5dce8);
  border-radius: 4px;
  background: var(--m-surface, #ffffff);
  transform-origin: top center;
  animation: pn-zoom-in .15s var(--pn-ease) both;
}
.msm-padelclub-header-shell .pn-viewport.is-closing { animation: pn-zoom-out .15s var(--pn-ease) both; }
.msm-padelclub-header-shell .pn-viewport > .pn-panel { position: absolute; left: 0; top: 0; display: none; }
.msm-padelclub-header-shell .pn-viewport > .pn-panel.is-active,
.msm-padelclub-header-shell .pn-viewport > .pn-panel.is-leaving { display: block; }
.msm-padelclub-header-shell .pn-viewport > .pn-panel.from-end { animation: pn-from-end .15s var(--pn-ease) both; }
.msm-padelclub-header-shell .pn-viewport > .pn-panel.from-start { animation: pn-from-start .15s var(--pn-ease) both; }
.msm-padelclub-header-shell .pn-viewport > .pn-panel.to-end { animation: pn-to-end .15s var(--pn-ease) both; }
.msm-padelclub-header-shell .pn-viewport > .pn-panel.to-start { animation: pn-to-start .15s var(--pn-ease) both; }
@keyframes pn-zoom-in { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }
@keyframes pn-zoom-out { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(.95); } }
@keyframes pn-from-end { from { opacity: 0; transform: translateX(208px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pn-from-start { from { opacity: 0; transform: translateX(-208px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pn-to-end { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(208px); } }
@keyframes pn-to-start { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(-208px); } }
@keyframes pn-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pn-fade-out { from { opacity: 1; } to { opacity: 0; } }

/* Knoppen. */
.msm-padelclub-header-shell .pn-actions { display: none; gap: 8px; }
.msm-padelclub-header-shell .pn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .15s var(--pn-ease), border-color .15s var(--pn-ease);
}
.msm-padelclub-header-shell .pn-btn-outline { border-color: var(--m-line, #d5dce8); background: var(--m-surface, #ffffff); color: var(--m-ink, #0c1a3a); }
.msm-padelclub-header-shell .pn-btn-outline:hover { background: var(--m-bg, #f1f4f8); }
.msm-padelclub-header-shell .pn-btn-fill { background: var(--m-primary, #1c49d8); color: #ffffff; }
.msm-padelclub-header-shell .pn-btn-fill:hover { background: var(--m-accent2, #12318f); }
.msm-padelclub-header-shell .pn-burger {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--m-line, #d5dce8);
  border-radius: 4px;
  background: var(--m-surface, #ffffff);
  transition: background-color .15s var(--pn-ease);
}
.msm-padelclub-header-shell .pn-burger:hover { background: var(--m-bg, #f1f4f8); }
.msm-padelclub-header-shell .pn-burger svg { width: 18px; height: 18px; }

/* Uitschuifpaneel van rechts met gedimde achtergrond. */
.msm-padelclub-header-shell .pn-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--m-ink, #0c1a3a) 80%, transparent);
  opacity: 0;
  transition: opacity .3s var(--pn-ease);
}
.msm-padelclub-header-shell .pn-overlay.is-open { opacity: 1; transition-duration: .5s; }
.msm-padelclub-header-shell .pn-sheet {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 51;
  width: 75%;
  max-width: 384px;
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-left: 1px solid var(--m-line, #d5dce8);
  background: var(--m-surface, #ffffff);
  transform: translateX(100%);
  transition: transform .3s ease-in-out;
}
.msm-padelclub-header-shell .pn-sheet.is-open { transform: translateX(0); transition-duration: .5s; }
.msm-padelclub-header-shell .pn-sheet-brand { font-size: 24px; line-height: 32px; padding-right: 48px; }
.msm-padelclub-header-shell .pn-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  opacity: .7;
  transition: opacity .15s var(--pn-ease);
}
.msm-padelclub-header-shell .pn-close:hover,
.msm-padelclub-header-shell .pn-close:focus-visible { opacity: 1; }
.msm-padelclub-header-shell .pn-close svg { width: 18px; height: 18px; }
.msm-padelclub-header-shell .pn-sheet-body { display: flex; flex-direction: column; gap: 24px; margin: 24px 0; }
.msm-padelclub-header-shell .pn-acc { display: flex; flex-direction: column; gap: 8px; }
.msm-padelclub-header-shell .pn-acc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
}
.msm-padelclub-header-shell .pn-acc-trigger .pn-chevron { width: 16px; height: 16px; stroke-width: 2; transition-duration: .2s; }
.msm-padelclub-header-shell .pn-acc-panel { overflow: hidden; transition: height .2s ease-out; }
.msm-padelclub-header-shell .pn-acc-inner { padding: 8px 0 16px; }
.msm-padelclub-header-shell .pn-acc-inner .pn-row { margin: 0 -12px; }
.msm-padelclub-header-shell .pn-extra {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 16px 0;
  border-top: 1px solid var(--m-line, #d5dce8);
}
.msm-padelclub-header-shell .pn-extra a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 500;
  color: var(--m-muted, #53617e);
  transition: background-color .15s var(--pn-ease), color .15s var(--pn-ease);
}
.msm-padelclub-header-shell .pn-extra a:hover { background: var(--m-bg, #f1f4f8); color: var(--m-ink, #0c1a3a); }
.msm-padelclub-header-shell .pn-sheet-actions { display: flex; flex-direction: column; gap: 12px; }
.msm-padelclub-header-shell .pn-sheet-actions .pn-btn { height: 48px; }

@media (min-width: 1024px) {
  .msm-padelclub-header-shell .pn-bar { padding: 16px 32px; }
  .msm-padelclub-header-shell .pn-menu { display: block; }
  .msm-padelclub-header-shell .pn-actions { display: flex; }
  .msm-padelclub-header-shell .pn-burger { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .msm-padelclub-header-shell .pn-chevron,
  .msm-padelclub-header-shell .pn-acc-panel { transition: none; }
  .msm-padelclub-header-shell .pn-viewport { animation-name: pn-fade-in; }
  .msm-padelclub-header-shell .pn-viewport.is-closing { animation-name: pn-fade-out; }
  .msm-padelclub-header-shell .pn-viewport > .pn-panel.from-end,
  .msm-padelclub-header-shell .pn-viewport > .pn-panel.from-start { animation-name: pn-fade-in; }
  .msm-padelclub-header-shell .pn-viewport > .pn-panel.to-end,
  .msm-padelclub-header-shell .pn-viewport > .pn-panel.to-start { animation-name: pn-fade-out; }
  .msm-padelclub-header-shell .pn-sheet { transform: none; opacity: 0; transition: opacity .15s linear; }
  .msm-padelclub-header-shell .pn-sheet.is-open { opacity: 1; transition-duration: .15s; }
  .msm-padelclub-header-shell .pn-overlay,
  .msm-padelclub-header-shell .pn-overlay.is-open { transition-duration: .15s; }
}
