/* Dark mode: swap to white-text logo on homepage */
@media (prefers-color-scheme: dark) {
  .title {
    background-image: url(/static/themes/simple/img/searxng-dark.png) !important;
  }
  img.logo {
    opacity: 0 !important;
  }
  a:has(> img.logo) {
    display: inline-block !important;
    background: url(/static/themes/simple/img/searxng-dark.png) no-repeat center / contain !important;
  }
}

/* Also handle explicit dark theme */
.theme-dark .title {
  background-image: url(/static/themes/simple/img/searxng-dark.png) !important;
}
.theme-dark img.logo {
  opacity: 0 !important;
}
.theme-dark a:has(> img.logo) {
  display: inline-block !important;
  background: url(/static/themes/simple/img/searxng-dark.png) no-repeat center / contain !important;
}

/* Hide preferences tabs: User Interface, Privacy, Special Queries, Cookies */
#tab-ui,
#tab-privacy,
#tab-query,
#tab-cookies,
label[for="tab-ui"],
label[for="tab-privacy"],
label[for="tab-query"],
label[for="tab-cookies"],
#tab-ui ~ .tab-content,
#tab-privacy ~ .tab-content,
#tab-query ~ .tab-content,
#tab-cookies ~ .tab-content {
  display: none !important;
}

/* ZilverNet footer branding */
.zilvernet-footer {
  text-align: center;
  padding: 8px 0 12px;
  font-size: 0.9em;
  color: #aaa;
}
.zilvernet-footer a {
  background: linear-gradient(90deg, #8b5cf6, #e44d90);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  font-weight: 600;
}
.zilvernet-footer a:hover {
  background: linear-gradient(90deg, #a47cf8, #f06daa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
