/* ============================================================
   /projects — DARK  ·  03) CHROME (Astra kontejnery + ps menu + patička)
   ------------------------------------------------------------
   ps hlavička a patička se vkládají přes hooky na KAŽDÉ stránce.
   Tady je jen na /projects přebarvíme do tmavého skla.
   ============================================================ */

/* --- základ stránky --- */
body.psx-dark {
  background-color: var(--psx-bg);
  color: var(--psx-text);
}

/* Astra „separate container" jinak kreslí bílé boxy kolem obsahu */
body.psx-dark #page,
body.psx-dark #content,
body.psx-dark #primary,
body.psx-dark .site-content,
body.psx-dark .ast-separate-container,
body.psx-dark .ast-separate-container .ast-article-single,
body.psx-dark .entry-content,
body.psx-dark .elementor-section,
body.psx-dark .elementor-widget-container {
  background: transparent !important;
  box-shadow: none !important;
}

body.psx-dark h1, body.psx-dark h2, body.psx-dark h3 { color: var(--psx-heading); }

/* WP/Astra titulek stránky nahrazuje vlastní .psx-hero */
body.psx-dark .ast-single-post-title-bar-layout .entry-header,
body.psx-dark .entry-header .entry-title,
body.psx-dark .ast-archive-description,
body.psx-dark .page .entry-header { display: none; }

/* ---------- ps HLAVIČKA ---------- */
/* overlay se kvůli transformu na .psm-custom-nav renderuje jen jako pruh
   pod menu (ne přes celou stránku) → na /projects ho vypínáme,
   panel je i tak plně krytý */
body.psx-dark .psm-custom-nav-overlay,
body.psx-dark .psm-custom-nav-overlay.is-open { display: none !important; }

/* na /projects necháváme JEN tlačítko Menu:
   pryč postranní tečky i CTA "Domluvit konzultaci" */
body.psx-dark .psm-nav-dot-left,
body.psx-dark .psm-nav-dot-right,
body.psx-dark .psm-custom-nav-cta { display: none !important; }

/* …a pryč i celý obal pilulek za tlačítkem (sklo/rámeček/stín/padding) */
body.psx-dark .psm-custom-nav-pills {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  gap: 0;
  overflow: visible !important;      /* ať panel není oříznutý */
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
body.psx-dark .psm-custom-nav-pills::before { display: none !important; }

/* tlačítko Menu – stejné frosted sklo jako hero panel (--psx-glass) + zrno */
body.psx-dark .psm-menu-toggle {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23m)' opacity='0.1'/%3E%3C/svg%3E") repeat,
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03)),
    rgba(13,16,21,0.52) !important;
  background-size: 120px 120px, auto, auto !important;
  background-blend-mode: overlay, normal, normal;
  border: 1px solid rgba(255,255,255,0.10) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 0 0 1px rgba(255,255,255,0.04),
    inset 0 20px 44px -14px rgba(255,255,255,0.10),
    0 14px 34px rgba(0,0,0,0.42) !important;
  -webkit-backdrop-filter: blur(var(--psx-blur)) saturate(140%);
  backdrop-filter: blur(var(--psx-blur)) saturate(140%);
  overflow: hidden;
}
body.psx-dark .psm-menu-toggle:hover {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23m)' opacity='0.1'/%3E%3C/svg%3E") repeat,
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.045)),
    rgba(16,20,26,0.58) !important;
  background-blend-mode: overlay, normal, normal;
  border-color: rgba(86,197,210,0.32) !important;
}

/* pryč rozmazaný teal "glow" za tlačítkem – to je ten divný pruh */
body.psx-dark .psm-menu-toggle::after { content: none !important; display: none !important; }

/* rozbalovací panel: vytáhnout z obalu (fixní pozice) + pevná šířka,
   jinak dědí ~120px po úzkém tlačítku a rozsype se */
