/**
 * Initial Loading Styles
 *
 * These styles are loaded before React mounts to provide
 * a smooth loading experience and prevent layout shift.
 */

/* Loading container */
.initial-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 50%, #ede9fe 100%);
  color: #374151;
  padding: 1rem;
}

/* Logo placeholder */
.initial-loading__logo {
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.initial-loading__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.initial-loading__logo svg {
  width: 36px;
  height: 36px;
  color: white;
}

/* Spinner */
.initial-loading__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #bfdbfe;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Loading text */
.initial-loading__text {
  font-size: 1rem;
  color: #6b7280;
  margin: 0;
}

/* Brand name */
.initial-loading__brand {
  font-size: 1.25rem;
  font-weight: 600;
  color: #3b82f6;
  margin-bottom: 1rem;
}

/* Visually hidden - for screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* No JavaScript fallback */
.no-js-message {
  display: none;
  text-align: center;
  padding: 2rem;
  max-width: 400px;
}

.no-js-message h1 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #1f2937;
}

.no-js-message p {
  color: #6b7280;
  line-height: 1.6;
}

/* Show no-js message when JS is disabled */
noscript .no-js-message {
  display: block;
}
