/* Raze Bot — shared styles */

.bg-grid {
  background-color: #000;
  background-image:
    radial-gradient(ellipse 120% 70% at 50% -8%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.06) 28%, transparent 62%),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 72px 72px, 72px 72px;
  background-attachment: fixed, scroll, scroll;
}

/* Sleek black-themed scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) #000;
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #000;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  border: 2px solid #000;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
}
::-webkit-scrollbar-corner {
  background: #000;
}

.glass-card {
  background-color: rgba(23, 23, 23, 0.4);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-sidebar {
  background-color: rgba(23, 23, 23, 0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bloom {
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05), 0 0 40px rgba(255, 255, 255, 0.03);
}
.bloom:hover {
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.08), 0 0 50px rgba(255, 255, 255, 0.05);
}

.mascot-glow {
  filter: drop-shadow(0 0 80px rgba(255, 255, 255, 0.25));
}

.btn-primary {
  background-image: linear-gradient(110deg, #fff 0%, #f5f5f5 18%, #a3a3a3 38%, #525252 50%, #a3a3a3 62%, #f5f5f5 82%, #fff 100%);
  background-size: 200% 100%;
  background-position: 0% 50%;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.08), 0 0 35px rgba(255, 255, 255, 0.04);
  transition: background-position 0.55s ease, box-shadow 0.35s ease, color 0.35s ease;
}
.btn-primary:hover {
  background-position: 100% 50%;
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.12), 0 0 45px rgba(255, 255, 255, 0.07);
}

.nav-active {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.code-block {
  overflow-x: auto;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.55);
  padding: 0.875rem 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #e4e4e7;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.command-card:hover {
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.09), 0 0 55px rgba(255, 255, 255, 0.05);
}

.category-scroll::-webkit-scrollbar {
  width: 4px;
}
.category-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.category-btn { gap: 0.625rem; }
.category-btn .category-icon {
  flex-shrink: 0;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}
.category-btn:hover .category-icon,
.category-btn.is-active .category-icon { opacity: 1; }
.category-btn.is-active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.sidebar-link {
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.sidebar-link.is-active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.status-dot {
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
}

.uptime-bar {
  background: rgba(74, 222, 128, 0.85);
  border-radius: 2px;
}

.discord-embed {
  border-left: 4px solid var(--embed-color, #5865f2);
  background: #2b2d31;
  border-radius: 0 4px 4px 0;
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary { transition: box-shadow 0.2s ease; }
  .btn-primary:hover { background-position: 0% 50%; }
}
