/* FloatingCommentButton.css - Refactored for a Muted & Precise Look */

.floating-comment-button {
  position: fixed;
  z-index: 500;
  pointer-events: auto;
  animation: subtleFadeIn 0.15s ease-out;
  display: flex;
  gap: 6px; /* A little space between buttons */
  user-select: none;
}

/* --- KEY CHANGE: Muted, squared button style --- */
.floating-comment-button button {
  background-color: var(--background-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 4px; /* Squared-off with soft corners */
  padding: 5px 10px; /* More compact */
  font-size: 13px; /* Smaller font */
  font-weight: 500; /* Lighter weight */
  font-family: var(--font-ui); /* Use Inter for UI */
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); /* Softer shadow */
  transition: background-color 0.15s ease, border-color 0.15s ease; /* No transform */
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* --- KEY CHANGE: Subtle hover, no movement --- */
.floating-comment-button button:hover {
  background-color: var(--background-primary);
  border-color: #adb5bd; /* Slightly darker border on hover */
}

.floating-comment-button button.primary {
  background-color: var(--accent-primary);
  color: var(--text-on-accent);
  border-color: var(--accent-primary);
}

.floating-comment-button button.primary:hover {
  background-color: var(--accent-primary-hover);
  border-color: var(--accent-primary-hover);
}

.floating-comment-button button:active {
  background-color: var(--border-color); /* Feedback on click */
}

/* --- KEY CHANGE: Less "explosive" animation --- */
@keyframes subtleFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px); /* Shorter distance */
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 
  Note on positioning: 
  The final distance from the text is set by your JavaScript logic that calculates
  the 'top' and 'left' properties. To get the button even closer, you may need
  to subtract a few pixels from the calculated 'top' position in your JS.
*/