/**
 * iOS Install Prompt Styles
 */

.ios-install-prompt {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ios-install-prompt.show {
  opacity: 1;
  visibility: visible;
}

.ios-install-prompt-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.ios-install-prompt-content {
  position: relative;
  background: white;
  border-radius: 20px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

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

.ios-install-prompt-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 32px;
  color: #999;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

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

.ios-install-header {
  text-align: center;
  margin-bottom: 30px;
}

.ios-install-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ios-install-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ios-install-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin: 0 0 8px 0;
}

.ios-install-subtitle {
  font-size: 16px;
  color: #666;
  margin: 0;
}

.ios-install-benefits {
  margin-bottom: 30px;
}

.ios-install-benefit {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid #e9ecef;
}

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

.ios-install-benefit-icon {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
}

.ios-install-benefit-text {
  flex: 1;
}

.ios-install-benefit-text strong {
  display: block;
  font-size: 16px;
  color: #333;
  margin-bottom: 4px;
}

.ios-install-benefit-text p {
  margin: 0;
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

.ios-install-steps {
  margin-bottom: 25px;
}

.ios-install-steps h3 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0 0 20px 0;
}

.ios-install-step {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e9ecef;
}

.ios-install-step:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.ios-install-step-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.ios-install-step-content {
  flex: 1;
}

.ios-install-step-content strong {
  display: block;
  font-size: 16px;
  color: #333;
  margin-bottom: 5px;
}

.ios-install-step-content p {
  margin: 0;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.ios-share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #007aff;
  color: white;
  border-radius: 4px;
  margin: 0 4px;
  vertical-align: middle;
}

.ios-share-icon svg {
  width: 14px;
  height: 14px;
}

.ios-install-note {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 25px;
  font-size: 14px;
  color: #856404;
  line-height: 1.5;
}

.ios-install-note strong {
  display: block;
  margin-bottom: 5px;
}

.ios-install-actions {
  display: flex;
  gap: 12px;
  margin-top: 25px;
}

.ios-install-btn {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.ios-install-btn.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.ios-install-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

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

.ios-install-btn.secondary {
  background: #f8f9fa;
  color: #666;
  border: 1px solid #dee2e6;
}

.ios-install-btn.secondary:hover {
  background: #e9ecef;
  color: #333;
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .ios-install-prompt {
    padding: 10px;
  }

  .ios-install-prompt-content {
    padding: 25px 20px;
    max-height: 95vh;
  }

  .ios-install-header h2 {
    font-size: 24px;
  }

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

  .ios-install-benefit {
    padding: 12px;
  }

  .ios-install-benefit-icon {
    font-size: 28px;
  }

  .ios-install-benefit-text strong {
    font-size: 15px;
  }

  .ios-install-benefit-text p {
    font-size: 13px;
  }

  .ios-install-steps h3 {
    font-size: 18px;
  }

  .ios-install-step-content strong {
    font-size: 15px;
  }

  .ios-install-step-content p {
    font-size: 13px;
  }

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

  .ios-install-btn {
    padding: 12px 18px;
    font-size: 15px;
  }
}

/* Smooth scrolling for modal content */
.ios-install-prompt-content::-webkit-scrollbar {
  width: 6px;
}

.ios-install-prompt-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.ios-install-prompt-content::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

.ios-install-prompt-content::-webkit-scrollbar-thumb:hover {
  background: #999;
}
