﻿/* Love button micro-interactions (visitors engagement) */

.home-ad-love-btn {
  color: #36a4bf;
  transition: color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.home-ad-love-btn:hover:not(:disabled) {
  color: #2a8da6;
}

.home-ad-love-btn.home-ad-love-btn--loved {
  color: #e74c3c;
  pointer-events: none;
}

.home-ad-love-btn.home-ad-love-btn--loved i {
  color: #e74c3c;
  background: linear-gradient(135deg, #ff6b6b 0%, #e74c3c 55%, #c0392b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .home-ad-love-btn.home-ad-love-btn--loved i {
    color: #e74c3c;
    background: none;
    -webkit-text-fill-color: unset;
  }
}

.home-ad-love-btn.home-ad-love-btn--pulse i,
.home-ad-love-btn i.home-ad-love-heart--pulse {
  animation: home-ad-love-heartbeat 0.7s ease-in-out 1;
}

@keyframes home-ad-love-heartbeat {
  0% { transform: scale(1); }
  20% { transform: scale(1.35); }
  40% { transform: scale(0.95); }
  60% { transform: scale(1.25); }
  80% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.home-ad-love-count {
  font-variant-numeric: tabular-nums;
  transition: color 0.2s ease;
}

.home-ad-love-count.home-ad-love-count--bump {
  color: #e74c3c;
  font-weight: 700;
}

.home-ad-love-toast-host {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
  width: min(92vw, 26rem);
}

.home-ad-love-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #0f2a33 0%, #1a3d4a 100%);
  color: #f0f9fc;
  font-family: Cairo, Tajawal, system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: 0 12px 32px rgba(15, 42, 51, 0.28), 0 0 0 1px rgba(54, 164, 191, 0.35);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.home-ad-love-toast.home-ad-love-toast--show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.home-ad-love-toast__emoji {
  flex-shrink: 0;
  font-size: 1.15rem;
  line-height: 1;
}

.home-ad-love-toast__msg {
  flex: 1;
  min-width: 0;
}

.home-ad-love-toast__points {
  flex-shrink: 0;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  background: rgba(54, 164, 191, 0.25);
  color: #b8e4ef;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

@media (prefers-reduced-motion: reduce) {
  .home-ad-love-btn.home-ad-love-btn--pulse i,
  .home-ad-love-btn i.home-ad-love-heart--pulse,
  .home-ad-love-toast {
    animation: none;
    transition: none;
  }
}
