/* TransOasis — gedeelde L-shell (zijbalk + tab-balk) */

:root {
  --shell-border: color-mix(in oklab, var(--accent) 12%, transparent);
  --shell-border-soft: color-mix(in oklab, var(--accent) 7%, transparent);
  --sidebar-w: 240px;
  --topbar-h: 60px;
}

/* Hide the legacy fixed top nav when the L-shell is in use */
body.has-shell .nav { display: none !important; }
body.has-shell {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  position: relative;
}
/* Shared atmospheric gradient — identical on every page */
body.has-shell::before {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 22% 14%, color-mix(in oklab, var(--grad-start) 70%, transparent) 0%, transparent 60%),
    radial-gradient(ellipse 60% 45% at 82% 60%, color-mix(in oklab, var(--grad-end) 70%, transparent) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 95%, color-mix(in oklab, var(--grad-start) 45%, transparent) 0%, transparent 60%);
  filter: blur(60px);
  opacity: 0.75;
}
body.has-shell > * { position: relative; z-index: 1; }

/* Shared drifting orbs — identical on every page */
.shell-atmosphere {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
.shell-orb {
  position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: 0.5;
  animation: shellDrift 22s ease-in-out infinite;
}
.shell-orb--1 { width: 340px; height: 340px; background: var(--grad-start); top: 4%; left: -8%; }
.shell-orb--2 { width: 400px; height: 400px; background: var(--grad-end); top: 28%; right: -12%; animation-delay: -6s; }
.shell-orb--3 { width: 260px; height: 260px; background: var(--accent); top: 65%; left: 22%; opacity: 0.22; animation-delay: -12s; }
.shell-orb--4 { width: 240px; height: 240px; background: var(--grad-start); top: 88%; right: 16%; opacity: 0.4; animation-delay: -16s; }
@keyframes shellDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(20px, -22px) scale(1.05); }
  66%      { transform: translate(-18px, 18px) scale(0.96); }
}
body.has-shell .shell-banner,
body.has-shell .shell-sidebar {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-color: transparent !important;
}
body.has-shell .shell-banner *,
body.has-shell .shell-sidebar * { background-color: transparent; }
body.has-shell .shell-content { background: transparent; }
body.has-shell .content,
body.has-shell .content__inner-wrap,
body.has-shell html,
body.has-shell main { background: transparent !important; }
/* Hide per-page atmosphere layers so the shared shell atmosphere is identical everywhere */
body.has-shell .atmosphere,
body.has-shell .hero::before,
body.has-shell .hero::after { display: none !important; }
body.has-shell .hero,
body.has-shell section,
body.has-shell .section,
body.has-shell .section--alt,
body.has-shell .page,
body.has-shell .page-hero,
body.has-shell .page-hero__bg,
body.has-shell .hero__gradient { background: transparent !important; }
body.has-shell .page-hero__bg,
body.has-shell .hero__gradient { display: none !important; }

/* ── Top banner (full width above the L) ─── */
.shell-banner {
  position: relative;
  z-index: 35;
  flex: 0 0 auto;
  background: var(--surface);
  border-bottom: 1px solid var(--shell-border);
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px 28px;
  flex-wrap: wrap;
}
.shell-banner__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.shell-banner__logo {
  width: 130px; height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(124, 95, 184, 0.24));
}
.shell-banner__name {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--accent);
  letter-spacing: -0.01em;
}
.shell-banner__slogan {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: clamp(14px, 1.5vw, 17px);
  letter-spacing: -0.005em;
}
.shell-banner__tag--rust     { color: #7c5fb8; }
.shell-banner__tag--richting { color: #6ba8d6; }
.shell-banner__tag--kracht   { color: #e89aae; }
.shell-banner__sep {
  color: var(--ink-soft);
  opacity: 0.55;
  font-weight: 400;
}
.shell-banner__cta {
  margin-left: auto;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--grad);
  color: white;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 12px 24px -8px color-mix(in oklab, var(--grad-start) 70%, transparent);
}

/* ── Banner inline nav (sub-tabs only) ──────────────── */
.shell-banner__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}
.shell-banner__burger {
  display: none;
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--shell-border);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  align-items: center; justify-content: center;
}
.shell-banner__burger svg { width: 18px; height: 18px; }

/* ── Pill button (used for ALL nav items + sub-tabs) ── */
.shell-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 6%, var(--surface));
  color: var(--ink);
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.18s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.shell-pill:hover {
  background: color-mix(in oklab, var(--accent) 11%, var(--surface));
  transform: translateY(-1px);
}
.shell-pill.is-active {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 22px -8px color-mix(in oklab, var(--grad-start) 75%, transparent);
}
.shell-pill.is-active:hover { transform: translateY(-1px); }

