/* Enhanced PWA Install Experience Styles */

.pwa-install-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.pwa-install-container.show {
  opacity: 1;
  visibility: visible;
}

.pwa-install-modal {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 2rem;
  max-width: 450px;
  width: 90%;
  color: white;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(50px) scale(0.9);
  animation: slideInUp 0.4s ease-out forwards;
  position: relative;
  overflow: hidden;
}

.pwa-install-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  pointer-events: none;
}

.pwa-install-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  animation: pulse 2s infinite;
}

.pwa-install-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pwa-install-subtitle {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.pwa-install-features {
  text-align: left;
  margin: 1.5rem 0;
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.pwa-install-feature {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  animation: slideInRight 0.5s ease-out forwards;
  opacity: 0;
  transform: translateX(20px);
}

.pwa-install-feature:nth-child(1) { animation-delay: 0.2s; }
.pwa-install-feature:nth-child(2) { animation-delay: 0.3s; }
.pwa-install-feature:nth-child(3) { animation-delay: 0.4s; }
.pwa-install-feature:nth-child(4) { animation-delay: 0.5s; }

.pwa-install-feature:last-child {
  margin-bottom: 0;
}

.pwa-install-feature-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.pwa-install-buttons {
  display: flex;
  gap: 12px;
  margin-top: 2rem;
}

.pwa-install-btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.pwa-install-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.pwa-install-btn:active {
  transform: translateY(0);
}

.pwa-install-btn-primary {
  background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
  color: #667eea;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.pwa-install-btn-primary:hover {
  background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
}

.pwa-install-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.pwa-install-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.pwa-install-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.pwa-install-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* Mini Install Prompt */
.pwa-mini-prompt {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 16px 20px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transform: translateY(100px);
  animation: slideInUp 0.5s ease-out forwards;
  z-index: 9999;
  max-width: 300px;
  backdrop-filter: blur(10px);
}

.pwa-mini-prompt:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.pwa-mini-prompt-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.pwa-mini-prompt-content {
  flex: 1;
}

.pwa-mini-prompt-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.pwa-mini-prompt-subtitle {
  font-size: 0.75rem;
  opacity: 0.9;
}

.pwa-mini-prompt-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .pwa-install-modal {
    margin: 20px;
    padding: 1.5rem;
  }
  
  .pwa-install-title {
    font-size: 1.5rem;
  }
  
  .pwa-install-buttons {
    flex-direction: column;
  }
  
  .pwa-mini-prompt {
    bottom: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
}

/* Platform-specific styles */
.pwa-install-platform-ios .pwa-install-modal {
  background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
}

.pwa-install-platform-android .pwa-install-modal {
  background: linear-gradient(135deg, #4285F4 0%, #34A853 100%);
}

.pwa-install-platform-windows .pwa-install-modal {
  background: linear-gradient(135deg, #0078D4 0%, #106EBE 100%);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInUp {
  from {
    transform: translateY(50px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(20px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Success Animation */
.pwa-install-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pwa-install-success-icon {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
