/* Social features styles */
.social-features {
  display: flex;
  justify-content: center;
  margin-top: 8px;
  gap: 8px;
  flex-wrap: wrap;
}

.share-section {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8f9fa;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 6px 12px;
}

.share-section span {
  font-size: 14px;
  color: #5f6368;
}

.share-buttons {
  display: flex;
  gap: 6px;
}

.share-button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: white;
  transition: transform 0.2s;
}

.share-button:hover {
  transform: scale(1.1);
}

.share-twitter { background: #1DA1F2; }
.share-facebook { background: #4267B2; }
.share-whatsapp { background: #25D366; }
.share-link { background: var(--primary); }

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  padding: 24px;
  border-radius: var(--radius);
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #5f6368;
}

.share-link-container {
  display: flex;
  margin: 16px 0;
}

.share-link-input {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 4px 0 0 4px;
  font-size: 14px;
}

.copy-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0 16px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-weight: 500;
}

.invite-section {
  margin-top: 16px;
}

.invite-input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 12px;
}

.invite-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 24px;
  cursor: pointer;
  font-weight: 500;
  width: 100%;
}

/* History section */
.history-section {
  margin: 20px auto 0;
  max-width: var(--app-max);
  padding: 0 clamp(12px,3vw,40px);
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.history-title {
  font-size: 16px;
  font-weight: 500;
  color: #5f6368;
}

.history-clear {
  font-size: 12px;
  color: var(--primary);
  background: transparent;
  border: none;
  cursor: pointer;
}

.history-items {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-behavior: smooth;
}

.history-item {
  padding: 8px 12px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 150px;
  max-width: 200px;
  cursor: pointer;
}

.history-item:hover {
  border-color: var(--primary);
  background: #f0f7ff;
}

.history-item-text {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.history-item-langs {
  font-size: 11px;
  color: #5f6368;
}

/* Community suggestions */
.community-suggestions {
  margin: 16px 0;
  padding: 16px;
  background: #f8f9fa;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.suggestions-header {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #5f6368;
}

.suggestion-items {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.suggestion-item {
  padding: 6px 10px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.suggestion-item:hover {
  background: #e8f0fe;
  border-color: var(--primary);
}

@media (max-width: 600px) {
  .share-section span {
    display: none;
  }
}