/* ============================================================
   skinspecialist.cz / bioby.cz — ss-404-2.css — v2
   PRODUCTION CSS for Shoptet 404 page

   Pairs with: ss-404-2.js v2 (kanonická "SPF" verze, sjednocuje obě domény)

   ARCHITECTURE — REPLACE PATTERN (matches ss-category-19.css):
   - Body has class `in-404` natively on Shoptet 404 (any non-existent URL).
   - JS detects this, builds .ss-404-root fresh DOM, adds .ss-404-loaded
     class to body. CSS class gate then hides native chrome.
   - Graceful: if JS fails, .ss-404-loaded never added, native stays visible.

   Tokens (--ss-canvas, --ss-sage, --ss-terracotta, etc.) inherited from
   style.css?v=11.

   Compatible with: ss-404-1.js v1+
   ============================================================ */


/* ============================================================
   1) HIDE NATIVE — class gate (only fires after JS adds .ss-404-loaded)
   We hide the WHOLE #content-wrapper (everything between header and
   footer), because our .ss-404-root is inserted as its SIBLING.
   This avoids the layout offset that comes from the native main column
   keeping space allocated for the (now hidden) left sidebar.
   ============================================================ */
body.in-404.ss-404-loaded #content-wrapper,
body.in-404.ss-404-loaded .breadcrumbs-wrapper {
  display: none !important;
}


/* ============================================================
   2) ROOT CONTAINER — full-bleed editorial canvas with gradients
   ============================================================ */
.ss-404-root {
  position: relative;
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: clamp(64px, 8vw, 120px) clamp(16px, 2vw, 32px);
  overflow: hidden;
  /* Atmosferic background: warm SPF/sun glow top-right + cool sage bottom-left */
  background:
    radial-gradient(ellipse 70% 55% at 92% -8%, rgba(154, 122, 95, .16), transparent 62%),
    radial-gradient(ellipse 72% 60% at 4% 110%, rgba(107, 139, 133, .08), transparent 60%),
    var(--ss-canvas, #F2EBDB);
  /* Full-bleed escape from any parent max-width container */
  width: 100vw;
  margin-left: calc(50% - 50vw);
}


/* ============================================================
   3) GIANT "404" WATERMARK — refined editorial signature
   ============================================================ */
.ss-404-root .ss-404-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--ss-serif, 'Luxury Rigane', Georgia, 'Times New Roman', serif);
  font-style: normal;
  font-weight: 300;
  font-size: clamp(260px, 36vw, 540px);
  line-height: .85;
  letter-spacing: -.04em;
  color: var(--ss-sage, #6B8B85);
  opacity: .10;
  user-select: none;
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
  text-align: center;
  animation: ss-404-mark-in 1.4s cubic-bezier(.4, 0, .2, 1) .15s both;
}


/* ============================================================
   4) CONTENT STACK — eyebrow + headline + joke + actions + help
   ============================================================ */
.ss-404-root .ss-404-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  padding: 0 8px;
}

.ss-404-root .ss-404-eyebrow {
  display: block;
  font-family: var(--ss-sans, 'Manrope', -apple-system, sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ss-sage, #6B8B85);
  margin: 0 0 32px;
  animation: ss-404-fade-in .7s cubic-bezier(.4, 0, .2, 1) .3s both;
}

.ss-404-root .ss-404-headline {
  font-family: var(--ss-serif, 'Luxury Rigane', Georgia, serif);
  font-weight: 300;
  font-size: clamp(44px, 5.6vw, 78px);
  line-height: 1.02;
  letter-spacing: -.025em;
  color: var(--ss-black, #0F0F0F);
  margin: 0 0 36px;
  text-wrap: balance;
  animation: ss-404-fade-in .85s cubic-bezier(.4, 0, .2, 1) .45s both;
}
.ss-404-root .ss-404-headline em {
  font-style: italic;
  font-weight: 300;
  color: var(--ss-terracotta, #9A7A5F);
}

.ss-404-root .ss-404-joke {
  font-family: var(--ss-sans, 'Manrope', -apple-system, sans-serif);
  font-size: clamp(17px, 1.4vw, 19.5px);
  line-height: 1.55;
  color: rgba(15, 15, 15, .82);
  max-width: 540px;
  margin: 0 auto 48px;
  text-wrap: balance;
  animation: ss-404-fade-in .75s cubic-bezier(.4, 0, .2, 1) .6s both;
}


/* ============================================================
   5) ACTIONS — primary (black -> terracotta) + secondary (sage outline)
   ============================================================ */
.ss-404-root .ss-404-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  animation: ss-404-fade-in .75s cubic-bezier(.4, 0, .2, 1) .78s both;
}

.ss-404-root .ss-404-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 17px 30px;
  font-family: var(--ss-sans, 'Manrope', -apple-system, sans-serif);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--ss-r, 6px);
  white-space: nowrap;
  /* Explicit transition list — never `transition: all` (BASELINE rule) */
  transition:
    background-color .35s cubic-bezier(.4, 0, .2, 1),
    color .35s cubic-bezier(.4, 0, .2, 1),
    border-color .35s cubic-bezier(.4, 0, .2, 1),
    box-shadow .45s cubic-bezier(.4, 0, .2, 1),
    gap .35s cubic-bezier(.4, 0, .2, 1);
}

