/*
Theme Name: VCA Shell
Theme URI: https://vca.zhhbv.nl/
Author: Chesswood / VCA
Description: Minimal test shell theme for VCA Portal, VCA Access and VCA Learning compatibility checks. No menu, sidebar, framework or theme UI layer.
Version: 0.1.0-test
Text Domain: vca-shell
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
*/

:root {
  --vca-shell-bg: #ffffff;
  --vca-shell-text: #10231a;
  --vca-shell-link: #087739;
}

html {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  background: var(--vca-shell-bg);
  color: var(--vca-shell-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img,
picture,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--vca-shell-link);
}

button,
input,
select,
textarea {
  font: inherit;
}

.vca-shell-site {
  min-height: 100vh;
  background: #ffffff;
}

.vca-shell-main {
  width: 100%;
  min-height: 70vh;
}

.vca-shell-content {
  width: 100%;
}

.vca-shell-content > *:first-child {
  margin-top: 0;
}

.vca-shell-content > *:last-child {
  margin-bottom: 0;
}

.vca-shell-fallback {
  width: min(100% - 2rem, 980px);
  margin: 3rem auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* BRIEF 12F-2A: shared global VCA menu in vca-shell. */
.vca-shell-header {
  position: relative;
  z-index: 30;
  width: 100%;
  padding: 12px 12px 0;
  background: #ffffff;
}

.vca-top-menu {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto 14px;
  padding: 0;
  color: #08251a;
}

.vca-top-menu__inner {
  position: relative;
  padding: 10px 12px;
  border: 1px solid rgba(24, 148, 77, 0.2);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(239, 255, 247, 0.94), rgba(255, 255, 255, 0.98));
  box-shadow: 0 14px 34px rgba(8, 67, 38, 0.08);
}

.vca-top-menu__primary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.vca-top-menu__link,
.vca-top-menu__button,
.vca-top-menu__panel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 15px;
  border: 1px solid rgba(17, 126, 63, 0.24);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f0fff6 100%);
  color: #063d22;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 5px 12px rgba(10, 87, 45, 0.08);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.vca-top-menu__button {
  appearance: none;
  -webkit-appearance: none;
}

.vca-top-menu__link:hover,
.vca-top-menu__link:focus-visible,
.vca-top-menu__button:hover,
.vca-top-menu__button:focus-visible,
.vca-top-menu__panel-link:hover,
.vca-top-menu__panel-link:focus-visible,
.vca-top-menu__link.is-current,
.vca-top-menu__panel-link.is-current {
  border-color: rgba(11, 143, 65, 0.58);
  background: linear-gradient(180deg, #f9fffc 0%, #dcfbe8 100%);
  box-shadow: 0 8px 18px rgba(10, 87, 45, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.vca-top-menu__share,
.vca-top-menu__panel-share {
  gap: 7px;
}

.vca-top-menu__toggle,
.vca-top-menu__panel {
  display: none;
}

.vca-top-menu__notice {
  position: absolute;
  right: 16px;
  top: calc(100% + 6px);
  margin: 0;
  padding: 7px 11px;
  border-radius: 999px;
  background: #0b8f41;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(7, 80, 39, 0.18);
}

@media (max-width: 860px) {
  .vca-shell-header {
    padding: 10px 8px 0;
  }

  .vca-top-menu {
    margin-bottom: 12px;
  }

  .vca-top-menu__inner {
    padding: 9px;
    border-radius: 22px;
  }

  .vca-top-menu__primary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .vca-top-menu__link,
  .vca-top-menu__button {
    min-height: 32px;
    width: 100%;
    padding: 7px 8px;
    font-size: 12.5px;
    white-space: nowrap;
  }

  .vca-top-menu__link.is-mobile-extra,
  .vca-top-menu__share.is-desktop-share {
    display: none;
  }

  .vca-top-menu__toggle {
    display: inline-flex;
    gap: 5px;
  }

  .vca-top-menu__panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 9px;
    display: grid;
    width: min(72vw, 250px);
    padding: 11px;
    gap: 8px;
    border: 1px solid rgba(17, 126, 63, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 45px rgba(6, 42, 24, 0.17);
  }

  .vca-top-menu__panel[hidden] {
    display: none;
  }

  .vca-top-menu__panel-link {
    width: 100%;
    min-height: 40px;
    border-radius: 12px;
    background: #ffffff;
  }

  .vca-top-menu__panel-share {
    font-family: Georgia, 'Times New Roman', serif;
  }
}

/* BRIEF 12F-2B: keep the global shell menu visually identical on Portal and Access.
   The shell stylesheet is enqueued late; these scoped rules protect the menu
   from plugin-level button/link resets on Access pages. */
.vca-shell-header,
.vca-shell-header *,
.vca-shell-header *::before,
.vca-shell-header *::after {
  box-sizing: border-box;
}

.vca-shell-header .vca-top-menu a,
.vca-shell-header .vca-top-menu button {
  text-decoration: none;
}

.vca-shell-header .vca-top-menu__primary {
  display: flex;
}

.vca-shell-header .vca-top-menu__link,
.vca-shell-header .vca-top-menu__button,
.vca-shell-header .vca-top-menu__panel-link {
  display: inline-flex;
}

@media (max-width: 860px) {
  .vca-shell-header .vca-top-menu__primary {
    display: grid;
  }

  .vca-shell-header .vca-top-menu__link.is-mobile-extra,
  .vca-shell-header .vca-top-menu__share.is-desktop-share {
    display: none;
  }

  .vca-shell-header .vca-top-menu__toggle {
    display: inline-flex;
  }

  .vca-shell-header .vca-top-menu__panel {
    display: grid;
  }

  .vca-shell-header .vca-top-menu__panel[hidden] {
    display: none;
  }
}


.vca-top-menu__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: #178a45;
  flex: 0 0 16px;
}

.vca-top-menu__icon svg {
  width: 16px;
  height: 16px;
  display: block;
}
