/* TorZon Wiki - Global Styles */

* {
  scrollbar-width: thin;
  scrollbar-color: #31cafd #1a1a24;
}

body {
  font-family: 'Inter', sans-serif;
  background: #0a0a0f;
  color: #f0f0f5;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Space background with stars */
.grid-bg {
  position: relative;
}

/* Stars layer */
.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, white, transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 50px 160px, rgba(255,255,255,0.8), transparent),
    radial-gradient(2px 2px at 90px 40px, white, transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.7), transparent),
    radial-gradient(3px 3px at 160px 120px, rgba(49, 202, 253, 1), transparent),
    radial-gradient(1px 1px at 200px 50px, white, transparent),
    radial-gradient(2px 2px at 220px 130px, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 250px 20px, rgba(255,255,255,0.8), transparent),
    radial-gradient(3px 3px at 280px 90px, rgba(125, 211, 255, 1), transparent),
    radial-gradient(1px 1px at 310px 150px, rgba(255,255,255,0.7), transparent),
    radial-gradient(2px 2px at 340px 60px, white, transparent),
    radial-gradient(1px 1px at 370px 110px, rgba(255,255,255,0.8), transparent),
    radial-gradient(2px 2px at 400px 30px, white, transparent),
    radial-gradient(3px 3px at 430px 140px, rgba(49, 202, 253, 1), transparent),
    radial-gradient(1px 1px at 100px 200px, rgba(255,255,255,0.9), transparent),
    radial-gradient(2px 2px at 180px 250px, white, transparent),
    radial-gradient(3px 3px at 300px 220px, rgba(125, 211, 255, 1), transparent),
    radial-gradient(1px 1px at 420px 280px, rgba(255,255,255,0.8), transparent),
    radial-gradient(2px 2px at 500px 180px, white, transparent),
    radial-gradient(1px 1px at 70px 300px, rgba(255,255,255,0.7), transparent),
    radial-gradient(2px 2px at 150px 320px, white, transparent),
    radial-gradient(1px 1px at 260px 290px, rgba(255,255,255,0.9), transparent),
    radial-gradient(3px 3px at 380px 310px, rgba(49, 202, 253, 0.9), transparent),
    radial-gradient(1px 1px at 480px 260px, rgba(255,255,255,0.8), transparent),
    radial-gradient(2px 2px at 520px 340px, white, transparent);
  background-size: 600px 400px;
  background-repeat: repeat;
  animation: stars-twinkle 4s ease-in-out infinite alternate;
}

@keyframes stars-twinkle {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Shooting stars */
.shooting-star {
  position: fixed;
  width: 150px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), rgba(49, 202, 253, 1));
  border-radius: 50%;
  transform: rotate(-45deg);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  box-shadow: 0 0 15px rgba(49, 202, 253, 0.9);
  animation: shooting 6s ease-in-out infinite;
}

.shooting-star:nth-of-type(1) {
  top: 12%;
  right: 15%;
  animation-delay: 0s;
}

.shooting-star:nth-of-type(2) {
  top: 28%;
  right: 30%;
  width: 100px;
  animation-delay: 2s;
}

.shooting-star:nth-of-type(3) {
  top: 45%;
  right: 8%;
  width: 180px;
  animation-delay: 4s;
}

@keyframes shooting {
  0% {
    opacity: 0;
    transform: translateX(0) translateY(0) rotate(-45deg);
  }
  5% {
    opacity: 1;
  }
  20% {
    opacity: 0.9;
  }
  30% {
    opacity: 0;
    transform: translateX(-400px) translateY(400px) rotate(-45deg);
  }
  100% {
    opacity: 0;
    transform: translateX(-400px) translateY(400px) rotate(-45deg);
  }
}

/* Nebula glow effect */
.grid-bg::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(49, 202, 253, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 85% 75%, rgba(125, 211, 255, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(100, 50, 200, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: nebula-pulse 20s ease-in-out infinite alternate;
}

@keyframes nebula-pulse {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* Gradient orbs - space nebulas */
.orb,
.animated-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
  animation: float 30s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(49, 202, 253, 0.6) 0%, rgba(100, 50, 200, 0.25) 40%, transparent 70%);
  top: -250px;
  right: -150px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(125, 211, 255, 0.55) 0%, rgba(49, 202, 253, 0.2) 40%, transparent 70%);
  bottom: 15%;
  left: -200px;
  animation-delay: -15s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(100, 50, 200, 0.45) 0%, rgba(49, 202, 253, 0.15) 40%, transparent 70%);
  top: 50%;
  right: -100px;
  animation-delay: -8s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(40px, -40px) scale(1.08); }
  50% { transform: translate(-30px, 30px) scale(0.92); }
  75% { transform: translate(30px, 40px) scale(1.04); }
}

