/* ==========================================
   PixelRealm Network — style.css
   Template by PasarPixel
   ========================================== */

/* === BASE === */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: #080a0f;
  color: #e8eaf2;
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0d1018; }
::-webkit-scrollbar-thumb { background: #1e2330; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #00e5a0; }

/* === TYPOGRAPHY GRADIENTS === */
.text-gradient-green {
  background: linear-gradient(135deg, #00e5a0 0%, #00b4d8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #3d8fff 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-purple {
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === NAVBAR SCROLL STATE === */
#navbar.scrolled {
  background: rgba(8, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid #1e2330;
}

/* === HERO GRID BACKGROUND === */
.hero-grid {
  background-image:
    linear-gradient(rgba(0, 229, 160, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 160, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* === NOISE OVERLAY === */
.noise-overlay {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* === MINECRAFT AVATAR FACES === */
.mc-face {
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

/* Alex - Creeper Green */
.mc-face-1 {
  background: #5aab28;
  box-shadow: inset -8px -8px 0 #3d7a1b, inset 8px 8px 0 #7fd146;
}
.mc-face-1::before {
  content: '';
  position: absolute;
  top: 20px; left: 12px;
  width: 12px; height: 16px;
  background: #1a1a1a;
  box-shadow: 28px 0 0 #1a1a1a, -2px 16px 0 #1a1a1a, 16px 16px 0 #3d7a1b, 8px 16px 0 #3d7a1b;
}
.mc-face-1::after {
  content: '';
  position: absolute;
  top: 8px; left: 8px;
  width: 10px; height: 10px;
  background: rgba(0,0,0,0.2);
  border-radius: 50%;
  box-shadow: 28px 0 0 rgba(0,0,0,0.2);
}

/* Nova - Magenta/Pink */
.mc-face-2 {
  background: #c060c0;
  box-shadow: inset -8px -8px 0 #8a3d8a, inset 8px 8px 0 #e080e0;
}
.mc-face-2::before {
  content: '';
  position: absolute;
  top: 22px; left: 16px;
  width: 8px; height: 8px;
  background: #1a1a1a;
  border-radius: 2px;
  box-shadow: 20px 0 0 #1a1a1a;
}
.mc-face-2::after {
  content: '';
  position: absolute;
  top: 34px; left: 14px;
  width: 28px; height: 4px;
  background: #ff80c0;
  border-radius: 2px;
}

/* Blaze - Orange/Fire */
.mc-face-3 {
  background: #e07820;
  box-shadow: inset -8px -8px 0 #a05010, inset 8px 8px 0 #f0a040;
}
.mc-face-3::before {
  content: '';
  position: absolute;
  top: 22px; left: 14px;
  width: 10px; height: 10px;
  background: #1a1a1a;
  border-radius: 2px;
  box-shadow: 18px 0 0 #1a1a1a;
}
.mc-face-3::after {
  content: '';
  position: absolute;
  bottom: 14px; left: 18px;
  width: 20px; height: 3px;
  background: #1a1a1a;
  border-radius: 2px;
}

/* Zenith - Purple/Royal */
.mc-face-4 {
  background: #7040c0;
  box-shadow: inset -8px -8px 0 #4a2880, inset 8px 8px 0 #9060e0;
}
.mc-face-4::before {
  content: '';
  position: absolute;
  top: 20px; left: 14px;
  width: 10px; height: 10px;
  background: #1a1a1a;
  border-radius: 2px;
  box-shadow: 18px 0 0 #1a1a1a;
}
.mc-face-4::after {
  content: '';
  position: absolute;
  bottom: 16px; left: 16px;
  width: 24px; height: 4px;
  background: #c0a0ff;
  border-radius: 10px;
}

/* === FADE-IN ANIMATION === */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-delay-1 { transition-delay: 0.1s; }
.fade-delay-2 { transition-delay: 0.2s; }
.fade-delay-3 { transition-delay: 0.3s; }
.fade-delay-4 { transition-delay: 0.4s; }
.fade-delay-5 { transition-delay: 0.5s; }

/* === FEATURE CARD HOVER GLOW === */
.feature-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* === BUTTON GLOW PULSE === */
.btn-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 229, 160, 0.2); }
  50% { box-shadow: 0 0 40px rgba(0, 229, 160, 0.5); }
}

/* === STAT COUNTER === */
[data-count] {
  font-variant-numeric: tabular-nums;
}

/* === TOAST === */
#toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* === FAQ OPEN STATE === */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-content.open {
  max-height: 200px;
  display: block !important;
}

.faq-arrow.rotated {
  transform: rotate(180deg);
}

/* === MOBILE MENU === */
#mobile-menu.open { display: block; }

/* === ACCENT COLORS for text === */
.text-accent-green { color: #00e5a0; }
.text-accent-blue  { color: #3d8fff; }
.text-accent-purple{ color: #a855f7; }
.text-text-muted   { color: #4a4f66; }
.text-text-secondary { color: #8b8fa8; }
.text-text-primary { color: #e8eaf2; }

/* === SELECTION === */
::selection {
  background: rgba(0, 229, 160, 0.2);
  color: #e8eaf2;
}

/* === RESPONSIVE NAV === */
@media (max-width: 768px) {
  .hero-grid { background-size: 40px 40px; }
}
