/* Emoji Combiner Styles */
.emoji-combiner-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

/* Emoji Selection Area */
.combiner-area {
  background: #ffffff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.emoji-selection-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.emoji-selection {
  flex: 1;
  text-align: center;
}

.emoji-selection h2 {
  color: #333;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  gap: 0.5rem;
  max-height: 200px;
  overflow-y: auto;
  padding: 0.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.emoji-item {
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.emoji-item:hover {
  background-color: #f0f0f0;
}

.emoji-item.selected {
  background-color: #e3f2fd;
  box-shadow: 0 0 0 2px #2196f3;
}

.selected-emoji {
  font-size: 3rem;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 8px;
  margin-top: 1rem;
}

.selected-emoji .placeholder {
  font-size: 1rem;
  color: #999;
}

.combine-icon {
  font-size: 2rem;
  font-weight: bold;
  color: #333;
}

/* Combine Controls */
.combine-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.combine-btn {
  background: #007bff;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.combine-btn:hover {
  background: #0056b3;
}

.copy-status {
  display: none;
  background: #28a745;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

/* Result Container */
.result-container {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.result-container h2 {
  color: #333;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.result-emoji {
  font-size: 4rem;
  margin-bottom: 1rem;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-emoji .placeholder {
  font-size: 1rem;
  color: #999;
}

.copy-btn {
  margin-left: 0;
  padding: 0.5rem 1rem;
  border: none;
  background: var(--fern);
  color: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

.copy-btn:hover {
  background: var(--hunter-green);
}

.copy-btn.small {
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
}

/* Recent and Popular Combinations */
.recent-combinations,
.popular-combinations {
  margin-bottom: 2.5rem;
}

.recent-combinations h2,
.popular-combinations h2 {
  color: #333;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 0.5rem;
  font-weight: 600;
}

.combinations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
}

.combination-item {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.combination-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.combination {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .emoji-combiner-container {
    padding: 1rem;
  }

  .emoji-selection-container {
    flex-direction: column;
    gap: 1rem;
  }

  .emoji-selection {
    width: 100%;
  }

  .combine-icon {
    transform: rotate(90deg);
    margin: 0.5rem 0;
  }

  .combinations-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}

/* Dark Mode Styles */
@media (prefers-color-scheme: dark) {
  body.dark-mode .combiner-area {
    background: #2d2d2d;
  }

  body.dark-mode .emoji-grid {
    border-color: #444;
    background: #333;
  }

  body.dark-mode .emoji-item:hover {
    background-color: #444;
  }

  body.dark-mode .emoji-item.selected {
    background-color: #1e3a5f;
    box-shadow: 0 0 0 2px #0d6efd;
  }

  body.dark-mode .selected-emoji {
    background: #333;
  }

  body.dark-mode .selected-emoji .placeholder,
  body.dark-mode .result-emoji .placeholder {
    color: #aaa;
  }

  body.dark-mode .combine-icon {
    color: #e0e0e0;
  }

  body.dark-mode .combine-btn {
    background: #0056b3;
  }

  body.dark-mode .combine-btn:hover {
    background: #003d80;
  }

  body.dark-mode .result-container {
    background: #333;
  }

  body.dark-mode .copy-btn {
    background: #0056b3;
    color: #ffffff;
  }

  body.dark-mode .copy-btn:hover {
    background: #003d80;
  }

  body.dark-mode .combination-item {
    background: #2d2d2d;
  }
}
