/* Install Prompt Styles */

.install-prompt {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-gradient, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  max-width: 90vw;
  width: 350px;
  display: none;
  animation: slideUp 0.3s ease-out;
}

.install-prompt.show {
  display: block;
}

.install-prompt-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.install-prompt-text {
  flex: 1;
}

.install-prompt-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.install-prompt-description {
  font-size: 12px;
  opacity: 0.9;
}

.install-prompt-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.install-prompt-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.install-prompt-btn.primary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  backdrop-filter: blur(10px);
}

.install-prompt-btn.primary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.install-prompt-btn.secondary {
  background: transparent;
  color: white;
  opacity: 0.8;
}

.install-prompt-btn.secondary:hover {
  opacity: 1;
}

.install-prompt-close {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  margin-left: 8px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.install-prompt-close:hover {
  opacity: 1;
}

/* Animations */
@keyframes slideUp {
  from {
    transform: translate(-50%, 100px);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.install-prompt.hide {
  animation: slideDown 0.3s ease-out forwards;
}

@keyframes slideDown {
  from {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  to {
    transform: translate(-50%, 100px);
    opacity: 0;
  }
}

/* Mobile responsive */
@media (max-width: 480px) {
  .install-prompt {
    bottom: 10px;
    left: 10px;
    right: 10px;
    transform: none;
    width: auto;
    max-width: none;
  }
  
  .install-prompt-content {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .install-prompt-actions {
    width: 100%;
    justify-content: center;
  }
}

/* Dark theme support */
.dark-theme .install-prompt {
  background: var(--dark-primary-gradient, linear-gradient(135deg, #2d3748 0%, #4a5568 100%));
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .install-prompt {
    border: 2px solid white;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .install-prompt {
    animation: none;
  }
  
  .install-prompt.hide {
    animation: none;
  }
}