/* Emoji Reactions Widget Styles */

.emoji-reactions-container {
  margin: 2rem 0;
  padding: 1rem 0.5rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.emoji-reactions-title {
  font-size: 13px;
  font-weight: 500;
  color: #666;
  margin-bottom: 0.75rem;
  text-align: center;
}

.emoji-reactions-wrapper {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.emoji-reaction-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  height: 36px;
  padding: 0.375rem 0.625rem;
  background: transparent;
  border: 1px solid #d0d7de;
  border-radius: 18px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  font-family: inherit;
  white-space: nowrap;
}

.emoji-reaction-button:hover {
  background: #f6f8fa;
  border-color: #8c959f;
}

.emoji-reaction-button:active {
  background: #ebf0f5;
  transform: scale(0.97);
}

.emoji-reaction-button.selected {
  background: #ddf4ff;
  border-color: #0969da;
}

.emoji-reaction-button .emoji {
  font-size: 20px;
  line-height: 1;
  display: block;
  flex-shrink: 0;
}

.emoji-reaction-button .count {
  font-size: 12px;
  font-weight: 600;
  color: #656d76;
  line-height: 1;
  display: none;
}

.emoji-reaction-button .count:not(:empty) {
  display: block;
}

.emoji-reaction-button.selected .count {
  color: #0969da;
}

.emoji-reaction-message {
  margin-top: 1rem;
  padding: 0.5rem;
  border-radius: 4px;
  font-size: 12px;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.emoji-reaction-message.error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

.emoji-reaction-message.info {
  background: #e3f2fd;
  color: #1565c0;
  border: 1px solid #90caf9;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive design */
@media (max-width: 480px) {
  .emoji-reaction-button {
    height: 32px;
    padding: 0.25rem 0.5rem;
    gap: 0.25rem;
  }

  .emoji-reaction-button .emoji {
    font-size: 18px;
  }

  .emoji-reaction-button .count {
    font-size: 11px;
  }

  .emoji-reactions-wrapper {
    gap: 0.375rem;
  }
}
