/* File: karvish-maps/frontend/src/components/InstallPrompt.css */
/**
 * @fileoverview PWA Install Prompt Styles
 * @application karvish-maps
 * @version 1.0.0
 * @since 22-Jan-2026 04:15 PM IST
 */

.install-prompt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 10000;
  padding: 16px;
  animation: fadeIn 0.3s ease;
}

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

.install-prompt {
  background: white;
  border-radius: 20px 20px 20px 20px;
  padding: 24px;
  max-width: 400px;
  width: 100%;
  position: relative;
  animation: slideUp 0.3s ease;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.install-prompt-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #666;
  transition: color 0.2s;
}

.install-prompt-close:hover {
  color: #333;
}

.install-prompt-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.install-prompt-title {
  font-size: 20px;
  font-weight: 700;
  color: #272528;
  text-align: center;
  margin: 0 0 12px 0;
}

.install-prompt-description {
  font-size: 14px;
  color: #666;
  text-align: center;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

/* iOS Steps */
.install-prompt-ios .install-prompt-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.install-prompt-ios .install-prompt-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}

.install-prompt-ios .install-prompt-steps li:last-child {
  border-bottom: none;
}

.install-prompt-ios .step-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #8C68DB 0%, #B167E0 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.install-prompt-ios .install-prompt-steps li strong {
  color: #9334E8;
}

/* Android/Desktop Button */
.install-prompt-android {
  text-align: center;
}

.install-prompt-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #8C68DB 0%, #B167E0 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.install-prompt-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(147, 52, 232, 0.3);
}

.install-prompt-button:active {
  transform: translateY(0);
}

/* Maybe Later Button */
.install-prompt-later {
  display: block;
  width: 100%;
  padding: 12px;
  background: none;
  border: none;
  color: #666;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  margin-top: 8px;
  transition: color 0.2s;
}

.install-prompt-later:hover {
  color: #333;
}

/* Responsive */
@media (min-width: 768px) {
  .install-prompt-overlay {
    align-items: center;
  }
  
  .install-prompt {
    border-radius: 20px;
    animation: scaleIn 0.3s ease;
  }
  
  @keyframes scaleIn {
    from {
      transform: scale(0.9);
      opacity: 0;
    }
    to {
      transform: scale(1);
      opacity: 1;
    }
  }
}
