/* Suggest Tags Modal */
.suggest-tags-modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 150;
}

.suggest-tags-modal-bg.visible {
  display: flex;
}

.suggest-tags-modal {
  background: #272727;
  border: 1px solid #3f3f3f;
  border-radius: 12px;
  width: 90%;
  max-width: 50vw;
  max-height: 50vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.suggest-tags-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #3f3f3f;
}

.suggest-tags-header h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 0;
}

.suggest-tags-close {
  background: transparent;
  border: none;
  color: #aaa;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.suggest-tags-close:hover {
  background: #3f3f3f;
  color: #fff;
}

.suggest-tags-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 20px;
  gap: 20px;
}

.pending-tags-section {
  flex-shrink: 0;
}

.pending-tags-label,
.available-tags-label {
  font-size: 11px;
  text-transform: uppercase;
  color: #aaa;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.pending-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 40px;
  padding: 10px;
  background: #1a1a1a;
  border: 1px solid #3f3f3f;
  border-radius: 8px;
}

.pending-tags-list:empty::after {
  content: 'No tags suggested yet';
  color: #666;
  font-size: 13px;
}

.pending-tag-chip {
  background: #05913A;
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: default;
}

.pending-tag-chip .remove-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s;
}

.pending-tag-chip .remove-btn:hover {
  background: rgba(0, 0, 0, 0.2);
}

.available-tags-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.available-tags-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
  padding: 10px;
  background: #1a1a1a;
  border: 1px solid #3f3f3f;
  border-radius: 8px;
}

.available-tags-list:empty::after {
  content: 'All tags have been suggested';
  color: #666;
  font-size: 13px;
}

.available-tag-chip {
  background: #05913A;
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}

.available-tag-chip:hover {
  background: #fff;
  color: #05913A;
}

/* Pending tag chips in detail view */
.detail .info .tag-chips .chip.pending-chip {
  background: #05913A;
}

.detail .info .tag-chips .chip.pending-chip:hover {
  background: #047a2f;
}

/* Suggest tags button - small gray plus */
.suggest-tags-btn {
  background: transparent;
  border: none;
  color: #666;
  padding: 0;
  font-size: 20px;
  cursor: pointer;
  transition: color 0.15s;
  line-height: 1;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.suggest-tags-btn:hover {
  color: #aaa;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .suggest-tags-modal {
    max-width: 90vw;
    max-height: 70vh;
  }
  
  .suggest-tags-header {
    padding: 12px 16px;
  }
  
  .suggest-tags-header h3 {
    font-size: 16px;
  }
  
  .suggest-tags-content {
    padding: 16px;
  }
  
  .pending-tag-chip,
  .available-tag-chip {
    font-size: 14px;
    padding: 8px 14px;
  }
}

@media (max-width: 480px) {
  .suggest-tags-modal {
    max-width: 95vw;
    max-height: 80vh;
  }
}
