/* =====================================
   99 – UTILITIES
   Theme: soundreportV2
   - Keep overrides & page-specific utilities here
===================================== */


/* =====================================
   404 – SPOOKY VERSION (error404 only)
   Notes:
   - We intentionally style only via body.error404
   - Keeps rest of the site untouched
===================================== */

body.error404{
  background:
    radial-gradient(900px 420px at 20% 10%, rgba(255,255,255,0.08), transparent 60%),
    radial-gradient(700px 420px at 80% 20%, rgba(255,255,255,0.06), transparent 60%),
    linear-gradient(180deg, #070709 0%, #0b0b0c 45%, #070709 100%);
  color: rgba(255,255,255,0.92);
}

/* Hide the main nav row on 404 (keep top row if you want search/brand) */
body.error404 .sr-header-navrow{
  display: none !important;
}

/* Make header blend into the mood */
body.error404 .sr-site-header{
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

/* Layout container */
body.error404 .sr-404{
  max-width: 1180px;
  margin: 0 auto;
  padding: 60px 20px 80px;
  text-align: center;
}

/* Text block */
body.error404 .sr-404-card{
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 26px 22px;
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
  margin: 0 auto 18px;
  max-width: 900px;
}

body.error404 .sr-404-text{
  margin: 0;
  font-size: 18px;
  line-height: 1.65;
  opacity: .92;
  color: rgba(255,255,255,0.90);
}

body.error404 .sr-404-text strong{
  color: #fff;
}

/* Image */
body.error404 .sr-404-image{
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.10);
  margin: 18px auto 0;
  max-width: 980px;
}

body.error404 .sr-404-image img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.9) brightness(0.92);
}

/* Global link hover on 404 = orange accent */
body.error404 a{
  color: rgba(255,255,255,0.90);
}

body.error404 a:hover{
  color: var(--sr-accent);
}

/* CTA: "Saznaj više" */
body.error404 .sr-404-more{
  margin: 16px 0 22px;
}

body.error404 .sr-404-morelink{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: .02em;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.35);
  box-shadow: 0 14px 36px rgba(0,0,0,0.45);
  backdrop-filter: blur(10px);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

body.error404 .sr-404-morelink:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.28);
  background: rgba(0,0,0,0.45);
  /* color hover already handled globally via body.error404 a:hover */
}

/* Search input: double height */
body.error404 .sr-404-search{
  max-width: 680px;
  margin: 18px auto 16px;
}

body.error404 .sr-404-input{
  width: 100%;
  height: 92px;                 /* duplo */
  font-size: 18px;
  padding: 0 22px;
  border-radius: 18px;
  background: rgba(0,0,0,0.38);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.92);
}

body.error404 .sr-404-input::placeholder{
  color: rgba(255,255,255,0.55);
}

body.error404 .sr-404-input:focus{
  outline: none;
  border-color: rgba(255,255,255,0.30);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.08);
}

/* Categories: spaced “pill tags” */
body.error404 .sr-404-cats{
  margin-top: 16px;
}

body.error404 .sr-404-cats-inner{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

body.error404 .sr-404-cat{
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.25);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(0,0,0,0.35);
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

body.error404 .sr-404-cat:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.28);
  background: rgba(0,0,0,0.35);
  /* color hover already handled globally via body.error404 a:hover */
}

/* Mobile tweaks */
@media (max-width: 700px){
  body.error404 .sr-404{
    padding: 48px 16px 70px;
  }

  body.error404 .sr-404-text{
    font-size: 16px;
  }

  body.error404 .sr-404-input{
    height: 76px;
    font-size: 16px;
  }

  body.error404 .sr-404-morelink{
    width: 100%;
    max-width: 360px;
  }
}
