/**
 * UNHCR 404 Error Page Styles
 * Following UNHCR branding guidelines
 */

/* Main Container */
.error-page-404 {
  min-height: calc(100vh - 300px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.error-404-container {
  max-width: 800px;
  width: 100%;
  text-align: center;
}

/* 404 Number Illustration */
.error-404-illustration {
  margin-bottom: 40px;
  animation: fadeInDown 0.8s ease-out;
}

.error-404-illustration svg {
  width: 100%;
  max-width: 400px;
  height: auto;
}

.error-404-number {
  font-family: 'Arial', 'Helvetica', sans-serif;
  font-size: 80px;
  font-weight: 700;
  fill: #0072BC;
  opacity: 0.2;
}

/* Content */
.error-404-content {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.error-404-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 20px 0;
  line-height: 1.2;
}

.error-404-description {
  font-size: 1.125rem;
  color: #666;
  line-height: 1.6;
  margin: 0 0 40px 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Search Box */
.error-404-search {
  margin: 40px 0;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.error-404-search .form-search,
.error-404-search .search-form {
  display: flex;
  gap: 10px;
}

.error-404-search input[type="search"],
.error-404-search input[type="text"] {
  flex: 1;
  padding: 12px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.error-404-search input[type="search"]:focus,
.error-404-search input[type="text"]:focus {
  outline: none;
  border-color: #0072BC;
  box-shadow: 0 0 0 3px rgba(0, 114, 188, 0.1);
}

/* Action Buttons */
.error-404-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin: 40px 0;
  flex-wrap: wrap;
}

.btn-404 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-404-primary {
  background: #0072BC;
  color: #ffffff;
}

.btn-404-primary:hover {
  background: #005a99;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 114, 188, 0.3);
  color: #ffffff;
}

.btn-404-secondary {
  background: #ffffff;
  color: #0072BC;
  border-color: #0072BC;
}

.btn-404-secondary:hover {
  background: #0072BC;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 114, 188, 0.2);
}

.btn-404 svg {
  transition: transform 0.3s ease;
}

.btn-404-primary:hover svg {
  transform: translateX(-3px);
}

/* Quick Links */
.error-404-links {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #e0e0e0;
}

.error-404-links h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 20px 0;
}

.error-404-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.error-404-links li {
  margin: 0;
}

.error-404-links a {
  color: #0072BC;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.error-404-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #0072BC;
  transition: width 0.3s ease;
}

.error-404-links a:hover {
  color: #005a99;
}

.error-404-links a:hover::after {
  width: 100%;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .error-page-404 {
    padding: 40px 20px;
  }

  .error-404-title {
    font-size: 2rem;
  }

  .error-404-description {
    font-size: 1rem;
  }

  .error-404-number {
    font-size: 60px;
  }

  .error-404-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-404 {
    justify-content: center;
    width: 100%;
  }

  .error-404-links ul {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .error-404-title {
    font-size: 1.75rem;
  }

  .error-404-number {
    font-size: 50px;
  }

  .btn-404 {
    padding: 12px 24px;
    font-size: 0.9375rem;
  }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
  .error-page-404 {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  }

  .error-404-title {
    color: #ffffff;
  }

  .error-404-description {
    color: #b0b0b0;
  }

  .error-404-links h3 {
    color: #ffffff;
  }

  .error-404-links {
    border-top-color: #444;
  }

  .error-404-search input[type="search"],
  .error-404-search input[type="text"] {
    background: #333;
    color: #ffffff;
    border-color: #555;
  }
}
