/* LiliBot Web Splash Screen Styles */

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #F9F9FF; /* Exactamente el mismo color que Flutter */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
}

.splash-container {
  text-align: center;
  color: #191C20; /* Exactamente el mismo color de texto que Flutter */
  animation: fadeInScale 1.5s ease-out;
}

.splash-logo {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #415F91 0%, #667eea 100%); /* Gradiente como Flutter */
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 8px 32px rgba(65, 95, 145, 0.3); /* Sombra con el color primario */
  animation: logoPulse 2s ease-in-out infinite;
  position: relative; /* Para posicionar el icono de WhatsApp */
}

.splash-logo svg {
  width: 60px;
  height: 60px;
  color: #FFFFFF; /* Color blanco para el icono */
}

.whatsapp-icon {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
}

.whatsapp-icon svg {
  width: 24px;
  height: 24px;
}

.splash-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 8px;
  letter-spacing: 2px;
  color: #191C20; /* Exactamente el mismo color de texto que Flutter */
}

.splash-subtitle {
  font-size: 16px;
  color: #44474E; /* Exactamente el mismo color de texto secundario que Flutter */
  margin-bottom: 40px;
  font-weight: 400;
}

.splash-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(65, 95, 145, 0.3); /* Color primario con transparencia */
  border-top: 3px solid #415F91; /* Color primario sólido */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-text {
  font-size: 14px;
  color: #74777F; /* Exactamente el mismo color de texto terciario que Flutter */
}

/* Animations */
@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

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

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

.splash-hidden {
  display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .splash-logo {
    width: 100px;
    height: 100px;
  }
  
  .splash-logo svg {
    width: 50px;
    height: 50px;
  }
  
  .splash-title {
    font-size: 28px;
  }
  
  .splash-subtitle {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .splash-logo {
    width: 80px;
    height: 80px;
  }
  
  .splash-logo svg {
    width: 40px;
    height: 40px;
  }
  
  .splash-title {
    font-size: 24px;
  }
  
  .splash-subtitle {
    font-size: 12px;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  body {
    background: #111318; /* Exactamente el mismo color de fondo oscuro que Flutter */
  }
  
  .splash-container {
    color: #E2E2E9; /* Exactamente el mismo color de texto primario oscuro que Flutter */
  }
  
  .splash-logo {
    background: #415F91; /* Mantiene el mismo color primario */
    box-shadow: 0 8px 32px rgba(65, 95, 145, 0.3);
  }
  
  .splash-title {
    color: #E2E2E9; /* Exactamente el mismo color de texto primario oscuro que Flutter */
  }
  
  .splash-subtitle {
    color: #C4C6D0; /* Exactamente el mismo color de texto secundario oscuro que Flutter */
  }
  
  .loading-spinner {
    border: 3px solid rgba(65, 95, 145, 0.3);
    border-top: 3px solid #415F91;
  }
  
  .loading-text {
    color: #8E9099; /* Exactamente el mismo color de texto terciario oscuro que Flutter */
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .splash-logo {
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid white;
  }
  
  .splash-title {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .splash-container {
    animation: none;
  }
  
  .splash-logo {
    animation: none;
  }
  
  .loading-spinner {
    animation: none;
  }
} 