:root {
  --mm-bg: #050816;
  --mm-panel: rgba(15, 23, 42, 0.72);
  --mm-panel-2: rgba(30, 41, 59, 0.62);
  --mm-border: rgba(148, 163, 184, 0.14);
  --mm-border-hover: rgba(56, 189, 248, 0.42);
  --mm-text: #e5edf8;
  --mm-muted: #94a3b8;
  --mm-blue: #38bdf8;
  --mm-green: #34d399;
  --mm-yellow: #fbbf24;
  --mm-red: #fb7185;
  --mm-purple: #c084fc;
}

body {
  background:
    radial-gradient(circle at 15% 15%, rgba(56, 189, 248, 0.13), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(192, 132, 252, 0.12), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(52, 211, 153, 0.08), transparent 30%),
    linear-gradient(135deg, #050816 0%, #0f172a 52%, #111827 100%) !important;
  color: var(--mm-text) !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

/* Contenedor general */
#page_container,
main {
  max-width: 1320px !important;
  margin: 0 auto !important;
}

/* Barra superior de widgets */
#information-widgets,
.information-widgets {
  background: rgba(15, 23, 42, 0.36) !important;
  border: 1px solid var(--mm-border) !important;
  border-radius: 22px !important;
  padding: 16px 18px !important;
  backdrop-filter: blur(18px) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24) !important;
}

/* Buscador */
input[type="text"],
input[type="search"] {
  background: rgba(15, 23, 42, 0.72) !important;
  border: 1px solid var(--mm-border) !important;
  color: var(--mm-text) !important;
  border-radius: 14px !important;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.16) !important;
}

input[type="text"]:focus,
input[type="search"]:focus {
  border-color: rgba(56, 189, 248, 0.55) !important;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.11) !important;
}

/* Títulos de grupos */
.group-title,
h2,
h3 {
  color: var(--mm-text) !important;
  letter-spacing: -0.03em !important;
  font-weight: 700 !important;
}

/* Tarjetas */
.service-card,
.bookmark-card,
li[class*="service"],
a[class*="service"],
a[href] {
  transition: all 0.22s ease !important;
}

/* Servicios */
li[class*="service"] > a,
a[class*="service-card"],
.service-card {
  background:
    linear-gradient(135deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.7)) !important;
  border: 1px solid var(--mm-border) !important;
  border-radius: 18px !important;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: blur(18px) !important;
  overflow: hidden !important;
  position: relative !important;
}

/* Efecto lateral */
li[class*="service"] > a::before,
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--mm-blue), var(--mm-purple));
  opacity: 0;
  transition: opacity 0.22s ease;
}

/* Hover */
li[class*="service"] > a:hover,
a[class*="service-card"]:hover,
.service-card:hover {
  transform: translateY(-4px) scale(1.01) !important;
  border-color: var(--mm-border-hover) !important;
  background:
    linear-gradient(135deg, rgba(51, 65, 85, 0.86), rgba(15, 23, 42, 0.78)) !important;
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.30),
    0 0 32px rgba(56, 189, 248, 0.10) !important;
}

li[class*="service"] > a:hover::before,
.service-card:hover::before {
  opacity: 1;
}

/* Iconos */
img {
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.28));
}

/* Texto secundario */
.description,
.text-theme-500,
.text-theme-600,
.text-theme-700 {
  color: var(--mm-muted) !important;
}

/* Bookmarks */
.bookmark-card,
div[class*="bookmark"] a {
  border-radius: 14px !important;
  background: rgba(15, 23, 42, 0.58) !important;
  border: 1px solid var(--mm-border) !important;
}

.bookmark-card:hover,
div[class*="bookmark"] a:hover {
  border-color: rgba(56, 189, 248, 0.35) !important;
  background: rgba(30, 41, 59, 0.82) !important;
  transform: translateY(-2px) !important;
}

/* Separadores y panels */
hr {
  border-color: rgba(148, 163, 184, 0.16) !important;
}

/* Scrollbar premium */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.45);
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.28);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.45);
}

/* Marca visual abajo */
body::after {
  content: "MisterMingua Homelab · Tailscale · Docker · Linux";
  position: fixed;
  right: 22px;
  bottom: 14px;
  font-size: 11px;
  color: rgba(148, 163, 184, 0.55);
  letter-spacing: 0.04em;
  z-index: 50;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
  body::after {
    display: none;
  }

  #information-widgets,
  .information-widgets {
    border-radius: 16px !important;
  }

  li[class*="service"] > a,
  .service-card {
    border-radius: 16px !important;
  }
}
