/* Custom theme enhancements */

/* 404 Page -------------------------------------------------- */
body.error404 {
  background: linear-gradient(150deg, #f8fafc 0%, #eef2ff 50%, #fdf5ff 100%);
}

body.error404 #main-content.error-404 {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 16px 120px;
}

.error-404__inner {
  max-width: 520px;
  text-align: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: 64px 48px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.error-404__eyebrow {
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6366f1;
  margin-bottom: 16px;
}

.error-404__code {
  font-size: 72px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #1e293b;
  margin-bottom: 16px;
}

.error-404__description {
  font-size: 16px;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 32px;
}

.error-404__path {
  font-weight: 600;
  color: #1d4ed8;
}

.error-404__search form {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
}

.error-404__search input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 14px;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.95);
  color: #111827;
}

.error-404__search input[type="submit"] {
  padding: 12px 20px;
  border-radius: 14px;
  border: none;
  background: #6366f1;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.error-404__search input[type="submit"]:hover,
.error-404__search input[type="submit"]:focus {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(99, 102, 241, 0.25);
}

.error-404__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.error-404__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  text-decoration: none;
  background: #1d4ed8;
  border: 1px solid #1d4ed8;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.error-404__button:hover,
.error-404__button:focus {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(29, 78, 216, 0.25);
}

.error-404__button--outline {
  background: transparent;
  color: #1d4ed8;
  border-color: rgba(29, 78, 216, 0.6);
}

.error-404__button--outline:hover,
.error-404__button--outline:focus {
  background: rgba(29, 78, 216, 0.08);
  box-shadow: none;
}

@media (max-width: 640px) {
  body.error404 #main-content.error-404 {
    padding: 64px 16px 88px;
  }

  .error-404__inner {
    padding: 48px 28px;
  }

  .error-404__code {
    font-size: 56px;
  }

  .error-404__search form {
    flex-direction: column;
  }

  .error-404__search input[type="search"],
  .error-404__search input[type="submit"] {
    width: 100%;
  }

  .error-404__actions {
    flex-direction: column;
  }

  .error-404__button {
    width: 100%;
  }
}
