/* PWA Install Prompt Styles */

/* Install Prompt Modal */
.pwa-install-prompt {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 21, 32, 0.95);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: pwaFadeIn 0.3s ease;
}

@keyframes pwaFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.pwa-install-content {
  background: linear-gradient(135deg, #0a1520 0%, #1a2f42 100%);
  border: 2px solid rgba(64, 185, 197, 0.3);
  border-radius: 20px;
  padding: 40px 32px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(64, 185, 197, 0.15);
  animation: pwaSlideUp 0.4s ease;
  position: relative;
  overflow: hidden;
}

@keyframes pwaSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Animated background gradient */
.pwa-install-content::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(64, 185, 197, 0.1) 0%, transparent 70%);
  animation: pwaRotate 20s linear infinite;
  pointer-events: none;
}

@keyframes pwaRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Close button */
.pwa-install-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: rgba(255, 255, 255, 0.6);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 1;
}

.pwa-install-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  transform: rotate(90deg);
}

/* App icon */
.pwa-install-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #40b9c5 0%, #1779a1 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(64, 185, 197, 0.4);
  animation: pwaPulse 2s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

@keyframes pwaPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(64, 185, 197, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(64, 185, 197, 0.6);
  }
}

.pwa-install-icon img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
}

/* Text content */
.pwa-install-title {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin: 0 0 12px 0;
  letter-spacing: -0.5px;
  position: relative;
  z-index: 1;
}

.pwa-install-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  margin: 0 0 24px 0;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

/* Benefits list */
.pwa-install-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  position: relative;
  z-index: 1;
}

.pwa-install-benefit {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin-bottom: 10px;
  transition: all 0.2s;
}

.pwa-install-benefit:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}

.pwa-install-benefit-icon {
  font-size: 24px;
  margin-right: 12px;
  flex-shrink: 0;
}

.pwa-install-benefit-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

/* Action buttons */
.pwa-install-actions {
  display: flex;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.pwa-install-btn {
  flex: 1;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pwa-install-btn-primary {
  background: linear-gradient(135deg, #40b9c5 0%, #1779a1 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(64, 185, 197, 0.4);
}

.pwa-install-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(64, 185, 197, 0.6);
}

.pwa-install-btn-primary:active {
  transform: translateY(0);
}

.pwa-install-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pwa-install-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 1);
}

/* iOS-specific styles */
.pwa-install-ios-instructions {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.pwa-install-ios-title {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 16px 0;
  text-align: center;
}

.pwa-install-ios-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pwa-install-ios-step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

.pwa-install-ios-step:last-child {
  margin-bottom: 0;
}

.pwa-install-ios-step-number {
  background: linear-gradient(135deg, #40b9c5 0%, #1779a1 100%);
  color: #ffffff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-right: 12px;
  flex-shrink: 0;
}

.pwa-install-ios-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  margin: 0 4px;
}

/* Compact banner (alternative style) */
.pwa-install-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #0a1520 0%, #1a2f42 100%);
  border: 2px solid rgba(64, 185, 197, 0.3);
  border-radius: 16px;
  padding: 16px 20px;
  max-width: 420px;
  width: calc(100% - 40px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(64, 185, 197, 0.2);
  z-index: 99999;
  animation: pwaSlideUpBanner 0.4s ease;
  display: flex;
  align-items: center;
  gap: 16px;
}

@keyframes pwaSlideUpBanner {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.pwa-install-banner-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #40b9c5 0%, #1779a1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pwa-install-banner-icon img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.pwa-install-banner-content {
  flex: 1;
}

.pwa-install-banner-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.pwa-install-banner-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.pwa-install-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.pwa-install-banner-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  white-space: nowrap;
}

.pwa-install-banner-btn-install {
  background: linear-gradient(135deg, #40b9c5 0%, #1779a1 100%);
  color: #ffffff;
}

.pwa-install-banner-btn-install:hover {
  transform: scale(1.05);
}

.pwa-install-banner-btn-dismiss {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pwa-install-banner-btn-dismiss:hover {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Mobile responsive */
@media (max-width: 600px) {
  .pwa-install-content {
    padding: 32px 24px;
    border-radius: 16px;
  }

  .pwa-install-title {
    font-size: 24px;
  }

  .pwa-install-subtitle {
    font-size: 14px;
  }

  .pwa-install-actions {
    flex-direction: column;
  }

  .pwa-install-btn {
    width: 100%;
  }

  .pwa-install-banner {
    flex-direction: column;
    text-align: center;
  }

  .pwa-install-banner-actions {
    width: 100%;
  }

  .pwa-install-banner-btn {
    width: 100%;
  }
}

/* Animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
