/* ═══════════════════════════════════════════════════════════════════════════
   ERROR - Astronaut error page (400, 403, 404, 500)
   Midnight Aurora theme integration
═══════════════════════════════════════════════════════════════════════════ */

/* Override base body styles for error page */
body.error-page {
  background: var(--gradient-surface);
  background-attachment: fixed;
  height: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

/* Background elements container */
.error-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Moon — translucent gray-blue with cyan glow */
.moon {
  background: linear-gradient(135deg, rgba(148,163,184,0.15) 0%, rgba(100,116,139,0.1) 100%);
  position: fixed;
  top: -100px;
  left: -300px;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(59,130,246,0.08), 0 0 120px rgba(59,130,246,0.04);
}

.moon__crater {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(100,116,139,0.2) 38%, rgba(148,163,184,0.15) 100%);
  opacity: 0.6;
}

.moon__crater1 {
  top: 250px;
  left: 500px;
  width: 60px;
  height: 180px;
}

.moon__crater2 {
  top: 650px;
  left: 340px;
  width: 40px;
  height: 80px;
  transform: rotate(55deg);
}

.moon__crater3 {
  top: -20px;
  left: 40px;
  width: 65px;
  height: 120px;
  transform: rotate(250deg);
}

/* Stars — Aurora palette with twinkle animation */
.star {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  animation: twinkle 2s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% { opacity: 0.2; transform: scale(0.8); }
  100% { opacity: 0.9; transform: scale(1.2); }
}

.star1 { top: 40%; left: 50%; background: var(--accent); animation-delay: 1s; }
.star2 { top: 60%; left: 90%; background: var(--accent-secondary); animation-delay: 3s; }
.star3 { top: 10%; left: 70%; background: var(--accent); animation-delay: 2s; }
.star4 { top: 90%; left: 40%; background: var(--accent-tertiary); animation-delay: 0.5s; }
.star5 { top: 20%; left: 30%; background: var(--accent); animation-delay: 0.5s; }
.star6 { top: 75%; left: 15%; background: var(--accent-secondary); animation-delay: 1.5s; width: 4px; height: 4px; }
.star7 { top: 5%; left: 85%; background: var(--accent-tertiary); animation-delay: 2.5s; width: 3px; height: 3px; }
.star8 { top: 50%; left: 5%; background: var(--accent); animation-delay: 0.8s; width: 4px; height: 4px; }

/* Error content — centered layout */
.error-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 24px;
  max-width: 600px;
}

.error__title {
  font-size: clamp(80px, 15vw, 160px);
  font-weight: 700;
  line-height: 1;
  margin: 0;
  background: var(--gradient-aurora);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.error__subtitle {
  color: var(--text);
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 600;
  margin-top: 8px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.error__description {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-top: 12px;
}

.error__home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
  padding: 14px 32px;
  border-radius: 10px;
  background: var(--gradient-aurora);
  color: #0a0f1a;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(59,130,246,0.3);
  transition: all var(--duration) var(--ease);
}

.error__home-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(59,130,246,0.5), var(--shadow-glow);
  color: #0a0f1a;
  text-decoration: none;
}

/* Astronaut wrapper — fixed position */
.astronaut-wrapper {
  position: fixed;
  bottom: 5%;
  right: 10%;
  z-index: 1;
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-10px) rotate(1deg); }
  50% { transform: translateY(-20px) rotate(0deg); }
  75% { transform: translateY(-10px) rotate(-1deg); }
}

.astronaut {
  width: 185px;
  height: 300px;
  position: relative;
  transform: rotate(20deg) scale(1.2);
}

.astronaut__head {
  background-color: white;
  position: absolute;
  top: 60px;
  left: 60px;
  width: 60px;
  height: 60px;
  border-radius: 2em;
}

.astronaut__head-visor-flare1 {
  background-color: #7f8fa6;
  position: absolute;
  top: 28px;
  left: 40px;
  width: 10px;
  height: 10px;
  border-radius: 2em;
  opacity: 0.5;
}

