/* Emoji Picker Styles */
.emoji-picker {
  position: fixed;
  bottom: 70px;
  right: 16px;
  width: 340px;
  height: 400px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  z-index: 9999;
  overflow: hidden;
}

.emoji-picker.show {
  display: flex;
  animation: emojiPickerSlideUp 0.2s ease;
}

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

/* Emoji Search */
.emoji-search {
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.emoji-search input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.emoji-search input:focus {
  border-color: #667eea;
}

/* Emoji Categories */
.emoji-categories {
  display: flex;
  padding: 8px 12px;
  border-bottom: 1px solid #e5e7eb;
  gap: 4px;
  overflow-x: auto;
}

.emoji-category-btn {
  padding: 6px 10px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 20px;
  transition: background 0.2s;
  flex-shrink: 0;
}

.emoji-category-btn:hover {
  background: #f3f4f6;
}

.emoji-category-btn.active {
  background: #e0e7ff;
}

/* Emoji Grid */
.emoji-grid-container {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.emoji-category-section {
  margin-bottom: 16px;
}

.emoji-category-title {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  padding: 4px 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  padding: 4px;
}

.emoji-item {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.emoji-item:hover {
  background: #f3f4f6;
  transform: scale(1.2);
}

.emoji-item:active {
  transform: scale(1.1);
}

/* Scrollbar */
.emoji-grid-container::-webkit-scrollbar {
  width: 6px;
}

.emoji-grid-container::-webkit-scrollbar-track {
  background: transparent;
}

.emoji-grid-container::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.emoji-grid-container::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .emoji-picker {
    width: 100%;
    height: 350px;
    right: 0;
    left: 0;
    bottom: 60px;
    border-radius: 16px 16px 0 0;
  }
  
  .emoji-grid {
    grid-template-columns: repeat(7, 1fr);
  }
}
