/* App Install Banner Styles */
#app-install-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  color: #333;
  padding: 12px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  animation: slideDown 0.3s ease-out;
}

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

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

#app-install-banner.hiding {
  animation: slideUp 0.3s ease-out forwards;
}

#app-install-banner button {
  background: #007aff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  margin-left: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}

#app-install-banner button:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#app-install-banner button:active {
  transform: scale(0.95);
}

#app-install-banner .close-btn {
  background: transparent;
  color: #666;
  padding: 4px 8px;
  font-size: 20px;
  opacity: 0.8;
  min-width: auto;
}

#app-install-banner .close-btn:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.05);
}

#app-install-banner .banner-content {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

#app-install-banner .banner-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  margin-right: 12px;
  border-radius: 8px;
  background: white;
  padding: 2px;
  object-fit: contain;
}

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

#app-install-banner .banner-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#app-install-banner .banner-subtitle {
  font-size: 12px;
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#app-install-banner .banner-buttons {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Mobile responsive */
@media (max-width: 480px) {
  #app-install-banner {
    padding: 10px 12px;
  }
  
  #app-install-banner .banner-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    margin-right: 10px;
  }
  
  #app-install-banner .banner-title {
    font-size: 13px;
  }
  
  #app-install-banner .banner-subtitle {
    font-size: 11px;
  }
  
  #app-install-banner button {
    padding: 6px 12px;
    font-size: 13px;
  }
}

/* iPad and tablets */
@media (min-width: 768px) and (max-width: 1024px) {
  #app-install-banner {
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
    border-radius: 0 0 12px 12px;
    animation: slideDownCentered 0.3s ease-out;
  }
  
  @keyframes slideDownCentered {
    from { 
      transform: translateX(-50%) translateY(-100%);
      opacity: 0;
    }
    to { 
      transform: translateX(-50%) translateY(0);
      opacity: 1;
    }
  }
}

/* Desktop */
@media (min-width: 1025px) {
  #app-install-banner {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
    border-radius: 12px;
    animation: slideDownCentered 0.3s ease-out;
  }
}