.ss-404-root .ss-404-cta--primary {
  background: var(--ss-black, #0F0F0F);
  color: #FAF6EE;
  border: 1px solid var(--ss-black, #0F0F0F);
  box-shadow: 0 1px 0 rgba(15, 15, 15, .04);
}
.ss-404-root .ss-404-cta--primary:hover {
  background: var(--ss-terracotta-deep, #7E6248);
  border-color: var(--ss-terracotta-deep, #7E6248);
  gap: 22px;
  /* Warm "sun" glow — micro brand moment tied to SPF joke */
  box-shadow:
    0 12px 36px rgba(154, 122, 95, .28),
    0 1px 0 rgba(15, 15, 15, .04);
}

.ss-404-root .ss-404-cta--secondary {
  background: transparent;
  color: var(--ss-sage-deep, #5A7E78);
  border: 1px solid rgba(107, 139, 133, .55);
}
.ss-404-root .ss-404-cta--secondary:hover {
  background: var(--ss-sage, #6B8B85);
  border-color: var(--ss-sage, #6B8B85);
  color: #FAF6EE;
}

.ss-404-root .ss-404-cta:focus-visible {
  outline: 2px solid var(--ss-terracotta-deep, #7E6248);
  outline-offset: 3px;
}

.ss-404-root .ss-404-arrow {
  width: 18px;
  height: 1px;
  background: #FAF6EE;
  position: relative;
  transition: width .35s cubic-bezier(.4, 0, .2, 1);
}
.ss-404-root .ss-404-arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-right: 1px solid #FAF6EE;
  border-top: 1px solid #FAF6EE;
  transform: rotate(45deg);
}
.ss-404-root .ss-404-cta--primary:hover .ss-404-arrow {
  width: 26px;
}


/* ============================================================
   6) HELP — muted nudge with Tamara link
   ============================================================ */
.ss-404-root .ss-404-help {
  font-family: var(--ss-sans, 'Manrope', -apple-system, sans-serif);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ss-muted, rgba(15, 15, 15, .62));
  margin: 44px auto 0;
  max-width: 460px;
  text-wrap: balance;
  animation: ss-404-fade-in .75s cubic-bezier(.4, 0, .2, 1) .95s both;
}
.ss-404-root .ss-404-help a {
  color: var(--ss-terracotta-deep, #7E6248);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  white-space: nowrap;
  transition: color .25s cubic-bezier(.4, 0, .2, 1);
}
.ss-404-root .ss-404-help a:hover {
  color: var(--ss-black, #0F0F0F);
}
.ss-404-root .ss-404-help a:focus-visible {
  outline: 2px solid var(--ss-terracotta-deep, #7E6248);
  outline-offset: 3px;
  border-radius: 2px;
}


/* ============================================================
   7) ANIMATIONS — orchestrated editorial reveal
   ============================================================ */
@keyframes ss-404-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes ss-404-mark-in {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: .10; transform: scale(1); }
}


/* ============================================================
   8) RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .ss-404-root {
    padding: 72px 18px 56px;
    min-height: 65vh;
  }
  .ss-404-root .ss-404-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  .ss-404-root .ss-404-cta {
    justify-content: center;
  }
  .ss-404-root .ss-404-mark {
    font-size: clamp(180px, 56vw, 320px);
  }
}


/* ============================================================
   9) REDUCED MOTION — vestibular safety
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .ss-404-root .ss-404-eyebrow,
  .ss-404-root .ss-404-headline,
  .ss-404-root .ss-404-joke,
  .ss-404-root .ss-404-actions,
  .ss-404-root .ss-404-help {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .ss-404-root .ss-404-mark {
    animation: none !important;
    opacity: .10 !important;
    transform: none !important;
  }
  .ss-404-root .ss-404-cta {
    transition: none !important;
  }
}
