/* Humsafarmatch custom styles */

.nav-link {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 500;
  color: #475569;
  transition: all 0.2s;
}
.nav-link:hover { color: #db2777; background: #fdf2f8; }
.nav-active { color: #db2777; }

@keyframes scale-in {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.animate-scale-in { animation: scale-in 0.25s ease-out; }

@keyframes pulse-slow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  50% { box-shadow: 0 0 0 12px rgba(34,197,94,0); }
}
.animate-pulse-slow { animation: pulse-slow 2s infinite; }

/* Modal display helpers */
.modal-open { display: flex !important; }

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Line clamp */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card hover accent */
.profile-card:hover h3 { color: #db2777; }

/* ============================================================
   Professional WhatsApp button
   ============================================================ */
.btn-whatsapp {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #25d366 0%, #1ebe5d 55%, #128c7e 100%);
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 4px 14px rgba(18, 140, 126, 0.35);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(18, 140, 126, 0.45);
  filter: brightness(1.05);
}
.btn-whatsapp:active { transform: translateY(0); box-shadow: 0 3px 10px rgba(18,140,126,0.4); }
/* Subtle shine sweep on hover */
.btn-whatsapp::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}
.btn-whatsapp:hover::after { left: 130%; }
.btn-whatsapp .fa-whatsapp { font-size: 1.1em; }

/* Card WhatsApp button sizing */
.btn-whatsapp-card { padding: 0.55rem 0.75rem; font-size: 0.875rem; }
/* Large WhatsApp button (profile detail page) */
.btn-whatsapp-lg { padding: 0.85rem 1rem; font-size: 1.05rem; border-radius: 0.9rem; }
.btn-whatsapp-lg .fa-whatsapp { font-size: 1.4em; }
