/* Facebook follow button in the top bar (shared by homepage and blog) */
.nav-right { display: flex; align-items: center; gap: 22px; }
.fb-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px 8px 8px; border-radius: 999px;
  background: linear-gradient(135deg, #1877f2, #0a5bd8);
  color: #fff; font-weight: 700; font-size: .95rem; white-space: nowrap;
  box-shadow: 0 4px 16px rgba(24,119,242,.45);
  transition: transform .2s, box-shadow .2s;
}
.fb-btn::before { /* pulsing ring to draw the eye */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(24,119,242,.7);
  animation: fb-pulse 2.2s ease-out infinite;
}
.fb-btn:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 8px 24px rgba(24,119,242,.6); }
.fb-btn .fb-icon {
  width: 28px; height: 28px; border-radius: 50%; background: #fff;
  display: grid; place-items: center; flex: none;
}
.fb-btn .fb-icon svg { width: 18px; height: 18px; fill: #1877f2; }
@keyframes fb-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(24,119,242,.7); }
  70%  { box-shadow: 0 0 0 12px rgba(24,119,242,0); }
  100% { box-shadow: 0 0 0 0 rgba(24,119,242,0); }
}
@media (prefers-reduced-motion: reduce) { .fb-btn::before { animation: none; } }
@media (max-width: 420px) { .fb-btn { padding-right: 14px; font-size: .88rem; } }

/* "Made entirely by AI" badge in the footer (shared by homepage and blog) */
.ai-badge {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 12px; padding: 8px 18px; border-radius: 999px;
  border: 1px solid rgba(127,216,255,.45); background: rgba(127,216,255,.08);
  color: #fff; font-weight: 700; font-size: .95rem;
}
.ai-badge .ai-spark { display: inline-block; color: #7fd8ff; animation: ai-twinkle 1.8s ease-in-out infinite; }
.ai-badge .ai-sub { color: #7fd8ff; font-weight: 400; font-size: .85rem; }
@keyframes ai-twinkle { 50% { opacity: .35; transform: scale(.8); } }
@media (prefers-reduced-motion: reduce) { .ai-badge .ai-spark { animation: none; } }

/* Xiaohongshu (小紅書) button beside Facebook: shows the second IP name 大馬水果人 */
.xhs-btn {
  display: inline-flex; align-items: center; gap: 7px; flex: none; white-space: nowrap;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: linear-gradient(135deg, #ff2442, #e0102e); color: #fff;
  font-weight: 700; font-size: .95rem;
  box-shadow: 0 4px 16px rgba(255,36,66,.45);
  transition: transform .2s, box-shadow .2s;
}
.xhs-btn:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 8px 24px rgba(255,36,66,.6); }
.xhs-btn .xhs-tag {
  background: #fff; color: #ff2442; border-radius: 6px;
  padding: 3px 5px; font-size: .62rem; font-weight: 800; line-height: 1.2;
}
.nav-right { gap: 12px; }
nav { margin-right: 10px; }
/* Phones: logo alone is enough, leave room for 文章 + both social buttons */
@media (max-width: 480px) {
  .brand-name { display: none; }
  .nav-right { gap: 8px !important; }
  .fb-btn { padding: 5px 12px 5px 5px; font-size: .85rem; gap: 6px; }
  .fb-btn .fb-icon { width: 24px; height: 24px; }
  .xhs-btn { padding: 5px 11px 5px 5px; font-size: .85rem; gap: 5px; }
  .xhs-btn .xhs-tag { font-size: .56rem; padding: 3px 4px; }
}
/* Very narrow phones: drop the small 小紅書 tag, keep the 大馬水果人 name */
@media (max-width: 360px) { .xhs-btn .xhs-tag { display: none; } .xhs-btn { padding-left: 11px; } }
