/* =========================================================
   websitemaker.hu · bemutató oldal jelzése
   Minden sablon alján egy kis, fix kapszula: jelzi, hogy ez
   bemutató oldal (showcase), és választható sablon, visszavisz
   a főoldalra, és az ajánlatkérőre visz az „Ilyet kérek”.

   Szándékosan egyszerű: tömör háttér (nincs backdrop-filter),
   nincs becsúszó animáció, csak egy rövid elhalványuló belépés.
   A rétegsorrend (--wm-z) oldalanként más, hogy a sablon saját
   menüje, nagyítója és betöltője mindig fölötte maradjon.
   ========================================================= */

.wm-sc {
  --wm-z: 80;
  --wm-bottom: 16px;
  --wm-left: 16px;
  position: fixed;
  left: calc(var(--wm-left) + env(safe-area-inset-left));
  bottom: calc(var(--wm-bottom) + env(safe-area-inset-bottom));
  z-index: var(--wm-z);
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: calc(100vw - 2 * var(--wm-left));
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgb(16, 30, 42);
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.55);
  color: #eef1ef;
  font: 500 12.5px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.wm-sc.is-on { opacity: 1; }
.wm-sc *, .wm-sc *::before, .wm-sc *::after { box-sizing: border-box; }

.wm-sc a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.wm-sc a:focus-visible { outline: 2px solid #e6d2ae; outline-offset: 2px; }

.wm-sc__home svg { width: 14px; height: 14px; flex: none; }
.wm-sc__home:hover { background: rgba(255, 255, 255, 0.09); }

.wm-sc__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px 0 6px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  color: #b9c8d1;
  white-space: nowrap;
}
.wm-sc__label b { color: #e6d2ae; font-weight: 600; }
.wm-sc__label i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.6; }

.wm-sc__cta { background: #e6d2ae; color: #10293c !important; font-weight: 600; }
.wm-sc__cta:hover { background: #f2e4c8; }

/* Kis képernyőn a „websitemaker.hu” felirat helyett csak a nyíl marad */
@media (max-width: 600px) {
  .wm-sc { font-size: 11.5px; --wm-left: 12px; --wm-bottom: 12px; }
  .wm-sc a { min-height: 32px; padding: 0 10px; }
  .wm-sc__home-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .wm-sc__home { padding: 0 9px; }
  .wm-sc__label { padding: 0 6px 0 8px; gap: 5px; }
}
@media (max-width: 359px) {
  .wm-sc__label i, .wm-sc__label span { display: none; }
}

/* Visszajelzés, ha mintaadatra (telefon, e-mail) kattintanak */
.wm-sc-note {
  position: fixed;
  left: calc(var(--wm-left, 16px) + env(safe-area-inset-left));
  bottom: calc(var(--wm-bottom, 16px) + 52px + env(safe-area-inset-bottom));
  z-index: var(--wm-z, 80);
  max-width: min(340px, calc(100vw - 24px));
  padding: 11px 14px;
  border-radius: 12px;
  background: rgb(16, 30, 42);
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.55);
  color: #eef1ef;
  font: 400 13px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.wm-sc-note.is-on { opacity: 1; }

/* Oldalankénti hangolás: a sablon saját fix rétegei fölött ne legyen */
.wm-sc[data-site="autokozmetika"], .wm-sc-note[data-site="autokozmetika"] { --wm-z: 54; }
.wm-sc[data-site="tetovalo"], .wm-sc-note[data-site="tetovalo"] { --wm-z: 650; }
.wm-sc[data-site="mukorom"], .wm-sc-note[data-site="mukorom"] { --wm-z: 85; }

/* Az autókozmetika mobilos gyorsgomb-sávja (.mbar) az alján ül */
@media (max-width: 900px) {
  .wm-sc[data-site="autokozmetika"], .wm-sc-note[data-site="autokozmetika"] { --wm-bottom: 82px; }
}
/* A tetováló oldal saját egérkurzora fölött se tűnjön el a mutató */
html.cursor-on .wm-sc a { cursor: none; }

@media (prefers-reduced-motion: reduce) {
  .wm-sc, .wm-sc-note { transition: none; }
}
@media print { .wm-sc, .wm-sc-note { display: none; } }
