/**
 * PWA Installation Banner Styles
 */

.pwa-install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: linear-gradient(135deg, #5F2E80 0%, #8A5BB2 100%);
  color: white;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
  max-height: 90vh;
  overflow-y: auto;
}

.pwa-install-banner.show {
  transform: translateY(0);
}

.pwa-install-content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.pwa-install-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
}

.pwa-install-text {
  flex: 1;
  min-width: 0;
}

.pwa-install-text h3 {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 600;
  color: white;
}

.pwa-install-text p {
  margin: 0 0 12px 0;
  font-size: 14px;
  opacity: 0.95;
  line-height: 1.5;
}

.pwa-install-steps {
  margin-top: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
}

.pwa-install-steps p {
  margin: 0 0 8px 0;
  font-weight: 500;
}

.pwa-install-steps ol {
  margin: 8px 0 0 0;
  padding-left: 20px;
}

.pwa-install-steps li {
  margin-bottom: 6px;
}

.pwa-install-steps strong {
  font-weight: 600;
}

.share-icon,
.install-icon {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  margin: 0 2px;
}

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

.pwa-install-btn {
  background: white;
  color: #5F2E80;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pwa-install-btn:hover {
  background: #f5f5f5;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pwa-install-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.pwa-install-close {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  align-self: flex-end;
}

.pwa-install-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.pwa-install-close:active {
  transform: scale(0.95);
}

/* Mobile optimizations */
@media (max-width: 640px) {
  .pwa-install-content {
    flex-direction: column;
    padding: 16px;
    gap: 12px;
  }

  .pwa-install-icon {
    align-self: center;
  }

  .pwa-install-text h3 {
    font-size: 18px;
    text-align: center;
  }

  .pwa-install-text p {
    text-align: center;
    font-size: 13px;
  }

  .pwa-install-steps {
    font-size: 12px;
  }

  .pwa-install-actions {
    width: 100%;
    flex-direction: row;
    align-items: center;
  }

  .pwa-install-btn {
    flex: 1;
    padding: 14px 20px;
  }

  .pwa-install-close {
    width: 36px;
    height: 36px;
    font-size: 28px;
  }
}

/* Prevent banner from covering important content on very small screens */
@media (max-height: 500px) {
  .pwa-install-banner {
    max-height: 80vh;
  }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
  .pwa-install-banner {
    background: linear-gradient(135deg, #4a1f66 0%, #6d4a8a 100%);
  }
}
