/* ===== 404 Error Page Styles ===== */
.error-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  padding: 10rem 1.5rem 5rem;
  text-align: center;
}

.error-content {
  max-width: 600px;
  margin: 0 auto;
}

/* Error Animation Container */
.error-animation {
  position: relative;
  margin-bottom: 2rem;
}

/* Floating Food Items */
.plate {
  position: relative;
  height: 80px;
  margin-bottom: 1rem;
}

.food {
  position: absolute;
  font-size: 2rem;
  animation: float 3s ease-in-out infinite;
}

.food-1 { left: 10%; animation-delay: 0s; }
.food-2 { left: 30%; animation-delay: 0.5s; }
.food-3 { left: 50%; animation-delay: 1s; transform: translateX(-50%); }
.food-4 { left: 70%; animation-delay: 1.5s; }
.food-5 { left: 90%; animation-delay: 2s; transform: translateX(-100%); }

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.food-3 {
  animation: floatCenter 3s ease-in-out infinite;
  animation-delay: 1s;
}

@keyframes floatCenter {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-20px);
  }
}

.food-5 {
  animation: floatRight 3s ease-in-out infinite;
  animation-delay: 2s;
}

@keyframes floatRight {
  0%, 100% {
    transform: translateX(-100%) translateY(0);
  }
  50% {
    transform: translateX(-100%) translateY(-20px);
  }
}

/* Error Code 404 */
.error-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.digit {
  font-size: 6rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  text-shadow: 4px 4px 0 rgba(159, 229, 141, 0.3);
}

.digit.zero {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.donut {
  font-size: 5rem;
  animation: spin 8s linear infinite, wobble 2s ease-in-out infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes wobble {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(5deg) scale(1.05); }
  75% { transform: rotate(-5deg) scale(1.05); }
}

/* Text Content */
.error-content h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 1rem;
}

.error-message {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 2rem;
}

/* Action Buttons */
.error-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn-home {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--brand-black) 100%);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(159, 229, 141, 0.3);
}

.btn-home:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(159, 229, 141, 0.4);
}

.btn-home:active {
  transform: translateY(0);
}

/* Fun Facts Section */
.fun-facts {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 2px dashed var(--primary-color);
}

.fun-fact-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 0 0 0.5rem;
}

.fun-fact-text {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
  .error-page {
    padding: 5rem 1rem 2rem;
  }

  .digit {
    font-size: 4rem;
  }

  .digit.zero {
    width: 70px;
    height: 70px;
  }

  .donut {
    font-size: 3.5rem;
  }

  .food {
    font-size: 1.5rem;
  }

  .error-content h1 {
    font-size: 1.5rem;
  }

  .error-message {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .digit {
    font-size: 3rem;
  }

  .digit.zero {
    width: 50px;
    height: 50px;
  }

  .donut {
    font-size: 2.5rem;
  }

  .plate {
    height: 60px;
  }

  .food {
    font-size: 1.25rem;
  }
}
