/* =========================================================
   nekupto.sk – VIANOČNÉ DEKORÁCIE v3.1, 11/2026
   Zbytek webu beze změny:
     DESKTOP (od 768 px):
       1) sníh na horní hraně oranžové lišty menu
       2) svítící řetěz žárovek pod menu (blikají, mění barvy)
     MOBIL (do 767 px):
       3) řetěz žárovek visí ze spodní hrany bílé hlavičky (+ jemný stín);
          sníh na mobilu není – hlavička je bílá, oranžová lišta tam není

   ZAPNUTÍ:  nahrát jako /user/documents/css/sk-vanocni-vzhled.css
             a do Záhlaví (HTML kód) přidat ÚPLNĚ NA KONEC, za ostatní CSS:
             <link rel="stylesheet" href="/user/documents/css/sk-vanocni-vzhled.css?v=3.10">
   VYPNUTÍ:  ten jeden řádek <link> smazat.
   ========================================================= */

@media (min-width: 768px) {

  /* margin-bottom = místo pro světýlka, aby nezasahovala do bannerů */
  #header { position: relative; margin-bottom: 30px; }

  /* ---------- 1) Sníh na horní hraně lišty menu ---------- */
  .navigation-in::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 11px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='11'%3E%3Cpath d='M0 0H90V3Q84 9 77 5Q71 10 63 4Q57 7 50 4Q44 11 36 5Q29 8 22 4Q15 10 8 4Q4 7 0 3Z' fill='%23fff'/%3E%3C/svg%3E") repeat-x;
    pointer-events: none;
    z-index: 2;
  }

  /* ---------- 2) Řetěz světýlek pod menu ----------
     ::after = drát + žárovky, ::before = druhé barvy žárovek, které se prolínají (blikání) */
  #header::after,
  #header::before {
    content: "";
    position: absolute;
    left: 0; right: 0;
    bottom: -30px;
    height: 34px;
    background-repeat: repeat-x;
    background-position: center top;
    pointer-events: none;
    z-index: 20;
  }
  #header::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='34'%3E%3Cpath d='M0 3Q30 17 60 3T120 3T180 3T240 3' fill='none' stroke='%231d3b26' stroke-width='1.6'/%3E%3Cg fill='%231d3b26'%3E%3Crect x='27.5' y='8.5' width='5' height='5' rx='1'/%3E%3Crect x='87.5' y='8.5' width='5' height='5' rx='1'/%3E%3Crect x='147.5' y='8.5' width='5' height='5' rx='1'/%3E%3Crect x='207.5' y='8.5' width='5' height='5' rx='1'/%3E%3C/g%3E%3Cellipse cx='30' cy='20' rx='4.6' ry='7' fill='%23e53935'/%3E%3Cellipse cx='90' cy='20' rx='4.6' ry='7' fill='%23ffc23c'/%3E%3Cellipse cx='150' cy='20' rx='4.6' ry='7' fill='%2343a047'/%3E%3Cellipse cx='210' cy='20' rx='4.6' ry='7' fill='%2342a5f5'/%3E%3C/svg%3E");
  }
  #header::before {
    z-index: 21;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='34'%3E%3Cellipse cx='30' cy='20' rx='4.6' ry='7' fill='%23ffd54f'/%3E%3Cellipse cx='90' cy='20' rx='4.6' ry='7' fill='%2366bb6a'/%3E%3Cellipse cx='150' cy='20' rx='4.6' ry='7' fill='%2364b5f6'/%3E%3Cellipse cx='210' cy='20' rx='4.6' ry='7' fill='%23ff5252'/%3E%3Cg fill='%23fff' opacity='.7'%3E%3Cellipse cx='28.5' cy='17' rx='1.3' ry='2.4'/%3E%3Cellipse cx='88.5' cy='17' rx='1.3' ry='2.4'/%3E%3Cellipse cx='148.5' cy='17' rx='1.3' ry='2.4'/%3E%3Cellipse cx='208.5' cy='17' rx='1.3' ry='2.4'/%3E%3C/g%3E%3C/svg%3E");
    filter: drop-shadow(0 0 4px rgba(255, 225, 140, .95));
    animation: xmasBlink 1.8s ease-in-out infinite alternate;
  }
}

