/* ──────────────────────────────────────────────────────────
   JDREC SHARED — unified footer (and future global components)
   Loaded by EVERY page (root + album/).
   The footer HTML markup is inline-duplicated in each page
   between <!-- FOOTER:START --> and <!-- FOOTER:END -->.
   To change the footer site-wide, ask Claude to "propagate
   the footer" — it will Edit cross-file in one shot.
   ────────────────────────────────────────────────────────── */

.site-footer{
  max-width: 1180px;
  margin: 6vmin auto 0;
  padding: 5vmin 5vmin 3vmin;
  border-top: 1px solid var(--text-low);
  position: relative;
  z-index: 1;
}

.site-footer-cols{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 4vmin;
  margin-bottom: 4vmin;
}

.site-footer-col{
  font-family: var(--f-body);
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.7;
  color: var(--text);
  font-weight: 300;
}

.site-footer-col a{
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer-col a:hover{
  color: var(--accent);
  text-shadow: 0 0 6px var(--accent);
}

.site-footer-label{
  display: block;
  font-family: var(--f-pixel);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.site-footer-muted{
  color: var(--text-mid);
}

.site-footer-credits{
  font-family: var(--f-term);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--text-mid);
  text-align: center;
  text-transform: uppercase;
  padding-top: 3vmin;
  border-top: 1px solid var(--text-low);
}

.site-footer-credits a{
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer-credits a:hover{
  color: var(--accent);
  text-shadow: 0 0 6px var(--accent);
}

@media (max-width: 600px){
  .site-footer{
    padding: 4vmin 4vmin 2vmin;
    margin-top: 4vmin;
  }
  .site-footer-cols{
    gap: 3vmin;
    margin-bottom: 3vmin;
  }
}

/* ──────────────────────────────────────────────────────────
   SITE HEADER — global sticky nav, identical on every page.
   Retro '80s style: CRT scanlines, phosphor glow borders,
   two-bar pixel logo.
   The HTML markup lives between <!-- HEADER:START --> and
   <!-- HEADER:END --> markers (same pattern as the site footer).
   To change a nav item or its order, ask Claude to "propagate
   the header change" — single Edit, cross-file batch.
   ────────────────────────────────────────────────────────── */
.site-header{
  position: sticky; top: 0; z-index: 100;
  background-color: rgba(10,8,18,0.97);
  background-image: repeating-linear-gradient(
    0deg,
    transparent 0px, transparent 3px,
    rgba(0,0,0,0.10) 3px, rgba(0,0,0,0.10) 4px
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: none;
  border-bottom: none;
  padding: 14px 5vmin;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
/* Phosphor glow lines at top and bottom edges */
.site-header::before,
.site-header::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--ochre);
  box-shadow:
    0 0 6px 1px rgba(200,184,74,0.7),
    0 0 18px 3px rgba(200,184,74,0.25);
  pointer-events: none;
}
.site-header::before { top: 0; }
.site-header::after  { bottom: 0; }

/* Brand logo: two colored bars with "cut-through" pixel text.
   On home page use div[role="img"]; on inner pages use <a href>. */
.brand-logo{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(200,184,74,0.35));
  text-decoration: none;
}
.brand-logo span{
  font-family: var(--f-pixel);
  font-size: 18px;
  letter-spacing: 0.04em;
  padding: 6px 10px 5px;
  color: var(--bg);
  display: block;
  line-height: 1;
  white-space: nowrap;
}
.brand-john   { background: var(--ochre); }
.brand-debowie{ background: var(--purple); }

/* Primary site navigation (4 destinations: ABOUT, D&D,
   HEROQUEST, ARCHIVIO). The current page entry gets .active
   + aria-current="page". */
.site-nav{
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-family: var(--f-term);
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-nav a{
  color: var(--text-mid);
  text-decoration: none;
  transition: color .15s, text-shadow .15s;
}
.site-nav a:hover{
  color: var(--ochre);
  text-shadow: 0 0 8px rgba(200,184,74,0.65), 0 0 22px rgba(200,184,74,0.2);
}
.site-nav a.active{
  color: var(--accent);
  text-shadow: 0 0 6px rgba(200,184,74,0.35);
  pointer-events: none;
  cursor: default;
}

@media (max-width: 700px){
  .site-header{
    padding: 10px 4vmin;
    gap: 10px;
  }
  .site-nav{
    gap: 14px;
    font-size: 15px;
  }
  .brand-logo span{
    font-size: 15px;
    padding: 5px 8px 4px;
  }
}

/* Inline TOC used inside long pages (e.g. about) as a small
   "jump to" shortcut to in-page sections. Lives BELOW the hero,
   not in the header (which is now global and identical on all
   pages). */
.toc-inline{
  font-family: var(--f-term);
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--text-mid);
  margin: 3vmin 0 6vmin;
  padding: 0;
}
.toc-inline .toc-label{
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  margin-right: 0.6em;
}
.toc-inline a{
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dashed var(--text-low);
  padding-bottom: 1px;
  transition: color .15s, border-color .15s;
}
.toc-inline a:hover{
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ──────────────────────────────────────────────────────────
   LOCALE SWITCHER — EN | IT (e future lingue).
   Vive nell'header delle pagine outpost, accanto al .lang-switch
   esistente (che invece è nav intra-page tipo BIO/CONTACT).
   Stile identico a .lang-switch delle pagine legali, ma classe
   distinta così non collide con la nav intra-page.
   Su index.html (sysbar custom, niente .page-header) vive sotto
   .sysbar .right via la classe .sysbar-locale.
   ────────────────────────────────────────────────────────── */
.locale-switch{
  display: flex; gap: 8px;
  font-family: var(--f-term);
  font-size: 16px;
  letter-spacing: 0.1em;
}
.locale-switch a{
  color: var(--text-mid);
  padding: 2px 8px;
  border: 1px solid var(--text-low);
  text-decoration: none;
  transition: color .15s, border-color .15s;
}
.locale-switch a:hover,
.locale-switch a.active{
  color: var(--text);
  border-color: var(--accent);
  text-shadow: none;
}
.locale-switch a.active{
  pointer-events: none;
  cursor: default;
}
/* Lingue in arrivo: visibili nel selettore ma non cliccabili.
   Stesso ingombro grafico delle altre, opacità ridotta, tooltip
   nativo via title=. */
.locale-switch a.soon,
.locale-switch span.soon{
  color: var(--text-low);
  border-color: var(--text-low);
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  padding: 2px 8px;
  border-style: dashed;
}

/* Variante per la sysbar di index.html (font/size più piccoli per
   incassarsi nella riga della system bar). */
.sysbar-locale{
  display: inline-flex; gap: 6px;
  font-family: var(--f-term);
  font-size: 13px;
  letter-spacing: 0.12em;
  margin-right: 12px;
  vertical-align: middle;
}
.sysbar-locale a{
  color: var(--text-mid);
  padding: 1px 6px;
  border: 1px solid var(--text-low);
  text-decoration: none;
  transition: color .15s, border-color .15s;
}
.sysbar-locale a:hover,
.sysbar-locale a.active{
  color: var(--text);
  border-color: var(--accent);
}
.sysbar-locale a.active{
  pointer-events: none;
  cursor: default;
}
.sysbar-locale a.soon,
.sysbar-locale span.soon{
  color: var(--text-low);
  border-color: var(--text-low);
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  padding: 1px 6px;
  border: 1px dashed var(--text-low);
}