/* Side pill variant (for the vertical sidebar) */
.shell-pill--side {
  justify-content: flex-start;
  width: 100%;
  padding: 11px 16px;
  gap: 10px;
}
.shell-pill__icon {
  display: inline-flex;
  width: 20px; height: 20px;
  align-items: center; justify-content: center;
  flex-shrink: 0;
}
.shell-pill__icon svg { width: 18px; height: 18px; }
.shell-pill--side.is-active .shell-pill__icon { color: #fff; }

/* Hide legacy topbar/pageheader — nav moved to banner + sidebar */
.shell-topbar, .shell-pageheader { display: none; }

/* The shell ────────────────────────────────────── */
.app {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: 1fr;
}

/* ── Sidebar (linkerzijde van de L) ────────── */
.shell-sidebar {
  grid-column: 1;
  grid-row: 1;
  background: var(--surface);
  border-right: 1px solid var(--shell-border);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 30;
}
.shell-sidebar__brand {
  display: none; /* brand lives in the top banner now */
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  height: var(--topbar-h);
  border-bottom: 1px solid var(--shell-border-soft);
}
.shell-sidebar__brand img {
  width: 34px; height: 34px; object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(124, 95, 184, 0.22));
}
.shell-sidebar__brand-name {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 16px;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.shell-sidebar__nav { padding-top: 18px; }
.shell-sidebar__nav {
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  overflow-y: auto;
}
.shell-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 14.5px;
  color: var(--ink);
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  position: relative;
  text-decoration: none;
}
.shell-nav-item:hover { background: var(--soft); }
.shell-nav-item.is-active {
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  color: var(--accent);
  font-weight: 600;
}
.shell-nav-item.is-active::before {
  content: "";
  position: absolute;
  left: 4px; top: 10px; bottom: 10px;
  width: 3px;
  background: var(--grad);
  border-radius: 2px;
}
.shell-nav-item__icon {
  width: 20px; height: 20px;
  display: grid; place-items: center;
  flex-shrink: 0;
  color: currentColor;
}
.shell-nav-item__icon svg { width: 18px; height: 18px; }

.shell-sidebar__foot {
  padding: 16px 20px;
  border-top: 1px solid var(--shell-border-soft);
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.shell-sidebar__foot strong {
  font-family: var(--heading-font);
  color: var(--accent);
  font-weight: 600;
}

/* ── Right column ──────────────────────────── */
.shell-main {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
}

/* Top tab bar (alleen op De Gids) */
.shell-topbar {
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--shell-border);
  display: flex;
  align-items: stretch;
  padding: 0 8px 0 4px;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.shell-topbar::-webkit-scrollbar { display: none; }

.shell-topbar__burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  background: transparent;
  border: 0;
  color: var(--ink);
}
.shell-topbar__burger svg { width: 22px; height: 22px; }

.shell-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-soft);
  border: 0;
  background: transparent;
  position: relative;
  white-space: nowrap;
  transition: color 0.15s;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
}
.shell-tab:hover { color: var(--ink); }
.shell-tab.is-active { color: var(--accent); font-weight: 600; }
.shell-tab.is-active::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 0;
  height: 3px;
  background: var(--grad);
  border-radius: 3px 3px 0 0;
}
.shell-tab__count {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent);
  font-weight: 600;
}

/* Slim header on non-Gids pages (no tab bar) */
.shell-pageheader {
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--shell-border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 12px;
}
.shell-pageheader__burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: transparent;
  border: 0;
  color: var(--ink);
  margin-left: -8px;
}
.shell-pageheader__burger svg { width: 22px; height: 22px; }
.shell-pageheader__title {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.shell-pageheader__sub {
  font-size: 13px;
  color: var(--ink-soft);
  margin-left: 4px;
}

/* Content scroller — host pages drop their existing content inside this */
.shell-content {
  overflow-y: auto;
  background: var(--bg);
  position: relative;
}
/* Neutralize the legacy fixed-page hero spacing inside the shell */
body.has-shell .hero { min-height: auto; padding: 60px 0 60px; }
body.has-shell .page-hero { padding: 60px 0 40px; }
body.has-shell .page { min-height: auto; }
body.has-shell .atmosphere { position: absolute; }

/* ── Mobile ────────────────────────────────── */
.shell-scrim {
  position: fixed; inset: 0;
  background: rgba(47, 94, 88, 0.35);
  backdrop-filter: blur(4px);
  z-index: 25;
  display: none;
}
.shell-scrim.is-on { display: block; }

@media (max-width: 880px) {
  :root { --sidebar-w: 0px; }
  .app { grid-template-columns: 1fr; }
  .shell-banner__burger { display: inline-flex; }
  .shell-banner__nav--main { display: none; }
  .shell-sidebar {
    position: fixed;
    top: 0; bottom: 0; left: 0;
    width: 260px;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 0 24px 60px rgba(47,94,88,0.18);
    z-index: 50;
  }
  .shell-sidebar.is-open { transform: translateX(0); }
  .shell-sidebar__brand { display: flex; }
  .shell-sidebar__nav { padding-top: 14px; }
  .shell-main { grid-column: 1; }
}

@media (max-width: 720px) {
  .shell-banner { padding: 10px 16px; gap: 12px; }
  .shell-banner__slogan { display: none; }
  .shell-banner__logo { width: 70px; height: 60px; }
  .shell-banner__name { font-size: 17px; }
  .shell-banner__cta { padding: 9px 14px; font-size: 13px; }
}
