/* =====================================================
   CLARISSA CUNHA — WEDDING LIKES STYLES
   Sistema de curtidas estilo Instagram
   ===================================================== */

/* ===== CARD LIKEABLE ===== */
.cc-likeable-card {
  position: relative;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* ===== LIKE OVERLAY (animação de coração) ===== */
.cc-like-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 200ms ease-out;
}

.cc-like-overlay.is-animating {
  opacity: 1;
}

.cc-like-heart {
  color: #fff;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
  transform: scale(0);
  animation: heartPop 800ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cc-like-overlay.is-animating .cc-like-heart {
  animation: heartPop 800ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes heartPop {
  0% {
    transform: scale(0) rotate(-15deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(5deg);
    opacity: 1;
  }
  70% {
    transform: scale(0.95) rotate(-2deg);
    opacity: 1;
  }
  100% {
    transform: scale(0) rotate(0deg);
    opacity: 0;
  }
}

/* ===== LIKE COUNTER ===== */
.cc-like-counter {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(251, 247, 241, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(42, 47, 58, 0.15);
  z-index: 5;
  transition: all 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer; /* Adicionar cursor pointer */
}

.cc-likeable-card:hover .cc-like-counter {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 47, 58, 0.2);
}

.cc-like-counter .heart-icon {
  color: #e74c3c;
  transition: all 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

.cc-like-counter .heart-icon.is-liked {
  animation: heartBeat 400ms ease-out;
}

@keyframes heartBeat {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.3);
  }
  50% {
    transform: scale(1.1);
  }
  75% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.cc-like-counter .count {
  font-family: var(--ff-sans, 'Jost', sans-serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--cc-ink, #2A2F3A);
  letter-spacing: 0.02em;
  transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 600px) {
  .cc-like-counter {
    bottom: 16px;
    right: 16px; /* Movido para a direita no mobile */
    padding: 8px 14px;
    gap: 6px;
  }
  
  .cc-like-counter .heart-icon {
    width: 18px;
    height: 18px;
  }
  
  .cc-like-counter .count {
    font-size: 12px;
  }
  
  .cc-like-heart svg {
    width: 60px;
    height: 60px;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  .cc-like-overlay,
  .cc-like-heart,
  .cc-like-counter,
  .cc-like-counter .heart-icon,
  .cc-like-counter .count {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== TOUCH FEEDBACK ===== */
@media (max-width: 600px) {
  .cc-likeable-card:active {
    transform: scale(0.98);
  }
  
  .cc-like-counter:active {
    transform: scale(0.95);
  }
}
