/* public/initial.css - CSS קריטי לטעינה ראשונית */

/* Prevent FOUC - Flash of Unstyled Content */
html {
  visibility: hidden;
  opacity: 0;
}

html.ready {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s ease-out;
}

/* Basic layout to prevent layout shift */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  direction: rtl;
  min-height: 100vh;
}

/* Initial loading screen */
.initial-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.initial-loader.ready {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-out;
}

.initial-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e5e7eb;
  border-top-color: #ec4899;
  border-radius: 50%;
  animation: initial-spin 0.8s linear infinite;
}

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

/* Prevent navbar jump */
.navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
}