/* PWA Install Banner Styles */
#pwa-install-banner {
  position: fixed;
  bottom: -200px;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(231, 45, 44, 0.1) inset;
  border-top: 3px solid #e72d2c;
  transition: bottom 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  backdrop-filter: blur(20px);
}

#pwa-install-banner.show {
  bottom: 0;
}

.pwa-banner-content {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  animation: slideInContent 0.5s ease-out 0.2s both;
}

@keyframes slideInContent {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pwa-banner-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(231, 45, 44, 0.2);
  background: #ffffff;
  padding: 8px;
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.pwa-banner-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pwa-banner-text {
  flex: 1;
  min-width: 0;
}

.pwa-banner-text h3 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 700;
  color: #333;
  font-family: "Poppins", sans-serif;
}

.pwa-banner-text p {
  margin: 0;
  font-size: 13px;
  color: #666;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
}

.pwa-banner-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pwa-install-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #e72d2c 0%, #ff5555 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(231, 45, 44, 0.3);
  position: relative;
  overflow: hidden;
}

.pwa-install-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.pwa-install-btn:hover::before {
  left: 100%;
}

.pwa-install-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(231, 45, 44, 0.4);
}

.pwa-install-btn:active {
  transform: translateY(0);
}

.pwa-install-btn ion-icon {
  font-size: 18px;
}

.pwa-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.05);
  color: #666;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 20px;
}

.pwa-close-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #333;
  transform: rotate(90deg);
}

.pwa-close-btn ion-icon {
  font-size: 24px;
}

/* Responsive Design */
@media (max-width: 576px) {
  #pwa-install-banner {
    padding: 12px;
  }

  .pwa-banner-content {
    gap: 12px;
  }

  .pwa-banner-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .pwa-banner-text h3 {
    font-size: 14px;
  }

  .pwa-banner-text p {
    font-size: 12px;
  }

  .pwa-install-btn {
    padding: 10px 16px;
    font-size: 13px;
  }

  .pwa-close-btn {
    width: 36px;
    height: 36px;
  }
}

/* iOS Install Instructions Modal (Optional) */
.ios-install-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(5px);
}

.ios-install-modal.show {
  display: flex;
}

.ios-install-content {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideUp 0.4s ease-out;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ios-install-content h3 {
  margin: 0 0 20px 0;
  font-size: 20px;
  font-weight: 700;
  color: #333;
  font-family: "Poppins", sans-serif;
  text-align: center;
}

.ios-install-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.ios-install-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-size: 14px;
  color: #666;
  font-family: "Poppins", sans-serif;
  border-bottom: 1px solid #f0f0f0;
}

.ios-install-steps li:last-child {
  border-bottom: none;
}

.ios-install-steps ion-icon {
  font-size: 24px;
  color: #e72d2c;
  flex-shrink: 0;
}

.ios-install-close {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #e72d2c 0%, #ff5555 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ios-install-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(231, 45, 44, 0.4);
}