@keyframes xmasBlink {
  0%, 35%   { opacity: 0; }
  65%, 100% { opacity: 1; }
}

/* kdo má v systému vypnuté animace, tomu světýlka svítí bez blikání */
@media (prefers-reduced-motion: reduce) {
  #header::before { animation: none; opacity: 0; }
}

/* =========================================================
   3) MOBIL – světýlka pod bílou hlavičkou
   Hlavička se na mobilu při rolování dolů schová a při rolování
   nahoru vyjede (standard Shoptetu) – světýlka jezdí s ní.
   ========================================================= */
@media (max-width: 767px) {

  /* jemný stín pod bílou hlavičkou – světýlka visí z její spodní hrany */
  .top-navigation-bar {
    box-shadow: 0 3px 10px rgba(0, 0, 0, .16);
  }

  /* drát + žárovky (::after) a druhé barvy žárovek, které blikají (::before) */
  .top-navigation-bar::after,
  .top-navigation-bar::before {
    content: "";
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    margin-top: -2px;  /* horní hrana obloučků drátu = spodní hrana bílé hlavičky */
    height: 26px;
    background-repeat: repeat-x;
    background-position: center top;
    background-size: 180px 26px;   /* menší než na desktopu */
    pointer-events: none;
    z-index: 2;
  }
  .top-navigation-bar::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='34'%3E%3Cpath d='M0 3Q30 17 60 3T120 3T180 3T240 3' fill='none' stroke='%231d3b26' stroke-width='1.6'/%3E%3Cg fill='%231d3b26'%3E%3Crect x='27.5' y='8.5' width='5' height='5' rx='1'/%3E%3Crect x='87.5' y='8.5' width='5' height='5' rx='1'/%3E%3Crect x='147.5' y='8.5' width='5' height='5' rx='1'/%3E%3Crect x='207.5' y='8.5' width='5' height='5' rx='1'/%3E%3C/g%3E%3Cellipse cx='30' cy='20' rx='4.6' ry='7' fill='%23e53935'/%3E%3Cellipse cx='90' cy='20' rx='4.6' ry='7' fill='%23ffc23c'/%3E%3Cellipse cx='150' cy='20' rx='4.6' ry='7' fill='%2343a047'/%3E%3Cellipse cx='210' cy='20' rx='4.6' ry='7' fill='%2342a5f5'/%3E%3C/svg%3E");
  }
  .top-navigation-bar::before {
    z-index: 3;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='34'%3E%3Cellipse cx='30' cy='20' rx='4.6' ry='7' fill='%23ffd54f'/%3E%3Cellipse cx='90' cy='20' rx='4.6' ry='7' fill='%2366bb6a'/%3E%3Cellipse cx='150' cy='20' rx='4.6' ry='7' fill='%2364b5f6'/%3E%3Cellipse cx='210' cy='20' rx='4.6' ry='7' fill='%23ff5252'/%3E%3Cg fill='%23fff' opacity='.7'%3E%3Cellipse cx='28.5' cy='17' rx='1.3' ry='2.4'/%3E%3Cellipse cx='88.5' cy='17' rx='1.3' ry='2.4'/%3E%3Cellipse cx='148.5' cy='17' rx='1.3' ry='2.4'/%3E%3Cellipse cx='208.5' cy='17' rx='1.3' ry='2.4'/%3E%3C/g%3E%3C/svg%3E");
    filter: drop-shadow(0 0 3px rgba(255, 225, 140, .95));
    animation: xmasBlink 1.8s ease-in-out infinite alternate;
  }

  /* +18 px mezera pod hlavičkou, aby světýlka nezasahovala do banneru.
     border místo paddingu = nepřepisuje padding, který si nastavuje Shoptet. */
  .overall-wrapper {
    border-top: 18px solid transparent;
  }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .top-navigation-bar::before { animation: none; opacity: 0; }
}
