/* ============================================
   --> SEREIN UNIVERSE - 404 ERROR PAGE STYLES
   ============================================ */

.error-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 35px;
  position: relative;
  overflow: hidden;
}

.error-container {
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 2;
}

/* 4-ORB-4 Integrated Container */
.error-code-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 100px;
  user-select: none;
  position: relative;
}

/* Digit '4' Styling & Animation */
.error-code-wrapper .digit {
  font-family: 'Noxis', sans-serif;
  font-size: 160px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  position: relative;
  z-index: 2; /* Digits sit above the planet's outer rings */
  animation: digitBreathe 6s ease-in-out infinite alternate;
}

/* Planet as '0' - Scaled up to match digit height */
.planet-zero {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 5px;
  z-index: 1;
}

.planet-zero .orb-core {
  width: 125px;
  height: 125px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--accent-cyan), var(--accent-purple), #080811);
  box-shadow: 0 0 45px rgba(0, 243, 255, 0.4), inset 0 0 25px rgba(153, 69, 255, 0.6);
  z-index: 2;
  animation: orbGlowPulse 4s ease-in-out infinite alternate;
}

/* Rings extending behind the digits */
.planet-zero .orb-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1; /* Rings go behind digits for depth */
}

.planet-zero .ring-1 {
  width: 210px;
  height: 210px;
  border: 2px dashed rgba(0, 243, 255, 0.5);
  animation: rotateRing 24s linear infinite;
}

.planet-zero .ring-2 {
  width: 260px;
  height: 260px;
  border: 2px solid rgba(153, 69, 255, 0.65);
  border-top-color: transparent;
  border-bottom-color: transparent;
  animation: rotateRing 12s linear infinite reverse;
}

/* Animations */
@keyframes orbGlowPulse {
  0% {
    box-shadow: 0 0 35px rgba(0, 243, 255, 0.3), inset 0 0 15px rgba(153, 69, 255, 0.5);
    filter: brightness(0.95);
  }
  100% {
    box-shadow: 0 0 60px rgba(0, 243, 255, 0.6), inset 0 0 30px rgba(153, 69, 255, 0.8);
    filter: brightness(1.1);
  }
}

@keyframes digitBreathe {
  0% {
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    opacity: 0.92;
  }
  100% {
    text-shadow: 0 0 40px rgba(0, 243, 255, 0.5), 0 0 10px rgba(153, 69, 255, 0.3);
    opacity: 1;
  }
}

@keyframes rotateRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Text Content */
.error-title {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.4;
}

.error-description {
  font-family: 'BMehr', sans-serif;
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 35px;
  line-height: 1.8;
}

.error-actions {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Responsive Scaling */
@media (max-width: 768px) {
  .error-code-wrapper {
    gap: 8px;
  }

  .error-code-wrapper .digit {
    font-size: 100px;
  }

  .planet-zero {
    width: 85px;
    height: 85px;
    margin: 0 2px;
  }

  .planet-zero .orb-core {
    width: 75px;
    height: 75px;
  }

  .planet-zero .ring-1 {
    width: 130px;
    height: 130px;
  }

  .planet-zero .ring-2 {
    width: 160px;
    height: 160px;
  }

  .error-title {
    font-size: 24px;
  }

  .error-description {
    font-size: 14px;
  }
}