/* ─── Modern 404 - Lost in Space ─────────────────────── */
.error-404 {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 2rem;
  background: var(--bg-light, #FAFBFD);
  font-family: var(--font-body, 'Roboto', sans-serif);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

html, body {
  overflow: hidden;
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Subtle floating orbs */
.error-404::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 119, 4, 0.03) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  animation: pulse 8s ease-in-out infinite;
}

.error-404::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 119, 4, 0.02) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  animation: pulse 6s ease-in-out infinite reverse;
}

/* Main Wrapper */
.error-404__wrapper {
  max-width: 700px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Large Image */
.error-404__image-wrapper {
  margin-bottom: 0.25rem;
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.error-404__img {
  width: clamp(220px, 42vw, 350px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.08));
}

/* Content */
.error-404__content {
  margin-bottom: 1rem;
}

.error-404__title {
  font-family: var(--font-heading, 'Fira Sans', sans-serif);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--charcoal-black, #161616);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.error-404__text {
  font-size: 1rem;
  color: var(--gray-muted, #6B7280);
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto;
}

/* Action Cards */
.error-404__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 380px;
  margin: 0 auto;
}

.error-404__card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: #fafbfd;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.error-404__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.error-404__card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafbfd;
  border-radius: 12px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.error-404__card-icon svg {
  width: 22px;
  height: 22px;
  color: var(--gray-muted, #6B7280);
  transition: all 0.3s ease;
}

.error-404__card:hover .error-404__card-icon {
  background: var(--primary, #FF7704);
}

.error-404__card:hover .error-404__card-icon svg {
  color: #FFFFFF;
}

.error-404__card-icon--accent {
  background: linear-gradient(135deg, rgba(255, 119, 4, 0.1) 0%, rgba(247, 178, 114, 0.1) 100%);
}

.error-404__card-icon--accent svg {
  color: var(--primary, #FF7704);
}

.error-404__card:hover .error-404__card-icon--accent {
  background: var(--primary, #FF7704);
}

.error-404__card-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  text-align: left;
}

.error-404__card-label {
  font-family: var(--font-heading, 'Fira Sans', sans-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal-black, #161616);
}

.error-404__card-hint {
  font-size: 0.875rem;
  color: var(--gray-muted, #6B7280);
}

.error-404__card-arrow {
  width: 20px;
  height: 20px;
  color: var(--gray-muted, #6B7280);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

/* ─── Animations ─────────────────────────────────────── */
@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-15px) rotate(1deg);
  }
  50% {
    transform: translateY(-5px) rotate(0deg);
  }
  75% {
    transform: translateY(-20px) rotate(-1deg);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.error-404__wrapper {
  animation: fadeInUp 0.8s ease-out;
}

/* ─── Responsive ────────────────────────────────────── */
@media (max-width: 640px) {
  .error-404 {
    padding: 1rem;
    min-height: 500px;
  }

  .error-404__img {
    width: 180px;
  }

  .error-404__card {
    padding: 0.875rem 1rem;
  }

  .error-404__card-icon {
    width: 40px;
    height: 40px;
  }

  .error-404__title {
    font-size: 1.35rem;
  }

  .error-404__text {
    font-size: 0.9rem;
  }

  .error-404__card-label {
    font-size: 0.9rem;
  }

  .error-404__card-hint {
    font-size: 0.8rem;
  }
}

@media (max-width: 400px) {
  .error-404__img {
    width: 150px;
  }

  .error-404 {
    min-height: 450px;
  }
}
