/* Kubyk loading screen */

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

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app-loading {
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin-top: -2rem;
  animation: fade-in 0.5s ease-out;
}

.app-loading-logo {
  height: 48px;
  width: auto;
  margin-bottom: 2rem;
}

.app-loading-spinner {
  width: 36px;
  height: 36px;
}

.app-loading-spinner svg {
  width: 100%;
  height: 100%;
  animation: spin 1s linear infinite;
}

.app-loading-spinner {
  color: hsl(220, 70%, 50%);
}

/* Error card */
.app-error-card {
  max-width: 480px;
  padding: 2rem;
  border-radius: 0.75rem;
  background: hsl(220, 15%, 97%);
  border: 1px solid hsl(220, 15%, 90%);
  text-align: center;
}

.app-error-card h1 {
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(160, 30%, 12%);
  margin: 0 0 0.5rem;
}

.app-error-card p {
  font-size: 0.95rem;
  color: hsl(220, 10%, 45%);
  margin: 0;
  line-height: 1.5;
}

.app-error-card code {
  font-size: 0.85rem;
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  background: hsl(220, 15%, 92%);
  color: hsl(220, 70%, 50%);
}

@media (prefers-reduced-motion: reduce) {
  .app-loading-spinner svg {
    animation: none;
  }

  .app-loading {
    animation: none;
  }
}