body.psx-dark .psm-menu-panel {
  position: fixed;
  top: 104px;
  left: 50%;
  width: min(360px, 90vw);
  max-width: none;
  padding: 14px;
  transform: translateX(-50%) translateY(-8px) scale(0.98);
  /* dark glass panel – průsvitné, ale čitelné */
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03)),
    rgba(12,15,20,0.78) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 0 0 1px rgba(255,255,255,0.04),
    0 24px 56px rgba(0,0,0,0.50) !important;
  -webkit-backdrop-filter: blur(26px) saturate(160%) !important;
  backdrop-filter: blur(26px) saturate(160%) !important;
}
body.psx-dark .psm-menu-panel.is-open {
  transform: translateX(-50%) translateY(0) scale(1);
}
/* 4 položky pod sebou = čistší „menu" */
body.psx-dark .psm-menu-panel-grid {
  grid-template-columns: 1fr;
  gap: 2px;
}
body.psx-dark .psm-menu-panel-grid a {
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 15px;
  transition: background 0.18s ease, transform 0.18s ease;
}
body.psx-dark .psm-menu-panel-grid a:hover {
  background: rgba(255,255,255,0.10);
  transform: none;
  opacity: 1;
}

/* ---------- ps PATIČKA ---------- */
body.psx-dark .psm-minimal-footer-inner {
  background: var(--psx-glass);
  border-color: var(--psx-border);
  box-shadow: var(--psx-hi), var(--psx-shadow-soft);
}
body.psx-dark .psm-minimal-footer-inner::before {
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 40%, transparent 100%);
}
body.psx-dark .psm-minimal-footer-text { color: var(--psx-text-soft); }
body.psx-dark .psm-minimal-footer-brand img {
  filter: brightness(0) invert(1);
  opacity: 0.88;
}
body.psx-dark .psm-minimal-footer-links a {
  color: #cdd3de;
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 6px 14px rgba(0,0,0,0.25);
}
body.psx-dark .psm-minimal-footer-links a:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.18);
}

/* ---------- ps PATIČKA – varianta /projects (.psx-footer) ---------- */
/* barevné hexagon logo (stejné jako v intru) → žádný invert filtr */
body.psx-dark .psx-footer .psm-minimal-footer-brand img {
  filter: none;
  opacity: 0.92;
  height: 40px;
  width: auto;
}
body.psx-dark .psx-footer .psm-minimal-footer-brand a {
  line-height: 0;
  display: inline-block;
}

/* sklo patičky – „mléčné" ladění (zrno přidává 11-glass.css přes ::after) */
body.psx-dark .psx-footer { margin-top: 8px; }
body.psx-dark .psx-footer .psm-minimal-footer-inner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--psx-radius-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
    rgba(11,14,19,0.60);
  border: 1px solid rgba(255,255,255,0.09);
  /* jen decentní horní hrana + měkký stín – žádná výrazná záře */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    var(--psx-shadow-soft);
  -webkit-backdrop-filter: blur(var(--psx-blur)) saturate(140%);
  backdrop-filter: blur(var(--psx-blur)) saturate(140%);
}
/* přebít parent ::before (světlý gradient shora) na jemnější */
body.psx-dark .psx-footer .psm-minimal-footer-inner::before {
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0) 45%) !important;
}
body.psx-dark .psx-footer .psm-minimal-footer-inner > * { position: relative; z-index: 5; }

/* ---------- „nahoru" tlačítko (Astra scroll-to-top) – tmavé sklo ---------- */
body.psx-dark #ast-scroll-top {
  background: rgba(12,15,20,0.62) !important;
  color: var(--psx-text) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    0 12px 30px rgba(0,0,0,0.45) !important;
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
body.psx-dark #ast-scroll-top:hover {
  background: rgba(18,22,30,0.78) !important;
  border-color: rgba(86,197,210,0.5) !important;
  transform: translateY(-3px);
}
body.psx-dark #ast-scroll-top svg,
body.psx-dark #ast-scroll-top .ahfb-svg-iconset {
  fill: currentColor !important;
  color: var(--psx-text) !important;
}