.font-display {
  font-family: 'Space Grotesk', sans-serif;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #31cafd 0%, #7dd3ff 50%, #31cafd 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* Card styles */
.card {
  background: linear-gradient(145deg, rgba(26, 26, 36, 0.8), rgba(18, 18, 26, 0.9));
  border: 1px solid rgba(49, 202, 253, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  border-color: rgba(49, 202, 253, 0.3);
  box-shadow: 0 0 40px rgba(49, 202, 253, 0.1), inset 0 0 20px rgba(49, 202, 253, 0.02);
  transform: translateY(-4px);
}

/* Glow button */
.btn-glow {
  position: relative;
  background: linear-gradient(135deg, #31cafd 0%, #7dd3ff 100%);
  transition: all 0.3s ease;
  overflow: hidden;
}

.btn-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #31cafd, #7dd3ff, #31cafd);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  filter: blur(15px);
}

.btn-glow:hover::before {
  opacity: 0.7;
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(49, 202, 253, 0.3);
}

/* Secondary button */
.btn-secondary {
  background: transparent;
  border: 1px solid rgba(49, 202, 253, 0.4);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(49, 202, 253, 0.1);
  border-color: #31cafd;
  box-shadow: 0 0 20px rgba(49, 202, 253, 0.2);
}

/* Link box */
.link-box {
  background: rgba(18, 18, 26, 0.8);
  border: 1px solid rgba(49, 202, 253, 0.2);
  position: relative;
  overflow: hidden;
}

.link-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #31cafd, transparent);
}

/* Feature icon */
.feature-icon {
  background: linear-gradient(135deg, rgba(49, 202, 253, 0.15) 0%, rgba(125, 211, 255, 0.05) 100%);
  border: 1px solid rgba(49, 202, 253, 0.2);
}

/* Stats card */
.stat-card {
  background: linear-gradient(145deg, rgba(26, 26, 36, 0.6), rgba(18, 18, 26, 0.8));
  border: 1px solid rgba(49, 202, 253, 0.08);
  position: relative;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(49, 202, 253, 0.05) 0%, transparent 50%);
  border-radius: inherit;
}

/* Step card */
.step-card {
  background: linear-gradient(145deg, rgba(26, 26, 36, 0.8), rgba(18, 18, 26, 0.9));
  border: 1px solid rgba(49, 202, 253, 0.1);
  transition: all 0.4s ease;
}

.step-card:hover {
  border-color: rgba(49, 202, 253, 0.3);
  transform: translateY(-4px);
}

/* Header blur */
.header-blur {
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(49, 202, 253, 0.1);
}

/* Dropdown */
.dropdown-menu {
  background: rgba(18, 18, 26, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(49, 202, 253, 0.15);
}

/* Mobile nav */
.mobile-nav {
  background: rgba(10, 10, 15, 0.98);
  backdrop-filter: blur(20px);
}

/* Footer */
.footer-link {
  color: #a0a0b0;
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: #31cafd;
  padding-left: 4px;
}

/* Scroll to top */
.scroll-top {
  background: linear-gradient(135deg, #31cafd 0%, #7dd3ff 100%);
  box-shadow: 0 4px 20px rgba(49, 202, 253, 0.4);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(49, 202, 253, 0.5);
}

/* Status indicators */
.status-online {
  background: linear-gradient(135deg, #10b981, #34d399);
}

.status-offline {
  background: linear-gradient(135deg, #ef4444, #f87171);
}

.pulse-green {
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  50% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
}

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

.fade-in {
  animation: fadeIn 0.4s ease;
}

/* Responsive */
@media (max-width: 768px) {
  .orb { opacity: 0.2; }
}

/* Color variables for Tailwind */
:root {
  --color-primary: #0a0a0f;
  --color-secondary: #12121a;
  --color-accent: #31cafd;
  --color-accent-light: #7dd3ff;
  --color-surface: #1a1a24;
  --color-surface-light: #242432;
  --color-text-primary: #f0f0f5;
  --color-text-secondary: #a0a0b0;
}
