/* ===================================================================
   Dark Witch Gaming Theme
   Purple/Cyan Gradient, Glassmorphism, Glow Effects
   =================================================================== */

/* ===================================================================
   BODY BACKGROUND - Radial Gradients
   =================================================================== */

body {
  background: var(--color-background-primary);

  /* Subtle radial gradients for depth */
  background-image:
    radial-gradient(ellipse at top, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* ===================================================================
   GLASSMORPHISM EFFECT
   =================================================================== */

.glass {
  background: var(--color-background-glass);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass); /* Safari support */
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(12px)) {
  .glass {
    background: rgba(15, 23, 42, 0.95);
  }
}

/* ===================================================================
   GRADIENT TEXT
   =================================================================== */

.gradient-text {
  background: var(--color-accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===================================================================
   GLOW EFFECT
   =================================================================== */

.glow {
  box-shadow: var(--shadow-glow);
}

/* ===================================================================
   WITCH ACCENT - Gradient Glow Behind Element
   =================================================================== */

.witch-accent {
  position: relative;
}

.witch-accent::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--color-accent-gradient);
  border-radius: inherit;
  opacity: 0.2;
  filter: blur(8px);
  z-index: -1;
}

/* ===================================================================
   CTA BUTTON - Primary Call-to-Action
   =================================================================== */

.cta-button {
  background: var(--color-accent-gradient);
  color: var(--color-white);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-semibold);
  box-shadow: var(--shadow-glow);
  transition: transform var(--transition-base) ease,
              box-shadow var(--transition-base) ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

.cta-button:active {
  transform: translateY(0);
}

/* CTA Button Outline Variant */
.cta-button--outline {
  background: transparent;
  border: 2px solid transparent;
  border-image: var(--color-accent-gradient) 1;
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

.cta-button--outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-accent-gradient);
  opacity: 0;
  transition: opacity var(--transition-base) ease;
}

.cta-button--outline:hover::before {
  opacity: 0.1;
}

.cta-button--outline .cta-button__text {
  position: relative;
  z-index: 1;
  background: var(--color-accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===================================================================
   STATUS DOTS - Live Status Indicators
   =================================================================== */

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  display: inline-block;
}

.status-dot--success {
  background-color: var(--color-status-success);
  box-shadow: 0 0 8px var(--color-status-success);
}

.status-dot--warning {
  background-color: var(--color-status-warning);
  box-shadow: 0 0 8px var(--color-status-warning);
}

.status-dot--error {
  background-color: var(--color-status-error);
  box-shadow: 0 0 8px var(--color-status-error);
}

.status-dot--unknown {
  background-color: var(--color-status-unknown);
}

/* ===================================================================
   CUSTOM SCROLLBAR - Dark Theme
   =================================================================== */

/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--color-background-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--color-purple-700);
  border-radius: var(--radius-md);
  border: 2px solid var(--color-background-secondary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-purple-500);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-purple-700) var(--color-background-secondary);
}

/* ===================================================================
   TEXT SELECTION - Purple Highlight
   =================================================================== */

::selection {
  background: rgba(139, 92, 246, 0.3);
  color: var(--color-white);
}

::-moz-selection {
  background: rgba(139, 92, 246, 0.3);
  color: var(--color-white);
}