.astronaut__head-visor-flare2 {
  background-color: #718093;
  position: absolute;
  top: 40px;
  left: 38px;
  width: 5px;
  height: 5px;
  border-radius: 2em;
  opacity: 0.3;
}

.astronaut__backpack {
  background-color: #bfbfbf;
  position: absolute;
  top: 90px;
  left: 47px;
  width: 86px;
  height: 90px;
  border-radius: 8px;
}

.astronaut__body {
  background-color: #e6e6e6;
  position: absolute;
  top: 115px;
  left: 55px;
  width: 70px;
  height: 80px;
  border-radius: 8px;
}

.astronaut__body__chest {
  background-color: #d9d9d9;
  position: absolute;
  top: 140px;
  left: 68px;
  width: 45px;
  height: 25px;
  border-radius: 6px;
}

.astronaut__arm-left1 {
  background-color: #e6e6e6;
  position: absolute;
  top: 127px;
  left: 9px;
  width: 65px;
  height: 20px;
  border-radius: 8px;
  transform: rotate(-30deg);
}

.astronaut__arm-left2 {
  background-color: #e6e6e6;
  position: absolute;
  top: 102px;
  left: 7px;
  width: 20px;
  height: 45px;
  transform: rotate(-12deg);
  border-radius: 8em 8em 8px 8px;
}

.astronaut__arm-right1 {
  background-color: #e6e6e6;
  position: absolute;
  top: 113px;
  left: 100px;
  width: 65px;
  height: 20px;
  border-radius: 8px;
  transform: rotate(-10deg);
}

.astronaut__arm-right2 {
  background-color: #e6e6e6;
  position: absolute;
  top: 78px;
  left: 141px;
  width: 20px;
  height: 45px;
  transform: rotate(-10deg);
  border-radius: 8em 8em 8px 8px;
}

.astronaut__arm-thumb-left {
  background-color: #e6e6e6;
  position: absolute;
  top: 110px;
  left: 21px;
  width: 10px;
  height: 6px;
  border-radius: 8em;
  transform: rotate(-35deg);
}

.astronaut__arm-thumb-right {
  background-color: #e6e6e6;
  position: absolute;
  top: 90px;
  left: 133px;
  width: 10px;
  height: 6px;
  border-radius: 8em;
  transform: rotate(20deg);
}

.astronaut__wrist-left {
  background-color: #e67e22;
  position: absolute;
  top: 122px;
  left: 6.5px;
  width: 21px;
  height: 4px;
  border-radius: 8em;
  transform: rotate(-15deg);
}

.astronaut__wrist-right {
  background-color: #e67e22;
  position: absolute;
  top: 98px;
  left: 141px;
  width: 21px;
  height: 4px;
  border-radius: 8em;
  transform: rotate(-10deg);
}

.astronaut__leg-left {
  background-color: #e6e6e6;
  position: absolute;
  top: 188px;
  left: 50px;
  width: 23px;
  height: 75px;
  transform: rotate(10deg);
}

.astronaut__leg-right {
  background-color: #e6e6e6;
  position: absolute;
  top: 188px;
  left: 108px;
  width: 23px;
  height: 75px;
  transform: rotate(-10deg);
}

.astronaut__foot-left {
  background-color: white;
  position: absolute;
  top: 240px;
  left: 43px;
  width: 28px;
  height: 20px;
  transform: rotate(10deg);
  border-radius: 8em 8em 3px 3px;
  border-bottom: 4px solid #e67e22;
}

.astronaut__foot-right {
  background-color: white;
  position: absolute;
  top: 240px;
  left: 111px;
  width: 28px;
  height: 20px;
  transform: rotate(-10deg);
  border-radius: 8em 8em 3px 3px;
  border-bottom: 4px solid #e67e22;
}

/* Responsive */
@media (max-width: 768px) {
  .astronaut-wrapper {
    transform: scale(0.6);
    bottom: 2%;
    right: 2%;
  }
}

@media (max-width: 480px) {
  .astronaut-wrapper {
    display: none;
  }
}
