/* === 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;
}

/* === Social Proof Badge === */
.bns-social-proof {
  margin-top: 10px;
  font-size: 13px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 4px;
}

.bns-social-proof-icon {
  color: #e8566d;
  font-size: 12px;
}

/* === Name of the Week / Top Name Badge === */
.bns-name-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.bns-name-of-week {
  background: linear-gradient(135deg, #fff3cd, #ffeaa7);
  color: #856404;
  border: 1px solid #ffd93d;
}

.bns-top-name {
  background: #f0fffe;
  color: #2a9d8f;
  border: 1px solid #b8e6e0;
}

/* === 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);
}

/* === Trending Shortcode === */
.bns-trending-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 24px;
  margin: 20px 0;
}

.bns-trending-title {
  font-size: 20px;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 16px;
}

.bns-trending-list {
  list-style: none;
  counter-reset: trending;
  padding: 0;
  margin: 0;
}

.bns-trending-item {
  counter-increment: trending;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.bns-trending-item:last-child {
  border-bottom: none;
}

.bns-trending-item::before {
  content: counter(trending);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #f5f5f5;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  color: #888;
  flex-shrink: 0;
}

.bns-trending-item:nth-child(-n+3)::before {
  background: #4ECDC4;
  color: #fff;
}

.bns-trending-name {
  font-weight: 600;
  color: #2c3e50;
  text-decoration: none;
  flex: 1;
}

.bns-trending-name:hover {
  color: #4ECDC4;
}

.bns-trending-gender {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 50px;
  font-weight: 500;
}

.bns-gender-girl {
  background: #fff0f3;
  color: #e8566d;
}

.bns-gender-boy {
  background: #e8f4fd;
  color: #3498db;
}

.bns-gender-unisex {
  background: #f3e8fd;
  color: #8e44ad;
}

.bns-trending-saves {
  font-size: 13px;
  color: #999;
  white-space: nowrap;
}

/* Rising Names */
.bns-rising-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.bns-rising-title {
  font-size: 15px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 10px;
}

.bns-rising-names {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bns-rising-name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: #f0fffe;
  border: 1px solid #b8e6e0;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: #2a9d8f;
  text-decoration: none;
  transition: all 0.2s ease;
}

.bns-rising-name:hover {
  background: #d4f5f0;
  border-color: #4ECDC4;
}

.bns-rising-arrow {
  font-size: 11px;
  color: #27ae60;
}

/* === Discovery Section (Shortlist Page) === */
.bns-discovery-section {
  max-width: 680px;
  margin: 40px auto 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.bns-discovery-block {
  margin-bottom: 32px;
}

.bns-discovery-title {
  font-size: 20px;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 4px;
}

.bns-discovery-subtitle {
  font-size: 14px;
  color: #888;
  margin: 0 0 16px;
}

.bns-discovery-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
}

.bns-discovery-card {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  text-decoration: none !important;
  color: #2c3e50;
  font-weight: 600 !important;
  font-size: 14px;
  transition: all 0.2s ease;
}

.bns-discovery-card:hover {
  border-color: #4ECDC4;
  box-shadow: 0 2px 8px rgba(78, 205, 196, 0.15);
  transform: translateY(-1px);
}

.bns-discovery-emoji {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.bns-discovery-card-title {
  line-height: 1.3;
}

.bns-discovery-tools {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.bns-tool-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  padding: 16px 20px;
  background: linear-gradient(135deg, #f8fffe, #edf9f7);
  border: 1px solid #4ECDC4;
  border-radius: 10px;
  text-decoration: none !important;
  font-weight: normal !important;
  line-height: 1.4 !important;
  transition: all 0.2s ease;
}

.bns-tool-card:hover {
  box-shadow: 0 2px 12px rgba(78, 205, 196, 0.2);
  transform: translateY(-1px);
}

.bns-tool-title {
  display: block !important;
  font-weight: 700 !important;
  font-size: 16px;
  color: #2c3e50;
}

.bns-tool-desc {
  display: block !important;
  font-size: 13px;
  font-weight: 400 !important;
  color: #666;
}

@media (max-width: 480px) {
  .bns-discovery-grid {
    grid-template-columns: 1fr;
  }
}

/* === Override theme .entry-content a border for React app links === */
.entry-content #baby-name-shortlist-root a,
.entry-content .bns-discovery-section a,
.entry-content .bns-trending-card a,
.entry-content .bns-save-btn-wrap a {
  border-bottom: none !important;
}

/* === 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);
  }

  .bns-trending-card {
    padding: 16px;
  }

  .bns-trending-item {
    flex-wrap: wrap;
    gap: 6px;
  }

  .bns-trending-saves {
    margin-left: auto;
  }
}
