/* PWA Loading/Splash Screen Styles */

/* Loading screen container - shows while page is loading */
#pwa-splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f5b25e 0%, #ffffff 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

#pwa-splash-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Logo container */
.pwa-splash-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  animation: pwa-fade-in 0.6s ease-out;
}

.pwa-splash-logo img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

/* Loading text */
.pwa-splash-text {
  font-size: 18px;
  color: #333;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  margin-bottom: 20px;
  animation: pwa-fade-in 0.8s ease-out 0.2s both;
}

/* Animated loading spinner */
.pwa-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(245, 178, 94, 0.3);
  border-top: 3px solid #f5b25e;
  border-radius: 50%;
  animation: pwa-spin 1s linear infinite;
}

@keyframes pwa-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

/* On standalone mode (PWA app) */
@media (display-mode: standalone) {
  #pwa-splash-screen {
    background: linear-gradient(135deg, #f5b25e 0%, #ffffff 100%);
  }
}

/* On iOS */
@supports (padding: max(0px)) {
  #pwa-splash-screen {
    padding-bottom: env(safe-area-inset-bottom);
    padding-top: env(safe-area-inset-top);
  }
}