/* Halfmoon UI inspired dark dashboard theme overlay for ServerList101 */
:root[data-theme="halfmoon"],
[data-theme="halfmoon"] {
  --bg-dark: #0c1017;
  --bg-card: #161b22;
  --bg-card-hover: #1f242c;
  --bg-card-secondary: #0d1117;
  --border-color: #30363d;
  --border-highlight: #484f58;
  --text-main: #f0f6fc;
  --text-muted: #8b949e;
  --text-dim: #6e7681;
  --brand-red: #e53935;
  --brand-red-hover: #f85149;
  --accent-green: #238636;
  --accent-green-hover: #2ea043;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-full: 9999px;
  --transition: all 0.15s cubic-bezier(0.3, 0, 0.5, 1);
}

[data-theme="halfmoon"] .server-row-card {
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-theme="halfmoon"] .server-row-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, #da3633 0%, #238636 100%);
  opacity: 0.35;
  transition: opacity 0.25s ease, width 0.25s ease;
}

[data-theme="halfmoon"] .server-row-card:hover {
  background: var(--bg-card-hover);
  border-color: #58a6ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(88, 166, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="halfmoon"] .server-row-card:hover::before {
  opacity: 1;
  width: 4px;
}

[data-theme="halfmoon"] .server-row-card.vip-card {
  border: 1px solid rgba(245, 158, 11, 0.6);
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.12) 0%, var(--bg-card) 35%);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15), inset 0 1px 0 rgba(245, 158, 11, 0.2);
}

[data-theme="halfmoon"] .server-row-card.vip-card::before {
  background: linear-gradient(180deg, #f59e0b 0%, #fbbf24 100%);
  opacity: 0.85;
}

[data-theme="halfmoon"] .server-row-card.vip-card:hover {
  border-color: rgba(245, 158, 11, 0.95);
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.3), 0 0 20px rgba(245, 158, 11, 0.25);
  transform: translateY(-3px);
}

@keyframes halfmoon-pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 160, 67, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(46, 160, 67, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 160, 67, 0); }
}

[data-theme="halfmoon"] .online-status-dot,
[data-theme="halfmoon"] .status-dot.online {
  animation: halfmoon-pulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

[data-theme="halfmoon"] .btn {
  border-radius: 6px;
  font-weight: 500;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

[data-theme="halfmoon"] .btn-primary {
  background: #da3633;
  border-color: #f85149;
  color: #ffffff;
}

[data-theme="halfmoon"] .btn-primary:hover {
  box-shadow: 0 0 16px rgba(218, 54, 51, 0.45);
  transform: translateY(-1px);
}

[data-theme="halfmoon"] .btn-green {
  background: #238636;
  border-color: #2ea043;
  color: #ffffff;
}

[data-theme="halfmoon"] .btn-green:hover {
  box-shadow: 0 0 16px rgba(35, 134, 54, 0.45);
  transform: translateY(-1px);
}

[data-theme="halfmoon"] .tag-pill {
  border-radius: 6px;
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color);
  font-size: 0.8rem;
  padding: 0.35rem 0.7rem;
  transition: all 0.2s ease;
}

[data-theme="halfmoon"] .tag-pill:hover {
  border-color: #58a6ff;
  box-shadow: 0 0 10px rgba(88, 166, 255, 0.2);
}

[data-theme="halfmoon"] .sidebar-box {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
