/* DGX Spark homepage theme polish */

/* Gradient backdrop */
body {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(56, 189, 248, 0.08), transparent 60%),
    radial-gradient(1000px 500px at 100% 0%, rgba(168, 85, 247, 0.08), transparent 60%),
    radial-gradient(900px 500px at 50% 110%, rgba(16, 185, 129, 0.08), transparent 60%),
    linear-gradient(180deg, #0b1020 0%, #0a0f1f 100%) !important;
  background-attachment: fixed !important;
}

/* Page container breathing room */
#page_container {
  padding-top: 1.25rem;
}

/* Group headings — accent bar on the left */
#information-widgets + div h2,
.services-group > h2,
h2.services-group {
  position: relative;
  padding-left: 0.75rem;
  letter-spacing: 0.01em;
}

#information-widgets + div h2::before,
.services-group > h2::before,
h2.services-group::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 4px;
  border-radius: 3px;
  background: linear-gradient(180deg, #38bdf8 0%, #a855f7 100%);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.45);
}

/* Service cards — glassy look, subtle hover lift */
#services .services-group .service,
.service-card,
.service {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(148, 163, 184, 0.12) !important;
  background: rgba(15, 23, 42, 0.55) !important;
  border-radius: 0.85rem !important;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

#services .services-group .service:hover,
.service-card:hover,
.service:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.45) !important;
  box-shadow: 0 10px 28px -14px rgba(56, 189, 248, 0.55);
}

/* Widget tiles */
#information-widgets .resources,
#information-widgets .information-widget,
.information-widget {
  background: rgba(15, 23, 42, 0.55) !important;
  border: 1px solid rgba(148, 163, 184, 0.12) !important;
  border-radius: 0.85rem !important;
  backdrop-filter: blur(6px);
}

/* Greeting — gradient text */
#information-widgets .greeting,
.information-widget .greeting {
  background: linear-gradient(135deg, #38bdf8 0%, #a855f7 50%, #f472b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

/* Status dot — soft green glow when running */
.status-dot[data-status="running"],
.status-dot.running,
.service-status[data-status="running"] {
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.65);
}

/* Softer description text */
.service-description {
  color: rgba(203, 213, 225, 0.75) !important;
}

/* Search bar */
#information-widgets .search-container input,
.search-bar input {
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(148, 163, 184, 0.15) !important;
  border-radius: 0.75rem !important;
}

/* ─── Hero: first group (시스템 상태) pops ───────────────────────── */
.services-group:first-of-type,
#services > div:first-of-type {
  margin-bottom: 1.25rem;
  padding: 0.5rem 0.75rem 0.75rem;
  border-radius: 1rem;
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.07), rgba(168, 85, 247, 0.05) 60%, transparent),
    rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(56, 189, 248, 0.18);
  box-shadow: 0 0 40px -20px rgba(56, 189, 248, 0.55);
}

/* Hero heading — bigger, brighter, with a glow */
.services-group:first-of-type > h2,
#services > div:first-of-type > h2 {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  padding-left: 0.9rem;
  background: linear-gradient(90deg, #38bdf8 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px rgba(56, 189, 248, 0.25);
}

.services-group:first-of-type > h2::before,
#services > div:first-of-type > h2::before {
  top: 0.45rem;
  bottom: 0.45rem;
  width: 5px;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.7);
}

/* Hero service cards — taller, brighter border, stronger hover */
.services-group:first-of-type .service-card,
#services > div:first-of-type .service-card {
  min-height: 104px;
  background: linear-gradient(160deg, rgba(56, 189, 248, 0.08), rgba(15, 23, 42, 0.65)) !important;
  border: 1px solid rgba(56, 189, 248, 0.28) !important;
  box-shadow: inset 0 0 24px -14px rgba(56, 189, 248, 0.5);
}

.services-group:first-of-type .service-card:hover,
#services > div:first-of-type .service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(125, 211, 252, 0.75) !important;
  box-shadow:
    0 14px 36px -14px rgba(56, 189, 248, 0.65),
    inset 0 0 28px -12px rgba(56, 189, 248, 0.6);
}

.services-group:first-of-type .service-name,
#services > div:first-of-type .service-name {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: rgb(226, 232, 240) !important;
}

/* Slightly larger, brighter widget values in hero */
.services-group:first-of-type .service-card .service-container,
#services > div:first-of-type .service-card .service-container {
  font-weight: 500;
}

.services-group:first-of-type .service-card .service-container [class*="text-theme"],
#services > div:first-of-type .service-card .service-container [class*="text-theme"] {
  color: rgb(240, 249, 255) !important;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.25);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.4);
}
