/* ⚡⚡⚡ GIJS SERVER CORE - NEON CYBERPUNK MADNESS ⚡⚡⚡ */

:root {
  --color-bg-dark: #0a0e27;
  --color-bg-darker: #000005;
  --color-bg-card: #1a1f3a;
  --color-bg-hover: #252d4a;
  --color-neon-cyan: #00ffff;
  --color-neon-pink: #ff00ff;
  --color-neon-green: #39ff14;
  --color-neon-purple: #b700ff;
  --color-neon-orange: #ff6600;
  --color-neon-blue: #0080ff;
  --color-text-primary: #f8fafc;
  --color-text-secondary: #cbd5e1;
  --color-text-muted: #94a3b8;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styling - NEON DARK VOID */
body {
  background: linear-gradient(135deg, #000005 0%, #0a0e27 50%, #1a1f3a 100%);
  background-attachment: fixed;
  color: var(--color-text-primary);
  font-family: 'Inter', 'Segoe UI', Roboto, -apple-system, sans-serif;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 50%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 0, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 0%, rgba(57, 255, 20, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: shiftGradient 15s ease-in-out infinite;
}

@keyframes shiftGradient {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* Header Epic Neon Styling */
.header {
  background: linear-gradient(180deg, rgba(0, 0, 5, 0.95) 0%, rgba(10, 14, 39, 0.98) 100%);
  border-bottom: 3px solid var(--color-neon-cyan);
  border-left: 3px solid var(--color-neon-pink);
  border-right: 3px solid var(--color-neon-green);
  backdrop-filter: blur(20px);
  padding: 2.5rem 2rem;
  box-shadow:
    0 0 40px rgba(0, 255, 255, 0.3),
    0 0 80px rgba(255, 0, 255, 0.2),
    0 0 120px rgba(57, 255, 20, 0.1);
  position: relative;
  z-index: 10;
  animation: headerPulse 4s ease-in-out infinite;
}

@keyframes headerPulse {
  0%, 100% { box-shadow: 0 0 40px rgba(0, 255, 255, 0.3), 0 0 80px rgba(255, 0, 255, 0.2), 0 0 120px rgba(57, 255, 20, 0.1); }
  50% { box-shadow: 0 0 60px rgba(0, 255, 255, 0.5), 0 0 120px rgba(255, 0, 255, 0.3), 0 0 180px rgba(57, 255, 20, 0.15); }
}

.header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-neon-cyan), var(--color-neon-pink), var(--color-neon-green), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { opacity: 0.5; }
  50% { opacity: 1; }
  100% { opacity: 0.5; }
}

.header h1 {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--color-neon-cyan) 0%, var(--color-neon-pink) 50%, var(--color-neon-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow:
    0 0 20px var(--color-neon-cyan),
    0 0 40px var(--color-neon-pink),
    0 0 60px var(--color-neon-green);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: titleGlow 2s ease-in-out infinite;
}

@keyframes titleGlow {
  0%, 100% {
    text-shadow:
      0 0 20px var(--color-neon-cyan),
      0 0 40px var(--color-neon-pink),
      0 0 60px var(--color-neon-green);
  }
  50% {
    text-shadow:
      0 0 40px var(--color-neon-cyan),
      0 0 80px var(--color-neon-pink),
      0 0 120px var(--color-neon-green);
  }
}

.header p {
  color: var(--color-text-secondary);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin: 0.8rem 0 0 0;
  text-transform: uppercase;
}

/* Service Groups */
.service-group {
  margin-bottom: 3rem;
  animation: slideInUp 0.6s ease-out;
}

.service-group h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(0, 212, 255, 0.2);
  position: relative;
}

.service-group h2::before {
  content: '';
  width: 4px;
  height: 1.5rem;
  background: linear-gradient(180deg, var(--color-accent-primary), var(--color-accent-secondary));
  border-radius: 2px;
}

/* Service Cards - NEON GLOW MADNESS */
.service {
  background: linear-gradient(135deg, rgba(0, 20, 40, 0.8) 0%, rgba(20, 10, 30, 0.6) 100%);
  border: 2px solid rgba(0, 255, 255, 0.3);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.15);
}

.service::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-neon-cyan), var(--color-neon-pink), var(--color-neon-green), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.service:hover {
  background: linear-gradient(135deg, rgba(0, 30, 60, 1) 0%, rgba(30, 10, 40, 0.9) 100%);
  border-color: var(--color-neon-cyan);
  transform: translateY(-6px);
  box-shadow:
    0 0 30px rgba(0, 255, 255, 0.5),
    0 0 60px rgba(255, 0, 255, 0.3),
    0 0 90px rgba(57, 255, 20, 0.2),
    inset 0 0 30px rgba(0, 255, 255, 0.1);
}

.service:hover::before {
  opacity: 1;
  animation: borderShimmer 2s ease-in-out infinite;
}

.service:hover::after {
  opacity: 1;
}

@keyframes borderShimmer {
  0% { background: linear-gradient(90deg, transparent, var(--color-neon-cyan), var(--color-neon-pink), var(--color-neon-green), transparent); }
  50% { background: linear-gradient(90deg, transparent, var(--color-neon-pink), var(--color-neon-green), var(--color-neon-cyan), transparent); }
  100% { background: linear-gradient(90deg, transparent, var(--color-neon-cyan), var(--color-neon-pink), var(--color-neon-green), transparent); }
}

