/* ===== Havax Homelab — Refined dark elegance ===== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg: 8, 10, 14;
  --surface: 18, 20, 27;
  --surface-2: 24, 26, 34;
  --border: 255, 255, 255, 0.045;
  --border-hover: 255, 255, 255, 0.12;
  --text: 232, 234, 240;
  --text-dim: 148, 152, 166;
  --accent: 200, 205, 215;
  --radius: 18px;
  --radius-sm: 12px;
}

* {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.011em;
}

/* Deep dark ambient overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(60, 60, 80, 0.15), transparent 70%),
    linear-gradient(180deg, rgba(8, 10, 14, 0.6) 0%, rgba(8, 10, 14, 0.92) 100%);
  pointer-events: none;
  z-index: 0;
}

#__next, main {
  position: relative;
  z-index: 1;
}

/* ===== Service Cards — glass with soft edges ===== */
.services-group .card,
#services .card {
  border-radius: var(--radius) !important;
  background: rgba(18, 20, 27, 0.68) !important;
  backdrop-filter: blur(28px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(160%) !important;
  border: 0.5px solid rgba(var(--border)) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 0 0 0.5px rgba(0, 0, 0, 0.4),
    0 4px 16px rgba(0, 0, 0, 0.3),
    0 1px 2px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  overflow: hidden;
  position: relative;
}

/* Soft top highlight (inset gloss) */
.services-group .card::before,
#services .card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  pointer-events: none;
}

.services-group .card:hover,
#services .card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--border-hover)) !important;
  background: rgba(24, 26, 34, 0.82) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 8px 28px rgba(0, 0, 0, 0.5),
    0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.services-group .card img,
#services img {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease;
}

.services-group .card:hover img {
  transform: scale(1.06);
}

.services-group .card .font-medium,
.services-group .card h2 {
  font-weight: 600 !important;
  letter-spacing: -0.015em;
  font-size: 0.92rem;
  color: rgba(var(--text)) !important;
}

.services-group .card .text-xs {
  color: rgba(var(--text-dim)) !important;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0;
  line-height: 1.35;
}

/* ===== Group headers — refined typography ===== */
#services > div > div > div.font-medium,
#services h2 {
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: rgba(var(--text-dim), 0.85) !important;
  border-bottom: none !important;
  padding: 0 0 0.5rem 0.1rem !important;
  margin-bottom: 0.6rem !important;
}

/* ===== Information widgets ===== */
#information-widgets {
  padding: 1.5rem 0 2rem 0;
  gap: 0.9rem;
}

#information-widgets > div,
#information-widgets .bg-theme-200\/50,
#information-widgets .bg-white\/50 {
  background: rgba(18, 20, 27, 0.68) !important;
  backdrop-filter: blur(28px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(160%) !important;
  border: 0.5px solid rgba(var(--border)) !important;
  border-radius: var(--radius) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 4px 16px rgba(0, 0, 0, 0.3) !important;
  padding: 0.9rem 1.15rem !important;
}

/* Greeting: elegant silver gradient */
#information-widgets .font-semibold,
#information-widgets h1 {
  background: linear-gradient(180deg,
    rgba(248, 250, 252, 1) 0%,
    rgba(148, 163, 184, 0.85) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600 !important;
  letter-spacing: -0.025em;
}

/* Resource bars — monochrome refined */
#information-widgets .h-1 {
  height: 2px !important;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.04) !important;
  overflow: hidden;
}

#information-widgets .h-1 > div {
  background: linear-gradient(90deg, rgba(200, 205, 215, 0.9), rgba(148, 163, 184, 0.7)) !important;
  border-radius: 2px;
}

/* Resource labels */
#information-widgets .text-xs,
#information-widgets .text-sm {
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ===== Search bar ===== */
#information-widgets input {
  background: rgba(18, 20, 27, 0.7) !important;
  border: 0.5px solid rgba(var(--border)) !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.65rem 1rem !important;
  font-weight: 400;
  color: rgba(var(--text)) !important;
  transition: all 0.2s ease;
}

#information-widgets input::placeholder {
  color: rgba(var(--text-dim), 0.6) !important;
}

#information-widgets input:focus {
  border-color: rgba(255, 255, 255, 0.2) !important;
  background: rgba(24, 26, 34, 0.85) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04) !important;
  outline: none !important;
}

/* ===== Status dots — subtle but visible ===== */
.status-dot-success,
div[class*="bg-green-"] {
  background-color: rgb(52, 211, 153) !important;
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.18), 0 0 6px rgba(52, 211, 153, 0.35);
}
.status-dot-error,
div[class*="bg-red-"] {
  background-color: rgb(248, 113, 113) !important;
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.18), 0 0 6px rgba(248, 113, 113, 0.4);
}

/* ===== Bookmarks ===== */
.bookmark-text-container,
#bookmarks .card {
  background: rgba(18, 20, 27, 0.68) !important;
  backdrop-filter: blur(28px) saturate(160%) !important;
  border: 0.5px solid rgba(var(--border)) !important;
  border-radius: var(--radius-sm) !important;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bookmark-text-container:hover,
#bookmarks .card:hover {
  border-color: rgba(var(--border-hover)) !important;
  background: rgba(24, 26, 34, 0.82) !important;
  transform: translateY(-1px);
}

.bookmark-text {
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: rgba(var(--text)) !important;
  border-radius: 7px !important;
  border: 0.5px solid rgba(var(--border));
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.15);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.3);
}

.version { display: none !important; }
