/**
 * Styles pour le plugin Quentin Heart v1.8
 */

#quentin-heart-wrapper {
  width: 100%;
  max-width: 520px;
  margin: 40px auto;
  padding: 24px;
  box-sizing: border-box;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: visible;
}

#quentin-heart-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

#quentin-heart-btn {
  background: transparent;
  border: none;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#quentin-heart-btn:focus-visible {
  outline: 2px solid #ff4d6d;
  outline-offset: 2px;
}

#quentin-heart-btn .quentin-heart-icon path {
  stroke: #1a202c;
  stroke-width: 2;
  fill: transparent;
  transition: stroke 0.3s ease, fill 0.3s ease;
  transform-origin: center;
}

#quentin-heart-btn[aria-pressed="true"] .quentin-heart-icon path {
  fill: #ff375f;
  stroke: #ff375f;
  animation: none;
}

#quentin-heart-count {
  font-weight: 700;
  font-size: 1.6rem;
  color: #2d3748;
  user-select: none;
}

#quentin-heart-message {
  font-size: 0.9rem;
  color: #718096;
  text-align: center;
  margin-top: 16px;
  user-select: none;
  min-height: 1.2em;
}

#quentin-heart-message.shake {
  animation: shake-anim 0.6s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake-anim {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* Animation pour faire vibrer tout le bloc quand limite atteinte et qu'on reclique */
#quentin-heart-wrapper.shake-block {
  animation: shake-block-anim 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake-block-anim {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(4px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
  40%, 60% { transform: translate3d(6px, 0, 0); }
}

.quentin-heart-fly {
  position: absolute;
  width: 32px;
  height: 32px;
  pointer-events: none;
  z-index: 9999;
}
