/* ShenDigital personal overlay menus — v1.0.9
   Purpose: bring the Radio-style personal menus to static pages without changing their core layout. */
:root{
  --shen-menu-bg: rgba(9, 4, 18, .82);
  --shen-menu-bg-strong: rgba(15, 6, 28, .94);
  --shen-menu-border: rgba(255,255,255,.14);
  --shen-menu-ink: rgba(246,247,255,.95);
  --shen-menu-muted: rgba(225,226,255,.64);
  --shen-menu-cyan: #72f7ff;
  --shen-menu-magenta: #ff4fd8;
  --shen-menu-warm: #ffb36a;
  --shen-menu-shadow: 0 18px 70px rgba(0,0,0,.48), 0 0 42px rgba(255,79,216,.12), inset 0 1px 0 rgba(255,255,255,.08);
}
html.shen-overlay-ready .topbar .lang-switcher,
html.shen-overlay-ready header .lang-switcher{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  overflow:hidden!important;
  clip:rect(0 0 0 0)!important;
  white-space:nowrap!important;
  opacity:0!important;
  pointer-events:none!important;
}
.shen-fab,
.shen-fab *,
.shen-panel,
.shen-panel *{box-sizing:border-box}
.shen-fab{
  position:fixed;
  right:max(16px, env(safe-area-inset-right));
  bottom:max(16px, env(safe-area-inset-bottom));
  z-index:9000;
  display:flex;
  align-items:flex-end;
  gap:8px;
  font-family:inherit;
  color:var(--shen-menu-ink);
}
.shen-fab-buttons{
  display:flex;
  gap:8px;
  padding:7px;
  border:1px solid var(--shen-menu-border);
  border-radius:999px;
  background:linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.025)), var(--shen-menu-bg);
  box-shadow:var(--shen-menu-shadow);
  backdrop-filter:blur(18px) saturate(135%);
  -webkit-backdrop-filter:blur(18px) saturate(135%);
}
.shen-fab[data-site="music"]{--shen-menu-magenta:#ff54d7;--shen-menu-cyan:#7af7ff;--shen-menu-warm:#ffc071}
.shen-fab[data-site="media"]{--shen-menu-magenta:#c850ff;--shen-menu-cyan:#63f7ff;--shen-menu-warm:#ff9d6d}
.shen-fab[data-site="gaming"]{--shen-menu-magenta:#ff336d;--shen-menu-cyan:#55f7ff;--shen-menu-warm:#ff8b45}
.shen-fab[data-site="projects"]{--shen-menu-magenta:#ff63d8;--shen-menu-cyan:#72f7ff;--shen-menu-warm:#d8ff8d}
.shen-menu-btn{
  appearance:none;
  border:1px solid rgba(255,255,255,.13);
  border-radius:999px;
  background:linear-gradient(180deg, rgba(255,255,255,.105), rgba(255,255,255,.035));
  color:var(--shen-menu-ink);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:38px;
  padding:0 13px;
  font:700 12px/1 inherit;
  letter-spacing:.055em;
  text-transform:uppercase;
  cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 1px rgba(0,0,0,.16);
  transition:transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.shen-menu-btn:hover,
.shen-menu-btn[aria-expanded="true"]{
  transform:translateY(-1px);
  border-color:color-mix(in srgb, var(--shen-menu-cyan) 42%, white 10%);
  box-shadow:0 0 0 3px rgba(114,247,255,.08), 0 0 24px rgba(114,247,255,.10), inset 0 1px 0 rgba(255,255,255,.12);
}
.shen-menu-btn:focus-visible,
.shen-link:focus-visible,
.shen-doc-btn:focus-visible,
.shen-lang-btn:focus-visible,
.shen-panel-close:focus-visible{
  outline:2px solid var(--shen-menu-cyan);
  outline-offset:3px;
}
.shen-menu-ico{font-size:15px;line-height:1;filter:drop-shadow(0 0 8px rgba(114,247,255,.25))}
.shen-popover{
  position:absolute;
  right:0;
  bottom:calc(100% + 10px);
  width:min(420px, calc(100vw - 26px));
  max-height:min(70vh, 620px);
  overflow:auto;
  border:1px solid var(--shen-menu-border);
  border-radius:24px;
  background:radial-gradient(circle at 12% 0%, rgba(255,79,216,.18), transparent 38%), radial-gradient(circle at 88% 14%, rgba(114,247,255,.16), transparent 34%), var(--shen-menu-bg-strong);
  box-shadow:var(--shen-menu-shadow);
  backdrop-filter:blur(22px) saturate(145%);
  -webkit-backdrop-filter:blur(22px) saturate(145%);
  padding:12px;
}
.shen-popover[hidden],
.shen-panel[hidden],
.shen-backdrop[hidden]{display:none!important}
.shen-pop-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  padding:6px 6px 12px;
}
.shen-pop-kicker{
  display:block;
  color:var(--shen-menu-cyan);
  font-size:11px;
  letter-spacing:.14em;
  text-transform:uppercase;
  font-weight:800;
}
.shen-pop-title{
  margin:3px 0 0;
  color:var(--shen-menu-ink);
  font-size:18px;
  line-height:1.15;
  letter-spacing:-.02em;
}
.shen-pop-note{
  color:var(--shen-menu-muted);
  font-size:12px;
  line-height:1.35;
  text-align:right;
  max-width:140px;
}
.shen-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.shen-link,
.shen-doc-btn,
.shen-lang-btn{
  width:100%;
  appearance:none;
  border:1px solid rgba(255,255,255,.115);
  border-radius:16px;
  background:linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
  color:var(--shen-menu-ink);
  text-decoration:none;
  display:flex;
  align-items:center;
  gap:10px;
  padding:11px;
  min-height:58px;
  cursor:pointer;
  text-align:left;
  font:inherit;
  transition:transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.shen-link:hover,
.shen-doc-btn:hover,
.shen-lang-btn:hover,
.shen-lang-btn.is-active{
  transform:translateY(-1px);
  border-color:rgba(114,247,255,.32);
  background:linear-gradient(135deg, rgba(114,247,255,.105), rgba(255,79,216,.07));
  box-shadow:0 0 22px rgba(114,247,255,.08);
}
.shen-link.is-accent{border-color:rgba(255,79,216,.28);box-shadow:inset 0 0 0 1px rgba(255,79,216,.05)}
.shen-link-icon,
.shen-doc-icon,
.shen-lang-code{
  flex:0 0 34px;
  width:34px;
  height:34px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:radial-gradient(circle at 35% 20%, rgba(255,255,255,.24), rgba(255,255,255,.05));
  border:1px solid rgba(255,255,255,.12);
  color:var(--shen-menu-cyan);
  font-weight:900;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08), 0 0 16px rgba(114,247,255,.08);
}
.shen-link strong,
.shen-doc-btn strong,
.shen-lang-btn strong{display:block;font-size:13px;line-height:1.12;color:var(--shen-menu-ink)}
.shen-link em,
.shen-doc-btn em,
.shen-lang-btn em{display:block;margin-top:3px;font-style:normal;font-size:11px;line-height:1.15;color:var(--shen-menu-muted)}
.shen-backdrop{
  position:fixed;
  inset:0;
  z-index:9010;
  background:rgba(1,0,8,.42);
  backdrop-filter:blur(5px);
  -webkit-backdrop-filter:blur(5px);
}
.shen-panel{
  position:fixed;
  right:0;
  top:0;
  bottom:0;
  z-index:9020;
  width:min(520px, 100vw);
  color:var(--shen-menu-ink);
  border-left:1px solid var(--shen-menu-border);
  background:radial-gradient(circle at 0% 0%, rgba(255,79,216,.16), transparent 36%), radial-gradient(circle at 100% 10%, rgba(114,247,255,.14), transparent 32%), rgba(8,3,18,.96);
  box-shadow:-18px 0 70px rgba(0,0,0,.52), inset 1px 0 0 rgba(255,255,255,.05);
  transform:translateX(0);
  display:flex;
  flex-direction:column;
}
.shen-panel-head{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
  padding:22px 22px 14px;
  border-bottom:1px solid rgba(255,255,255,.09);
}
.shen-panel-kicker{
  color:var(--shen-menu-cyan);
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.16em;
  font-weight:900;
}
.shen-panel-title{
  margin:4px 0 0;
  font-size:24px;
  line-height:1.08;
  letter-spacing:-.03em;
}
.shen-panel-close{
  appearance:none;
  border:1px solid rgba(255,255,255,.13);
  border-radius:999px;
  background:rgba(255,255,255,.06);
  color:var(--shen-menu-ink);
  padding:8px 11px;
  cursor:pointer;
  font:800 12px/1 inherit;
}
.shen-panel-body{
  overflow:auto;
  padding:18px 22px 26px;
}
.shen-panel-meta{
  color:var(--shen-menu-muted);
  font-size:12px;
  margin:0 0 12px;
}
.shen-doc-callout{
  border:1px solid rgba(114,247,255,.16);
  border-radius:20px;
  background:linear-gradient(135deg, rgba(114,247,255,.08), rgba(255,79,216,.06));
  padding:15px;
  margin:0 0 14px;
}
.shen-doc-callout strong{display:block;font-size:14px;text-transform:uppercase;letter-spacing:.09em;margin-bottom:6px;color:var(--shen-menu-ink)}
.shen-doc-callout p{margin:0;color:rgba(246,247,255,.82);line-height:1.45}
.shen-doc-section{
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  background:rgba(255,255,255,.045);
  padding:15px;
  margin:10px 0;
}
.shen-doc-section h3{margin:0 0 8px;color:var(--shen-menu-ink);font-size:16px}
.shen-doc-section p{margin:0 0 8px;color:rgba(246,247,255,.78);line-height:1.48}
.shen-doc-section p:last-child{margin-bottom:0}
.shen-doc-section ul{margin:0;padding-left:18px;display:grid;gap:6px;color:rgba(246,247,255,.78)}
.shen-doc-section a{color:var(--shen-menu-cyan)}
.shen-doc-article{display:block}
.shen-doc-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
.shen-doc-links a{display:flex;align-items:center;gap:9px;text-decoration:none;border:1px solid rgba(255,255,255,.11);border-radius:15px;padding:10px;background:rgba(255,255,255,.045);color:var(--shen-menu-ink)}
.shen-doc-links a:hover,.shen-doc-links a:focus-visible{border-color:rgba(114,247,255,.28);background:rgba(114,247,255,.075)}
.shen-doc-links span{flex:0 0 30px;width:30px;height:30px;display:grid;place-items:center;border-radius:11px;border:1px solid rgba(255,255,255,.12);color:var(--shen-menu-cyan);background:rgba(255,255,255,.06)}
.shen-doc-links strong{font-size:13px;line-height:1.15}

.shen-panel-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin:0 0 13px;
  padding:8px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  background:rgba(255,255,255,.04);
}
.shen-panel-tab{
  appearance:none;
  border:1px solid rgba(255,255,255,.11);
  border-radius:999px;
  background:rgba(255,255,255,.045);
  color:var(--shen-menu-ink);
  padding:8px 10px;
  font:800 12px/1 inherit;
  cursor:pointer;
  transition:border-color .18s ease, background .18s ease, transform .18s ease;
}
.shen-panel-tab:hover,
.shen-panel-tab:focus-visible,
.shen-panel-tab.is-active{
  border-color:rgba(114,247,255,.34);
  background:linear-gradient(135deg, rgba(114,247,255,.10), rgba(255,79,216,.075));
  transform:translateY(-1px);
}
.shen-panel-tab.is-active{color:var(--shen-menu-cyan)}

html.shen-panel-open{overflow:hidden}
@media (max-width: 860px){
  html.shen-overlay-ready .ecosystem-footer{display:none!important}
  .shen-fab{left:max(12px, env(safe-area-inset-left));right:max(12px, env(safe-area-inset-right));justify-content:center}
  .shen-fab-buttons{width:100%;justify-content:space-between;border-radius:22px}
  .shen-menu-btn{flex:1;padding:0 9px;font-size:11px;gap:6px}
  .shen-popover{left:0;right:0;bottom:calc(100% + 9px);width:100%;border-radius:22px;max-height:66vh}
  .shen-pop-note{display:none}
  .shen-grid{grid-template-columns:1fr 1fr;gap:7px}
}
@media (max-width: 560px){
  .shen-menu-btn span:not(.shen-menu-ico){display:none}
  .shen-menu-btn{min-height:42px}
  .shen-menu-ico{font-size:17px}
  .shen-grid{grid-template-columns:1fr}
  .shen-link,.shen-doc-btn,.shen-lang-btn{min-height:54px;padding:10px}
  .shen-doc-links{grid-template-columns:1fr}
  .shen-panel{top:auto;left:0;right:0;bottom:0;width:100%;height:min(82vh, 720px);border-left:none;border-top:1px solid var(--shen-menu-border);border-radius:24px 24px 0 0}
  .shen-panel-head{padding:16px 16px 12px}
  .shen-panel-title{font-size:20px}
  .shen-panel-body{padding:14px 16px calc(22px + env(safe-area-inset-bottom))}
}
@media (prefers-reduced-motion: reduce){
  .shen-menu-btn,.shen-link,.shen-doc-btn,.shen-lang-btn{transition:none!important}
}


/* v1.0.7 — footers cleaned after overlay integration */
.shen-clean-footer{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-align:center;
  padding-bottom:calc(34px + env(safe-area-inset-bottom));
}
.shen-footer-mini{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
  max-width:min(760px, 100%);
}
.shen-footer-mini a{
  color:inherit;
  opacity:.72;
  text-decoration:none;
  border:1px solid rgba(255,255,255,.11);
  border-radius:999px;
  padding:7px 11px;
  background:rgba(255,255,255,.035);
  transition:opacity .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}
.shen-footer-mini a:hover,
.shen-footer-mini a:focus-visible{
  opacity:1;
  border-color:rgba(114,247,255,.28);
  background:rgba(114,247,255,.07);
  transform:translateY(-1px);
}
.shen-link.is-current{
  border-color:rgba(255,179,106,.38);
  background:linear-gradient(135deg, rgba(255,179,106,.115), rgba(255,79,216,.055));
}
.shen-link.is-current .shen-link-icon{
  color:var(--shen-menu-warm);
}
@media (min-width: 861px){
  .shen-clean-footer{padding-bottom:34px;}
}
@media (max-width: 560px){
  .shen-clean-footer{padding-bottom:calc(92px + env(safe-area-inset-bottom));}
  .shen-footer-mini{gap:6px;}
  .shen-footer-mini a{font-size:12px;padding:6px 9px;}
}
