/* === Individual Name Page: Save Button === */
.bns-save-btn-wrap {
  margin: 16px 0 20px;
}

.bns-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 2px solid #4ECDC4;
  border-radius: 50px;
  background: #fff;
  color: #333;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.bns-save-btn:hover {
  background: #f0fffe;
  border-color: #3dbdb5;
}

.bns-save-btn:active {
  transform: scale(0.96);
}

.bns-save-btn.bns-saved {
  background: #fff0f3;
  border-color: #e8566d;
  color: #e8566d;
}

.bns-save-btn .bns-heart-icon {
  font-size: 20px;
  line-height: 1;
  transition: transform 0.3s ease;
}

.bns-save-btn.bns-saved .bns-heart-icon {
  animation: bns-heart-pop 0.4s ease;
}

/* === List Article: Inline Hearts === */
.bns-list-heart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 16px;
  line-height: 1;
  color: #ccc;
  cursor: pointer;
  vertical-align: middle;
  margin-left: 4px;
  padding: 10px;
  border-radius: 50%;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.bns-list-heart:hover {
  color: #e8566d;
  background: rgba(232, 86, 109, 0.08);
}

.bns-list-heart.bns-saved {
  color: #e8566d;
}

.bns-list-heart.bns-saved:hover {
  background: rgba(232, 86, 109, 0.08);
}

/* === Floating Indicator === */
#bns-floating-indicator {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid #e0e0e0;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  font-size: 14px;
  font-family: inherit;
  color: #333;
  animation: bns-slide-up 0.35s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#bns-floating-indicator.bns-visible {
  display: flex;
}

.bns-indicator-heart {
  font-size: 16px;
  line-height: 1;
}

.bns-indicator-count {
  font-weight: 600;
}

.bns-indicator-sep {
  color: #ccc;
  margin: 0 2px;
}

.bns-indicator-link {
  color: #4ECDC4;
  text-decoration: none;
  font-weight: 600;
}

.bns-indicator-link:hover {
  text-decoration: underline;
}

/* === Toast === */
.bns-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 10000;
  padding: 10px 20px;
  background: #333;
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  white-space: nowrap;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.bns-toast.bns-toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* === Animations === */
@keyframes bns-heart-pop {
  0% { transform: scale(1); }
  30% { transform: scale(1.4); }
  60% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

@keyframes bns-slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Mobile === */
@media (max-width: 480px) {
  #bns-floating-indicator {
    left: 12px;
    right: 12px;
    bottom: 12px;
    justify-content: center;
    border-radius: 12px;
  }

  .bns-save-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 16px;
  }

  .bns-toast {
    left: 12px;
    right: 12px;
    transform: translateX(0) translateY(20px);
    text-align: center;
    white-space: normal;
  }

  .bns-toast.bns-toast-show {
    transform: translateX(0) translateY(0);
  }
}
