/* PWA Styles */

/* Install Banner */
.pwa-install-banner {
  position: fixed;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 500px;
  background: linear-gradient(135deg, rgba(30, 30, 46, 0.98) 0%, rgba(20, 20, 30, 0.98) 100%);
  border: 2px solid #5b9cff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(91, 156, 255, 0.4);
  z-index: 10000;
  transition: bottom 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.pwa-install-banner.show {
  bottom: 20px;
}

.pwa-install-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pwa-install-content svg:first-child {
  color: #5b9cff;
  flex-shrink: 0;
}

.pwa-install-text {
  flex: 1;
}

.pwa-install-text strong {
  display: block;
  color: #e0e0e0;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.pwa-install-text p {
  color: rgba(224, 224, 224, 0.7);
  font-size: 0.85rem;
  margin: 0;
}

.pwa-install-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.pwa-install-btn {
  background: linear-gradient(135deg, #5b9cff 0%, #8b5cf6 100%);
  color: white;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.pwa-install-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(91, 156, 255, 0.4);
}

.pwa-dismiss-btn {
  background: transparent;
  border: none;
  color: rgba(224, 224, 224, 0.5);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pwa-dismiss-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
}

/* Update Notification */
.pwa-update-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 400px;
  background: linear-gradient(135deg, rgba(30, 30, 46, 0.98) 0%, rgba(20, 20, 30, 0.98) 100%);
  border: 2px solid #fbbf24;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 10px 40px rgba(251, 191, 36, 0.4);
  z-index: 10000;
  animation: slideInRight 0.4s ease-out;
}

.pwa-update-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pwa-update-content svg {
  color: #fbbf24;
  flex-shrink: 0;
}

.pwa-update-content strong {
  display: block;
  color: #fbbf24;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.pwa-update-content p {
  color: rgba(224, 224, 224, 0.8);
  font-size: 0.85rem;
  margin: 0;
}

.pwa-update-btn {
  background: #fbbf24;
  color: #0a0a0f;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  margin-left: auto;
}

.pwa-update-btn:hover {
  transform: scale(1.05);
}

/* PWA Mode Adjustments */
.pwa-mode {
  /* Add safe area padding for notched devices */
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

/* Responsive */
@media (max-width: 768px) {
  .pwa-install-banner {
    width: calc(100% - 40px);
  }
  
  .pwa-update-notification {
    width: calc(100% - 40px);
    right: 20px;
  }
  
  .pwa-install-content {
    flex-wrap: wrap;
  }
  
  .pwa-install-actions {
    width: 100%;
    justify-content: flex-end;
  }
}
