/* Auto-Update Pill (Relocated to sidebar) */
#homepage-hub .update-pill {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--primary-color, #3b82f6);
  color: white !important;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 12px;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  user-select: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#homepage-hub .update-pill:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.25);
}

#homepage-hub .update-pill.hidden {
  display: none !important;
}

#homepage-hub .update-pill.available {
  background: var(--success-color, #10b981) !important;
  animation: pulse-border 2s infinite;
}

#homepage-hub .update-pill.downloading {
  background: var(--warning-color, #f59e0b) !important;
  cursor: default;
  pointer-events: none;
}

#homepage-hub .update-pill.ready {
  background: var(--primary-color, #3b82f6) !important;
  animation: bounce-gentle 2s infinite;
}

#homepage-hub .update-pill.error {
  background: var(--danger-color, #ef4444) !important;
}

.update-pill-icon {
  font-size: 14px;
}

@media (max-width: 1100px) {
  #homepage-hub .update-pill {
    padding: 8px 6px;
    gap: 0;
    min-height: 34px;
  }

  #homepage-hub .update-pill .update-pill-text {
    display: none;
  }
}

/* Animations */
@keyframes pulse-border {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

@keyframes bounce-gentle {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}
