/* PWA Install UI Styles */

.pwa-install-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #1a0b2e;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.pwa-install-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
  background: linear-gradient(135deg, #FFA500, #FFD700);
}

.pwa-install-btn i {
  font-size: 1.1rem;
}

/* PWA Install Banner */
.pwa-install-banner {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.95), rgba(40, 40, 40, 0.9));
  border: 2px solid rgba(255, 215, 0, 0.4);
  border-radius: 16px;
  padding: 1rem;
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  z-index: 9999;
  max-width: 400px;
  width: calc(100% - 2rem);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  opacity: 0;
}

.pwa-install-banner.show {
  bottom: 30px;
  opacity: 1;
}

.install-banner-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.install-banner-icon {
  flex-shrink: 0;
}

.install-banner-icon i {
  font-size: 2rem;
  color: #FFD700;
}

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

.install-banner-text h4 {
  color: #FFD700;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.3rem 0;
  line-height: 1.2;
}

.install-banner-text p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.3;
}

.install-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}

.install-btn-primary {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #1a0b2e;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.install-btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.install-btn-close {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.4rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.install-btn-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
}

/* PWA Update Notification */
.pwa-update-notification {
  position: fixed;
  top: -100px;
  right: 30px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.95), rgba(16, 185, 129, 0.9));
  border: 2px solid rgba(34, 197, 94, 0.4);
  border-radius: 16px;
  padding: 1rem;
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  z-index: 9999;
  min-width: 300px;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  opacity: 0;
}

.pwa-update-notification.show {
  top: 30px;
  opacity: 1;
}

.update-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: white;
}

.update-content i {
  font-size: 1.5rem;
  animation: rotate 2s linear infinite;
}

.update-content span {
  flex: 1;
  font-weight: 600;
}

.update-content button {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.update-content button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

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

/* PWA Installed State */
.pwa-installed .pwa-install-banner,
.pwa-installed .pwa-install-btn {
  display: none !important;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
  .pwa-install-banner {
    bottom: -120px;
    padding: 0.8rem;
    max-width: calc(100% - 1rem);
  }
  
  .pwa-install-banner.show {
    bottom: 20px;
  }
  
  .install-banner-content {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
  }
  
  .install-banner-actions {
    flex-direction: row;
    justify-content: center;
  }
  
  .install-banner-text h4 {
    font-size: 1rem;
  }
  
  .install-banner-text p {
    font-size: 0.85rem;
  }
  
  .pwa-update-notification {
    right: 15px;
    left: 15px;
    min-width: auto;
  }
  
  .update-content {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
  }
  
  .pwa-install-item {
    margin-left: auto;
  }
  
  .pwa-install-btn {
    font-size: 0.8rem;
    padding: 0.5rem 0.8rem;
  }
}