/*
 *  KaHo Technologies - Public 404 Error Page Styles
 *  Theme: Source Sans 3, primary purple (#9333ea), gray neutrals
 */

:root {
  --color-bg: #f9fafb;
  --color-surface: #fff;
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-primary: #9333ea;
  --color-primary-dark: #7e22ce;
  --color-primary-light: #a855f7;
  --color-secondary: #7c3aed;
  --color-border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --transition: 200ms ease-in-out;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Source Sans Pro", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.6;
}

.not-found-page {
  width: 100%;
  max-width: 560px;
  padding: 2rem;
  text-align: center;
}

.not-found-page__content {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 3rem 2rem;
  animation: fadeInUp 0.8s ease-out both;
}

.not-found-page__logo {
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease-out both;
}

.not-found-page__logo-image {
  width: 190px;
  display: block;
  margin: 0 auto;
}

.not-found-page__graphic {
  margin-bottom: 2rem;
  animation: float 3s ease-in-out infinite;
}

.not-found-page__image {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.not-found-page__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 1rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.2s forwards;
}

.not-found-page__description {
  font-size: 1rem;
  color: var(--color-muted);
  margin: 0 0 2rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.4s forwards;
}

.not-found-page__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-secondary) 100%
  );
  border: 0;
  border-radius: 0.5rem;
  box-shadow:
    0 4px 6px -1px rgb(147 51 234 / 0.3),
    0 2px 4px -2px rgb(147 51 234 / 0.3);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition);
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.6s forwards;
}

.not-found-page__button:hover {
  transform: translateY(-2px);
  background: linear-gradient(
    135deg,
    var(--color-primary-dark) 0%,
    var(--color-primary) 100%
  );
  box-shadow:
    0 10px 15px -3px rgb(147 51 234 / 0.4),
    0 4px 6px -4px rgb(147 51 234 / 0.4);
}

.not-found-page__button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .not-found-page__content,
  .not-found-page__graphic,
  .not-found-page__title,
  .not-found-page__description,
  .not-found-page__button {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
