/**
 * Mobile App Install Banner Styles
 * Provides custom app install prompts for iOS and Android
 */

.app-install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #6c63ff 0%, #5a52d5 100%);
  color: white;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  animation: slideUp 0.3s ease-out;
  padding: 12px 16px;
}

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

.app-install-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 12px;
}

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

.app-install-banner-icon img {
  border-radius: 10px;
  display: block;
}

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

.app-install-banner-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px 0;
  line-height: 1.2;
}

.app-install-banner-subtitle {
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.3;
}

.app-install-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.app-install-banner-btn-primary,
.app-install-banner-btn-close {
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.app-install-banner-btn-primary {
  background: white;
  color: #6c63ff;
  padding: 8px 20px;
  border-radius: 20px;
}

.app-install-banner-btn-primary:hover {
  background: #f0f0f0;
  transform: scale(1.05);
}

.app-install-banner-btn-primary:active {
  transform: scale(0.95);
}

.app-install-banner-btn-close {
  background: transparent;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.app-install-banner-btn-close:active {
  background: rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 480px) {
  .app-install-banner {
    padding: 10px 12px;
  }

  .app-install-banner-content {
    gap: 10px;
  }

  .app-install-banner-icon img {
    width: 40px;
    height: 40px;
  }

  .app-install-banner-title {
    font-size: 14px;
  }

  .app-install-banner-subtitle {
    font-size: 12px;
  }

  .app-install-banner-btn-primary {
    padding: 6px 16px;
    font-size: 13px;
  }

  .app-install-banner-btn-close {
    width: 28px;
    height: 28px;
    font-size: 20px;
  }
}

/* Tablet and larger screens */
@media (min-width: 768px) {
  .app-install-banner {
    padding: 16px 24px;
  }

  .app-install-banner-title {
    font-size: 18px;
  }

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

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .app-install-banner {
    background: linear-gradient(135deg, #5a52d5 0%, #4842b0 100%);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .app-install-banner {
    animation: none;
  }

  .app-install-banner-btn-primary:hover,
  .app-install-banner-btn-primary:active {
    transform: none;
  }
}
