/* Challenge Snackbar Component */

.challenge-snackbar {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 380px;
  background: rgba(37, 99, 235, 0.95);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.3);
  z-index: 1100;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 14px;
  color: white;
}

.challenge-snackbar.show {
  transform: translateY(0);
  opacity: 1;
}

.challenge-avatar {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.challenge-avatar img {
  width: 22px;
  height: 22px;
}

.challenge-content {
  flex: 1;
  min-width: 0;
}

.challenge-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 3px 0;
}

.challenge-description {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.4;
  font-size: 0.82rem;
}

.challenge-cta {
  background: rgba(255, 255, 255, 0.18);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.challenge-cta:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.challenge-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.challenge-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

@media (max-width: 640px) {
  .challenge-snackbar {
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
  }
}
