/* PWA Splash Screen Styles */
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #1f2937;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

#splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.splash-icon {
  width: 120px;
  height: 120px;
  margin-bottom: 24px;
  animation: fadeInPulse 2s ease-in-out infinite;
}

.splash-text {
  color: #22c55e;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 16px;
  animation: fadeIn 1.5s ease-out;
}

.splash-subtitle {
  color: #9ca3af;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  text-align: center;
  animation: fadeIn 2s ease-out;
}

.loading-dots {
  display: flex;
  gap: 8px;
  margin-top: 32px;
}

.loading-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  animation: loadingDots 1.4s ease-in-out infinite both;
}

.loading-dot:nth-child(1) { animation-delay: -0.32s; }
.loading-dot:nth-child(2) { animation-delay: -0.16s; }
.loading-dot:nth-child(3) { animation-delay: 0s; }

@keyframes fadeInPulse {
  0%, 100% {
    opacity: 0.8;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loadingDots {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.6;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* PWA Standalone mode styles */
@media screen and (display-mode: standalone) {
  body {
    background-color: #1f2937;
    margin: 0;
    padding: 0;
  }
  
  /* Prevent scrolling during splash */
  body.splash-active {
    overflow: hidden;
  }
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
  .splash-icon {
    width: 100px;
    height: 100px;
  }
  
  .splash-text {
    font-size: 20px;
  }
  
  .splash-subtitle {
    font-size: 14px;
  }
}