.service-name {
  color: var(--color-text-primary);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.service-description {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Status & Status Icons - NEON BLINKERS */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  width: fit-content;
  margin-top: 0.5rem;
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.05); opacity: 1; }
}

.status.healthy {
  background: linear-gradient(135deg, rgba(57, 255, 20, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
  color: var(--color-neon-green);
  border: 2px solid var(--color-neon-green);
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.5), inset 0 0 10px rgba(57, 255, 20, 0.2);
  text-shadow: 0 0 10px var(--color-neon-green);
}

.status.error {
  background: linear-gradient(135deg, rgba(255, 0, 80, 0.2) 0%, rgba(239, 68, 68, 0.1) 100%);
  color: #ff0050;
  border: 2px solid #ff0050;
  box-shadow: 0 0 20px rgba(255, 0, 80, 0.5), inset 0 0 10px rgba(255, 0, 80, 0.2);
  text-shadow: 0 0 10px #ff0050;
  animation: errorBlink 1.5s ease-in-out infinite;
}

@keyframes errorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.status.warning {
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.2) 0%, rgba(245, 158, 11, 0.1) 100%);
  color: var(--color-neon-orange);
  border: 2px solid var(--color-neon-orange);
  box-shadow: 0 0 20px rgba(255, 102, 0, 0.5), inset 0 0 10px rgba(255, 102, 0, 0.2);
  text-shadow: 0 0 10px var(--color-neon-orange);
}

/* Widgets */
.widget {
  background: linear-gradient(135deg, rgba(10, 14, 39, 0.7) 0%, rgba(26, 31, 58, 0.5) 100%);
  border-radius: 10px;
  border: 1px solid rgba(0, 212, 255, 0.1);
  padding: 1.2rem;
  margin-top: 1rem;
  backdrop-filter: blur(8px);
}

.widget iframe {
  border: none !important;
  border-radius: 8px !important;
  background: var(--color-bg-darker) !important;
}

/* Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow:
      0 0 20px rgba(0, 255, 255, 0.3),
      0 0 40px rgba(255, 0, 255, 0.2);
  }
  50% {
    box-shadow:
      0 0 40px rgba(0, 255, 255, 0.5),
      0 0 80px rgba(255, 0, 255, 0.4);
  }
}

@keyframes rainbowCycle {
  0% { border-color: var(--color-neon-cyan); }
  25% { border-color: var(--color-neon-pink); }
  50% { border-color: var(--color-neon-green); }
  75% { border-color: var(--color-neon-purple); }
  100% { border-color: var(--color-neon-cyan); }
}

@keyframes floatUp {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.service.running {
  animation:
    glow 3s ease-in-out infinite,
    floatUp 4s ease-in-out infinite;
}

.service.running::before {
  animation: borderShimmer 2s ease-in-out infinite !important;
  opacity: 1 !important;
}

/* Containers & Layout */
.container {
  max-width: 100%;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.services-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Links - NEON MAGIC */
a {
  color: var(--color-neon-cyan);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  text-shadow: 0 0 10px var(--color-neon-cyan);
}

a::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--color-neon-cyan), var(--color-neon-pink));
  border-radius: 4px;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
  filter: blur(8px);
}

a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-neon-cyan), var(--color-neon-pink), var(--color-neon-green));
  transition: width 0.3s ease;
  box-shadow: 0 0 10px var(--color-neon-cyan);
}

a:hover {
  color: var(--color-neon-pink);
  text-shadow:
    0 0 10px var(--color-neon-cyan),
    0 0 20px var(--color-neon-pink),
    0 0 30px var(--color-neon-green);
}

a:hover::before {
  opacity: 0.3;
}

a:hover::after {
  width: 100%;
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-accent-primary), var(--color-accent-secondary));
  border-radius: 5px;
  transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--color-accent-secondary), var(--color-accent-tertiary));
}

/* Responsive Design */
@media (max-width: 1024px) {
  .services-group {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.2rem;
  }

  .header h1 {
    font-size: 2.2rem;
  }

  .service-group h2 {
    font-size: 1.4rem;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 1.8rem 1rem;
  }

  .header h1 {
    font-size: 1.8rem;
    gap: 0.5rem;
  }

  .header p {
    font-size: 0.95rem;
  }

  .container {
    padding: 1.2rem;
  }

  .services-group {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .service-group h2 {
    font-size: 1.2rem;
  }

  .service {
    padding: 1.2rem;
  }
}

@media (max-width: 480px) {
  .header h1 {
    font-size: 1.4rem;
    flex-direction: column;
    gap: 0.2rem;
  }

  .header {
    padding: 1.5rem 1rem;
  }

  .service-group h2 {
    font-size: 1rem;
    letter-spacing: 0.05em;
  }

  .service {
    padding: 1rem;
  }

  .service-name {
    font-size: 1rem;
  }

  .service-description {
    font-size: 0.85rem;
  }
}

/* Utility Classes */
.text-muted {
  color: var(--color-text-muted);
}

.text-secondary {
  color: var(--color-text-secondary);
}

.cursor-pointer {
  cursor: pointer;
}

/* Print Styles */
@media print {
  .header::after,
  .service::before,
  body::before {
    display: none;
  }

  .service {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
