/* Homepage glass styling — clean reset. */

/* Light mode: transparent frosted cards over the background. */
.service-card,
.bookmark a,
#information-widgets,
dialog {
  background: rgba(255, 255, 255, 0.38) !important;
  border: 1px solid rgba(255, 255, 255, 0.32) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.10) !important;
  backdrop-filter: blur(22px) saturate(145%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(145%) !important;
}

.service-card:hover,
.bookmark a:hover {
  background: rgba(255, 255, 255, 0.48) !important;
  border-color: rgba(255, 255, 255, 0.44) !important;
}

/* Readable text in light mode. */
.service-name,
.bookmark-name,
.service-description,
.bookmark-description,
#information-widgets,
#information-widgets * {
  color: rgba(15, 23, 42, 0.94) !important;
  text-shadow: none !important;
}

/* Section headers: white, per preference. */
.service-group-name,
.bookmark-group-name {
  color: rgba(255, 255, 255, 0.96) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.42) !important;
  font-weight: 600 !important;
}

/* Dark mode: dark transparent frosted cards. */
html.dark .service-card,
html.dark .bookmark a,
html.dark #information-widgets,
html.dark dialog,
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .bookmark a,
html[data-theme="dark"] #information-widgets,
html[data-theme="dark"] dialog,
body.dark .service-card,
body.dark .bookmark a,
body.dark #information-widgets,
body.dark dialog {
  background: rgba(15, 23, 42, 0.38) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18) !important;
  backdrop-filter: blur(22px) saturate(145%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(145%) !important;
}

html.dark .service-card:hover,
html.dark .bookmark a:hover,
html[data-theme="dark"] .service-card:hover,
html[data-theme="dark"] .bookmark a:hover,
body.dark .service-card:hover,
body.dark .bookmark a:hover {
  background: rgba(15, 23, 42, 0.50) !important;
  border-color: rgba(255, 255, 255, 0.20) !important;
}

html.dark .service-name,
html.dark .bookmark-name,
html.dark .service-description,
html.dark .bookmark-description,
html.dark #information-widgets,
html.dark #information-widgets *,
html[data-theme="dark"] .service-name,
html[data-theme="dark"] .bookmark-name,
html[data-theme="dark"] .service-description,
html[data-theme="dark"] .bookmark-description,
html[data-theme="dark"] #information-widgets,
html[data-theme="dark"] #information-widgets *,
body.dark .service-name,
body.dark .bookmark-name,
body.dark .service-description,
body.dark .bookmark-description,
body.dark #information-widgets,
body.dark #information-widgets * {
  color: rgba(248, 250, 252, 0.94) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35) !important;
}

/* Good contrast for any remaining pills/chips. */
.service-card [class*="rounded-full"],
.service-card [class*="rounded-md"][class*="text-xs"] {
  background: rgba(15, 23, 42, 0.82) !important;
  color: rgba(255, 255, 255, 0.96) !important;
  text-shadow: none !important;
}

/* Hide bottom refresh/revalidate control. */
button[title*="Refresh"],
button[title*="refresh"],
button[aria-label*="Refresh"],
button[aria-label*="refresh"],
button[title*="Revalidate"],
button[title*="revalidate"],
button[aria-label*="Revalidate"],
button[aria-label*="revalidate"],
a[title*="Refresh"],
a[title*="refresh"],
a[aria-label*="Refresh"],
a[aria-label*="refresh"],
.fixed.bottom-4.right-4,
.fixed.bottom-5.right-5,
.fixed.bottom-6.right-6,
[class*="bottom-4"][class*="right-4"] button,
[class*="bottom-5"][class*="right-5"] button,
[class*="bottom-6"][class*="right-6"] button {
  display: none !important;
}
